You are not logged in.
Pages: 1
When I run a program such as ipython with the qt interface or picard, I get import errors with the QtGui.so library. I've tried reinstalling the python-pyside, python-pyside-tools, python2-pyqt, and pyqt packages, to no avail.
$ ipython qtconsole
Traceback (most recent call last):
File "/usr/lib/python3.3/site-packages/IPython/external/qt.py", line 40, in <module>
from PySide import QtCore, QtGui, QtSvg
ImportError: /usr/lib/python3.3/site-packages/PySide/QtGui.so: undefined symbol: _ZTI9QGtkStyle
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.3/site-packages/IPython/external/qt.py", line 46, in <module>
from PyQt4 import QtCore, QtGui, QtSvg
ImportError: /usr/lib/python3.3/site-packages/PyQt4/QtGui.so: undefined symbol: _ZN15QSessionManager16staticMetaObjectE
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/ipython", line 9, in <module>
load_entry_point('ipython==0.13.2', 'console_scripts', 'ipython3')()
File "/usr/lib/python3.3/site-packages/IPython/frontend/terminal/ipapp.py", line 388, in launch_new_instance
app.initialize()
File "<string>", line 2, in initialize
File "/usr/lib/python3.3/site-packages/IPython/config/application.py", line 84, in catch_config_error
return method(app, *args, **kwargs)
File "/usr/lib/python3.3/site-packages/IPython/frontend/terminal/ipapp.py", line 313, in initialize
super(TerminalIPythonApp, self).initialize(argv)
File "<string>", line 2, in initialize
File "/usr/lib/python3.3/site-packages/IPython/config/application.py", line 84, in catch_config_error
return method(app, *args, **kwargs)
File "/usr/lib/python3.3/site-packages/IPython/core/application.py", line 325, in initialize
self.parse_command_line(argv)
File "/usr/lib/python3.3/site-packages/IPython/frontend/terminal/ipapp.py", line 308, in parse_command_line
return super(TerminalIPythonApp, self).parse_command_line(argv)
File "<string>", line 2, in parse_command_line
File "/usr/lib/python3.3/site-packages/IPython/config/application.py", line 84, in catch_config_error
return method(app, *args, **kwargs)
File "/usr/lib/python3.3/site-packages/IPython/config/application.py", line 420, in parse_command_line
return self.initialize_subcommand(subc, subargv)
File "<string>", line 2, in initialize_subcommand
File "/usr/lib/python3.3/site-packages/IPython/config/application.py", line 84, in catch_config_error
return method(app, *args, **kwargs)
File "/usr/lib/python3.3/site-packages/IPython/config/application.py", line 352, in initialize_subcommand
subapp = import_item(subapp)
File "/usr/lib/python3.3/site-packages/IPython/utils/importstring.py", line 40, in import_item
module = __import__(package,fromlist=[obj])
File "/usr/lib/python3.3/site-packages/IPython/frontend/qt/console/qtconsoleapp.py", line 56, in <module>
from IPython.external.qt import QtCore, QtGui
File "/usr/lib/python3.3/site-packages/IPython/external/qt.py", line 57, in <module>
raise ImportError('Cannot import PySide >= 1.0.3 or PyQt4 >= 4.7')
ImportError: Cannot import PySide >= 1.0.3 or PyQt4 >= 4.7
or
$ picard
Traceback (most recent call last):
File "/usr/bin/picard", line 2, in <module>
from picard.tagger import main; main('/usr/share/locale', True)
File "/usr/lib/python2.7/site-packages/picard/tagger.py", line 21, in <module>
from PyQt4 import QtGui, QtCore
ImportError: /usr/lib/python2.7/site-packages/PyQt4/QtGui.so: undefined symbol: _ZN15QSessionManager16staticMetaObjectE
It seems like there might have been a problem in linking. How can I fix this?
Offline
I don't get this behavior, but I have only pyqt installed. It appears that you have both pyside and pyqt installed - I thought they were supposed to be mutually exclusive. Does having both cause some lib conflict? You might try uninstalling both, then reinstalling just one of them.
Mike
Linux User #353 - SLS -> Slackware -> Red Hat -> Mandrake -> Fedora -> Arch
Offline
I get the same errors with only one of the two packages installed. Additionally (as you might expect) I get an import error for PyQt4 or PySide when one of them is missing when starting iPython rather than the error with QtGui.so above.
Offline
You have to rebuild pyside when there is a update to QT
Also check that your qt packages and pyqt is up to date (check against archlinux.org/packages)
Last edited by Mr.Elendig (2013-05-07 13:24:51)
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
Sorry for reviving the thread but I'm having the same exact error with several applications.
Tried re-installing pyqt4-common, python2-pyqt4 and python-pyqt to no avail.
Anyone has some idea to what could be causing this issue and how to solve it?
Regards
Offline
You should create a new thread and post the full traceback etc.
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
Pages: 1