[PyKDE] Using PyQt with Qwidget subclasses

Jahn Otto Næsgaard Andersen jotto at jotto.no
Sun Jan 4 20:09:00 GMT 2004


Hello there,

I have come across a PyQt tutorial at
http://pegasus.rutgers.edu/~elflord/unix/siptute/. I am trying the
example at
http://pegasus.rutgers.edu/~elflord/unix/siptute/subclass_example.tgz on
Redhat Linux 8.0.

I have downloaded the example, changed the Makefile to reflect the
correct QTDIR and executed

make
sudo make install

Which seemed to execute with success

However, then I start python and get the following:

Python 2.2.1 (#1, Aug 30 2002, 12:15:30) 
[GCC 3.2 20020822 (Red Hat Linux Rawhide 3.2-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from MyWidget import *
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python2.2/site-packages/MyWidget.py", line 8, in ?
    import libMyWidgetc
ImportError: /usr/lib/python2.2/site-packages/libMyWidgetcmodule.so:
undefined symbol: _ZTV16sipProxyMyWidget


When I try using nm on the .so file I get the following:

$ nm libMyWidgetcmodule.so|grep _ZTV16sipProxyMyWidget
         U _ZTV16sipProxyMyWidget


I am using Python 2.2.1, SIP 3.3.2 and Qt 3.0.5.

Do you have any idea what's wrong?


Jahn Otto





More information about the PyQt mailing list