[PyKDE] sip modules as part of packages

Andreas Gerstlauer gerstl at ics.uci.edu
Tue Nov 13 03:58:28 GMT 2001


I am having trouble using a sip-generated module as part
of a Python package. For example, if I would be so inclined
as to put the "qt.py" and "libqtcmodule.so" files into some
package subdirectory "tst":
  % mkdir tst
  % cp $PYTHONMODULES/qt.py $PYTHONMODULES/libqtcmodule.so tst
  % touch tst/__init__.py
  % python
  Python 2.0 (#10, Feb 13 2001, 13:25:47) 
  [GCC 2.95.2 19991024 (release)] on sunos5
  Type "copyright", "credits" or "license" for more information.
  >>> from tst import qt
  Traceback (most recent call last):
    File "<stdin>", line 1, in ?
    File "/opt/contrib/python-2.0/lib/python2.0/site-packages/qt.py", line 46, 
in ?
  SystemError: Unable to find module dictionary for qt

Is there any way to make sip-generated modules work as part of
larger packages?


More information about the PyQt mailing list