I am using the ConnectCard i.MX28 Jump Start eval board, and have been experimenting with the minimal (i.e. non-graphical) build of Digi Embedded Yocto.
I am in the process of fleshing out a Python based script that I want to run on the device, and have encountered errors related to missing Python modules.
My application leverages the subprocess module, part of the Python Standard Library.
On the ccardimx28js, I see the following upon attempts to import it ...
Python 2.7.3 (default, Sep 3 2015, 13:19:15)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import subprocess
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named subprocess
I do see the subprocess module in the list of rpms (in the workspace/ccardimx28js/tmp/deploy/arm5vte/rpm directory).
There is not much information in the public literature about resolving problems like this for Python in the Yocto framework, and the few discussions on the topic that I find seem to go unresolved and/or abruptly end.
Also, I attempted to add this and remake the image by adding the following to my local.conf file per a suggestion in one of the aforementioned threads.
TOOLCHAIN_HOST_TASK_append = " nativesdk-python-subprocess"
This had no effect. I still get the error that subprocess is not a recognized Python module.
Any help is sincerely appreciated.
Thanks in advance.