[PyQt] "sip: QFileIconProvider is undefined" from import of QtGui/QtGuimod.sip with SIP 4.10, Qt 4.6.1 and Python 2.5.1
Phil Thompson
phil at riverbankcomputing.com
Wed Mar 31 21:38:36 BST 2010
On Tue, 30 Mar 2010 20:34:14 -0700, Mark Floyd <mfloyd at evryx.com> wrote:
> 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.
Works fine for me. It suggests a problem with your PyQt installation. You
can check 'pyqt_sip_flags' in pyqtconfig.py to see what flags you should be
using.
Phil
More information about the PyQt
mailing list