[yocto] Yocto Python Issue
Darcy Watkins
darcy.watkins at inmotiontechnology.com
Tue Feb 18 10:31:41 PST 2014
Hi,
I am using yocto 1.5 build environment on CentOS 6 with the prerequisite
tools package installed to ensure that I have python 2.7, an up-to-date
'tar' etc as instructed in the manual.
I have encountered the following error in a package I am building that
uses python:
| [SWIG PYTHON WRAP omg2000]
| mkdir -p build-omg2000/
| swig
-I/home/dwatkins/workspace/epsilon/repo_MG-os_test2/build/tmp/sysroots/omg2000/usr/include -Wall -python -o build-omg2000/omgll_python_wrap.c omgll.i
| touch .lib-omg2000-omgll
| touch .lib-omg2000-omgll
| [PYTHON SO omg2000]
| cd build-omg2000 && python omgll_setup.py build
| Traceback (most recent call last):
| File "omgll_setup.py", line 1, in <module>
| from distutils.core import setup, Extension
| File
"/home/dwatkins/bin/opt/i686/poky/1.5-1/sysroots/i686-pokysdk-linux/usr/lib/python2.7/distutils/core.py", line 20, in <module>
| from distutils.dist import Distribution
| File
"/home/dwatkins/bin/opt/i686/poky/1.5-1/sysroots/i686-pokysdk-linux/usr/lib/python2.7/distutils/dist.py", line 10, in <module>
| from email import message_from_file
| ImportError: No module named email
| make[1]: *** [build-omg2000/python/_omgll.so] Error 1
Apparently the 'distutils' module needs an 'email' module and that was
never included with it. There is also no 'pip' included with it, nor
could I find a python-pip-native recipe. I tried using the 'get-pip.py'
from python.org and got basically the same traceback because it tried to
use the same thing.
dwatkins at kihei:32bit build $
find /home/dwatkins/bin/opt/i686/poky/1.5-1/sysroots/i686-pokysdk-linux/usr/lib/python2.7/ | grep email
/home/dwatkins/bin/opt/i686/poky/1.5-1/sysroots/i686-pokysdk-linux/usr/lib/python2.7/site-packages/git/test/fixtures/reflog_invalid_email
dwatkins at kihei:32bit build $
As indicated above, there isn't an email package as part of the python
distro that was built in the ADT.
Is there a remedy for this? If it comes down to manually installing a
python email module, anyone know what version I need to get for python
2.7 (or will email-6.0.0a1 from python.org work)?
--
Regards,
Darcy
---
Darcy Watkins
Senior Software Developer
In Motion Technology, Inc.
350-625 Agnes St. New Westminster, BC
Canada, V3M 5Y4
[P1]
More information about the yocto
mailing list