[yocto] Python-installation on target (qemuppc) image ....

Jonas Jonsson L jonas.l.jonsson at ericsson.com
Thu Oct 4 05:27:03 PDT 2012


Hi,

I'm trying to get a working python on a 'core-image-minimal' type of image but with no luck.  Loads of stuff from the standard python library aren't installed on the target (qemuppc), as an example I can't run 'python-config' since the 'distutils'-module isn't available.  I need the 'shutil' module on my image but I can't figure out how to achive that.  Python seems to work on the target but it seems to lack lots of standard functionality.

The shutil.py & shutil.pyo exists in .../build/tmp/work/ppc603e-poky-linux/python-2.7.3-r0.2/package/usr/lib/python2.7 folder but it doesn't exist on the target image...

Also, in ..../deploy-rpms/ppc603e/python-shell-2.7.3-r0.2.ppc603e.rpm, the shutil-files exist ...

Somehow, it seems as if this rpm isn't installed on my target-image, what controls that?

Examining the log.do_package-file shows ~5700 lines of "error: Couldn't exec ..../sysroot/x86_64-linux/usr/lib/rpm/pythoneggs.py: No such file or directory" (shouldn't it be qemupcc??) from function package_do_filedeps.

Examining the log.do_populate_sysroot-file shows "WARNING: The recipe is trying to install files into a shared area when those files already exist. Those files are: pyconfig.h, libpython2.7.so, libpython2.7.so.1.0 and Makefile" ....

Best regards,

Jonas Jonsson

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20121004/54b07768/attachment.html>


More information about the yocto mailing list