[PyQt] segmentation fault

alteo_gange romanocaldoni at free.fr
Fri Oct 26 12:23:39 BST 2007


Le vendredi 26 octobre 2007, Reinhard Thies a écrit :
> Now I've installed the debian packages, but getting the following errors
> reithi at reithi-lt:/usr/share/doc/python-qt4-doc/examples/script$
> python2.4 ./helloscript.py
> Traceback (most recent call last):
>   File "./helloscript.py", line 6, in ?
>     from PyQt4 import QtGui, QtScript
> ImportError: No module named PyQt4
>
> But PyQt4 site package is installed .
> Is the any way to reconfigure the site packages ?
> Do i have to tell python that it is there now ?

Have you the following files on your system:

/usr/lib/python2.5/site-packages/PyQt4/
or
/usr/local/lib/... :

__init__.py
pyqtconfig.py
pyqtconfig_nd.py
Qt.py
QtAssistant.so
QtSvg.so
QtXml.so
QtNetwork.so
QtCore.so
QtGui.so
QtTest.so
uic
uic/uiparser.py
uic/exceptions.py
uic/objcreator.py
uic/properties.py
uic/__init__.py
uic/Loader
uic/Loader/loader.py
uic/Loader/qobjectcreator.py
uic/Loader/__init__.py
uic/Compiler
uic/Compiler/compiler.py
uic/Compiler/qtproxies.py
uic/Compiler/indenter.py
uic/Compiler/qobjectcreator.py
uic/Compiler/__init__.py
uic/widget-plugins
uic/widget-plugins/qwt.py
uic/widget-plugins/qaxcontainer.py
?

What returns:
$ locate QtGui.so
and
$ aptitude search python-qt4
?

-- 
alteo_gange




More information about the PyQt mailing list