[PyQt] RuntimeError: the qt and PyQt4.QtCore modules both wrap the QObject class

thudfoo at gmail.com thudfoo at gmail.com
Wed Oct 3 14:52:10 BST 2007


I have both PyQt4 (4.1.1) and qt (3.17.3) installed on the same Python (2.5)
interpreter. I get the following exception when I try to list the modules
using the interactive help and pydoc. Is this the only problem I am going
to have because they are both installed (as long as I don't try to import
them both)? 
--------------------------------------
help> modules

Please wait a moment while I gather a list of all available modules...

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.5/site.py", line 346, in __call__
    return pydoc.help(*args, **kwds)
  File "/usr/lib/python2.5/pydoc.py", line 1645, in __call__
    self.interact()
  File "/usr/lib/python2.5/pydoc.py", line 1663, in interact
    self.help(request)
  File "/usr/lib/python2.5/pydoc.py", line 1679, in help
    elif request == 'modules': self.listmodules()
  File "/usr/lib/python2.5/pydoc.py", line 1797, in listmodules
    ModuleScanner().run(callback)
  File "/usr/lib/python2.5/pydoc.py", line 1848, in run
    for importer, modname, ispkg in pkgutil.walk_packages():
  File "/usr/lib/python2.5/pkgutil.py", line 125, in walk_packages
    for item in walk_packages(path, name+'.', onerror):
  File "/usr/lib/python2.5/pkgutil.py", line 110, in walk_packages
    __import__(name)
  File "/usr/lib/python2.5/site-packages/eric3/Checks/__init__.py", line 14,
in <module>
    from qt import *
RuntimeError: the qt and PyQt4.QtCore modules both wrap the QObject class




More information about the PyQt mailing list