[PyQt] "sip: QFileIconProvider is undefined" from import of QtGui/QtGuimod.sip with SIP 4.10, Qt 4.6.1 and Python 2.5.1

Mark Floyd mfloyd at evryx.com
Wed Mar 31 04:34:14 BST 2010


I'm trying to run a simple .sip file example and can't seem to get the
bloody thing to run.  Here is my small example *without* the import of
QtGui/QtGuimod.sip... which will build normally:

####  Working Example working.sip ###
%Module word 0
#### End working.sip

% sip -I/rel/lang/python/2.5.1-6/share/sip/PyQt4 -t WS_X11 -t Qt_4_6_0 -c .
working.sip


If I try to import QtGui/QtGuimod.sip as demonstrated below:

### Broken Example broken.sip ###
%Import QtGui/QtGuimod.sip
%Module word 0
### End broken.sip

I get the following error:
% sip -I/rel/lang/python/2.5.1-6/share/sip/PyQt4 -t WS_X11 -t Qt_4_6_0 -c .
broken.sip
sip: QFileIconProvider is undefined

I found another thread on the email list where a user said "-t Qt_4_6_0"
would fix this problem... but I'm not getting same luck here.

/rel/lang/python/2.5.1-6/share/sip/PyQt4/QtGui/QtGuimod.sip does include
qfileiconprovider.sip.

The error doesn't give much information for a newcomer to analyze... and an
strace isn't revealing much either.  Any pointers on how to fix this would
be much appreciated.

This was built on a RedHat 4 box using SIP 4.10, Qt 4.6.1, and Python 2.5.1.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20100330/d3c7f385/attachment.html>


More information about the PyQt mailing list