Bug report #16012

[PyQGIS] Undefined symbol in nightly

Added by Tomasz Nycz almost 5 years ago. Updated about 4 years ago.

Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:invalid
Crashes QGIS or corrupts data:No Copied to github as #:23927


Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python3/dist-packages/qgis/__init__.py", line 28, in
from qgis.core import QgsFeature, QgsGeometry
File "/usr/lib/python3/dist-packages/qgis/core/__init__.py", line 34, in
from qgis._core import *
ImportError: /usr/lib/python3/dist-packages/qgis/_core.so: undefined symbol: _ZN25QgsExpressionContextUtils24setComposerItemVariablesEP15QgsComposerItemRK4QMapI7QStringS3_E

@Wersja Pythona:
3.5.2 (default, Nov 17 2016, 17:05:23)
[GCC 5.4.0 20160609]

Wersja QGIS:
2.99.0-Master 'Master', 9124c73

Lokalizacja Pythona:
['/usr/share/qgis/python', '/home/mechanik/.qgis3/python', '/home/mechanik/.qgis3/python/plugins', '/usr/share/qgis/python/plugins', '/usr/lib/python35.zip', '/usr/lib/python3.5', '/usr/lib/python3.5/plat-x86_64-linux-gnu', '/usr/lib/python3.5/lib-dynload', '/usr/local/lib/python3.5/dist-packages', '/usr/lib/python3/dist-packages']
Bug was introduced in last few days. After starting QGIS, it throws Python Error: Cannot load PyQGIS, Python support will be disabled. QGIS starts anyway, but is unusable in that state ;)

Xubuntu 16.04


#1 Updated by Nyall Dawson almost 5 years ago

  • Status changed from Open to Feedback

Try completely deleting your build and then rebuilding from scratch.

#2 Updated by Tomasz Nycz almost 5 years ago

Wymaga: python-qgis-common (=1:2.99.0+git20161223+9124c73+24xenial). ale ma być zainstalowana wersja 1:2.99.0+git20161224+567f920+24xenial
Wymaga: qgis-providers (=1:2.99.0+git20161223+9124c73+24xenial). ale ma być zainstalowana wersja 1:2.99.0+git20161220+9ac668b+24xenial
Wymaga: qgis-common (=1:2.99.0+git20161223+9124c73+24xenial). ale ma być zainstalowana wersja 1:2.99.0+git20161224+567f920+24xenial

Ok, found the reason. Some of Ubuntu packages have bad dependencies. It's apt/release problem, not code.

#3 Updated by Nyall Dawson over 4 years ago

  • Resolution set to invalid
  • Status changed from Feedback to Closed

#4 Updated by Jürgen Fischer about 4 years ago

  • Category set to Unknown

Also available in: Atom PDF