Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: /usr/lib/python2.7/site-packages/PyQt4/Qsci.so: undefined symbol: _ZTI11QsciPrinter #19210

Closed
qgib opened this issue Jul 7, 2014 · 7 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Processing Relating to QGIS Processing framework or individual Processing algorithms

Comments

@qgib
Copy link
Contributor

qgib commented Jul 7, 2014

Author Name: Donovan Cameron (@saultdon)
Original Redmine Issue: 10836
Affected QGIS version: 2.4.0
Redmine category:processing/core
Assignee: Victor Olaya


Looks like the processing plugin is broken in QGIS 2.4 when running QScintilla 2.8.3 on Linux.

There is an error on QGIS startup with the following error:
@couldn't load plugin 'processing' from ['/usr/share/qgis/python', '/home/saultdon/.qgis2/python', '/home/saultdon/.qgis2/python/plugins', '/usr/share/qgis/python/plugins', '/home/saultdon', '/usr/share/qgis/python', '/usr/lib/python27.zip', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/lib/python2.7/site-packages', '/usr/lib/python2.7/site-packages/gtk-2.0', '/usr/lib/python2.7/site-packages/wx-3.0-gtk2']

Traceback (most recent call last):
File "/usr/share/qgis/python/qgis/utils.py", line 182, in loadPlugin
import(packageName)
File "/usr/share/qgis/python/qgis/utils.py", line 454, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/home/saultdon/.qgis2/python/plugins/processing/init.py", line 29, in
from processing.tools.general import *
File "/usr/share/qgis/python/qgis/utils.py", line 454, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/home/saultdon/.qgis2/python/plugins/processing/tools/general.py", line 29, in
from processing.core.Processing import Processing
File "/usr/share/qgis/python/qgis/utils.py", line 454, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/home/saultdon/.qgis2/python/plugins/processing/core/Processing.py", line 56, in
from processing.algs.r.RAlgorithmProvider import RAlgorithmProvider
File "/usr/share/qgis/python/qgis/utils.py", line 454, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/home/saultdon/.qgis2/python/plugins/processing/algs/r/RAlgorithmProvider.py", line 34, in
from processing.gui.EditScriptAction import EditScriptAction
File "/usr/share/qgis/python/qgis/utils.py", line 454, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/home/saultdon/.qgis2/python/plugins/processing/gui/EditScriptAction.py", line 29, in
from processing.gui.ScriptEditorDialog import ScriptEditorDialog
File "/usr/share/qgis/python/qgis/utils.py", line 454, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/home/saultdon/.qgis2/python/plugins/processing/gui/ScriptEditorDialog.py", line 34, in
from PyQt4.Qsci import *
File "/usr/share/qgis/python/qgis/utils.py", line 454, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
ImportError: /usr/lib/python2.7/site-packages/PyQt4/Qsci.so: undefined symbol: _ZTI11QsciPrinter

Python version:
2.7.8 (default, Jul 1 2014, 17:30:21)
[GCC 4.9.0 20140604 (prerelease)]

QGIS version:
2.4.0-Chugiak Chugiak, 87e4b07

Python path: ['/usr/share/qgis/python', u'/home/saultdon/.qgis2/python', u'/home/saultdon/.qgis2/python/plugins', '/usr/share/qgis/python/plugins', '/home/saultdon', '/usr/share/qgis/python', '/usr/lib/python27.zip', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/lib/python2.7/site-packages', '/usr/lib/python2.7/site-packages/gtk-2.0', '/usr/lib/python2.7/site-packages/wx-3.0-gtk2']@

@qgib
Copy link
Contributor Author

qgib commented Jul 9, 2014

Author Name: Donovan Cameron (@saultdon)


Looks like qscintilla just needed to be recompiled against pyqt4 after I downgraded.

Closing as invalid =)


  • status_id was changed from Open to Closed

@qgib
Copy link
Contributor Author

qgib commented Jul 9, 2014

Author Name: Giovanni Manghi (@gioman)


  • resolution was changed from to invalid

@qgib
Copy link
Contributor Author

qgib commented Aug 5, 2014

Author Name: Yacine Hmito (Yacine Hmito)


I encounter exactly the same problem on a fresh Arch Linux system (when I say exactly, I mean by the letter).
I tried to downgrade pyqt4 but dependencies prevent me to do so (and qgis takes quite some time to download and compile). I do not understand what the problem is, how Donovan Cameron fixed it and how downgrading is supposed to fix it.
Any help is welcome !

@qgib
Copy link
Contributor Author

qgib commented Aug 5, 2014

Author Name: Donovan Cameron (@saultdon)


Once you have a fully updated Arch system, it's safe to compile QGIS.

But for some reason, you still have to recompile qscintilla from the ABS. Then when re-installing qscintilla, you shouldn't get that error when you start QGIS.

@qgib
Copy link
Contributor Author

qgib commented Aug 6, 2014

Author Name: Yacine Hmito (Yacine Hmito)


Donovan Cameron wrote:

Once you have a fully updated Arch system, it's safe to compile QGIS.

But for some reason, you still have to recompile qscintilla from the ABS. Then when re-installing qscintilla, you shouldn't get that error when you start QGIS.

I did this by typing yaourt -Sb qscintilla
It now works like a charm. Thank you !

1 similar comment
@qgib
Copy link
Contributor Author

qgib commented Aug 6, 2014

Author Name: Yacine Hmito (Yacine Hmito)


Donovan Cameron wrote:

Once you have a fully updated Arch system, it's safe to compile QGIS.

But for some reason, you still have to recompile qscintilla from the ABS. Then when re-installing qscintilla, you shouldn't get that error when you start QGIS.

I did this by typing yaourt -Sb qscintilla
It now works like a charm. Thank you !

@qgib
Copy link
Contributor Author

qgib commented Jun 7, 2015

Author Name: Giovanni Manghi (@gioman)


  • category_id was changed from 94 to Processing/Core

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Processing Relating to QGIS Processing framework or individual Processing algorithms labels May 25, 2019
@qgib qgib closed this as completed May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Processing Relating to QGIS Processing framework or individual Processing algorithms
Projects
None yet
Development

No branches or pull requests

1 participant