[yocto] Missing Python modules on target

Jonatan Magnusson jonatan.magnusson at gmail.com
Thu Mar 20 06:33:17 PDT 2014


Hi,

Thanks, but unfortunately it still doesn’t work... wsgiref does not get installed on the image.

Regards,
Jonatan



20 mar 2014 kl. 13:22 skrev Erik Botö <erik.boto at pelagicore.com>:

> Hi Jonatan,
> 
> I believe it should be in python-misc package, so if you add that to
> IMAGE_INSTALLS or as a RDEPEND of some other installed packaged it
> should work.
> 
> There's a section in python_2.7.3.bb which is a catch all for stuff
> not packaged by python-2.7-manifest:
> 
> # catch all the rest (unsorted)
> PACKAGES += "${PN}-misc"
> FILES_${PN}-misc = "${libdir}/python${PYTHON_MAJMIN}"
> 
> Cheers,
> Erik
> 
> On Wed, Mar 19, 2014 at 11:35 PM, Jonatan Magnusson
> <jonatan.magnusson at gmail.com> wrote:
>> 
>> (I replied to Chris personal email by mistake. Our conversation is pasted
>> below.)
>> 
>> I tried to investigate how the Python installer works, and there are still
>> many parts I am not sure about.
>> But as far as I understand the manifest file (python-2.7-manifest.inc) *is*
>> responsible for telling bitbake which Python modules to install. It contains
>> a bunch of FILES_${PN}-<package> definitions like this:
>> 
>> FILES_${PN}-numbers="${libdir}/python2.7/decimal.*
>> ${libdir}/python2.7/numbers.* "
>> 
>> If I add "${libdir}/python2.7/wsgiref" to one of these and rebuild the image
>> the module gets installed on the image.  This solves my problem, but I
>> wonder why it is not included by default?
>> 
>> Anyone who can shed som light on this?
>> 
>> Regards,
>> Jonatan Magnusson




More information about the yocto mailing list