[PyQt] Open Embedded python-sip recipe question

David Boddie david at boddie.org.uk
Mon Feb 22 00:40:02 GMT 2010

On Fri, 19 Feb 2010 15:12:04 -0800, ed wrote:

> I am trying to build pyqt with qt4-embedded using stable branch of OE to
> run on mini2440.

The Mini2440 looks like an interesting piece of hardware. :-)

> My image gets built with no failures.  When I try and run simple pyqt
> program the fails because it cannot find the sip module.  I can run the
> qt4-demo program call spreadsheet without any problems.
> When I look at python2.6/site-packages directory I notice that the
> sip.so file is missing.
> Shouldn't the recipe python-sip_4.7.9.bb /python-sip.inc make the sip.so
> file be packaged into the rootfs?

I would have thought so, but I haven't looked at OpenEmbedded closely
enough to be able to quickly figure that out.

> The OE log file shows it does all the build tasks but complains about
> the 1st task do_setscene.
> 1. do_setscene - It complains about the following:
> NOTE: <type 'exceptions.TypeError'>:exceptions must be classes or
> instances, not str while evaluating:
> ${@python_dir(d)}
> NOTE: <type 'exceptions.TypeError'>:exceptions must be classes or
> instances, not str while evaluating:
>         install -d ${D}${libdir}/${PYTHON_DIR}/site-packages/
>         install -m 0755 libsip.so.1.0.0
> ${D}${libdir}/${PYTHON_DIR}/site-packages/sip.so

Maybe this is the cause of the missing sip.so. Those error messages are
surprising - which version of Python is being used to run the tasks?

> 2.  All the other tasks run with no complaints.
> I find sip.so file in the install and image directories.
> tmp/work/armv4t-angstrom-linux-gnueabi/python-sip-4.7.9-ml0
>     /install/python-sip/usr/lib/python2.6/site-packages/
> tmp/work/armv4t-angstrom-linux-gnueabi/python-sip-4.7.9-ml0
>     /image/usr/lib/python2.6/site-packages
> In the staging-pkg  I see the following.
> tmp/work/armv4t-angstrom-linux-gnueabi/python-sip-4.7.9-ml0
>     /staging-pkg/staging/armv4t-angstrom-linux-gnueabi/shlibs/
>     python-sip.list ===> contains libsip.so.1
>     python-sip.ver ==> contains 4.7.9
> So my questions are:
> 1. Why didn't sip.so end up in my rootfs?

Sorry, I don't know. :-( I think you might get some detailed help on an
OpenEmbedded mailing list, or if you ask the person who committed the
recipes for SIP.

Please let us know if you manage to resolve this issue.



More information about the PyQt mailing list