[U-Boot] Python subprocess module missing in multiconfig.py

david at plentovichdesign.com
2014-08-07T16:11:41Z

Hello. I read the posts a couple days ago about the Python issues with
Kconfig feature. I didn't see a resolution on how this would be fixed. I
am running Ubuntu 14.04LTS, building u-boot and the problem I have is that
the eldk tools have a older python (2.7.3) which does not have the
subprocess module but the current Ubuntu python (2.7.6) does include the
subprocess module. When I add the eldk (cross compiler) path before my
env $PATH the defconfig fails in multiconfig.py (uses the python in the
eldk toolkit). Can I just remove python from the eldk tools (so the newer
python will be used) or is that older python version required for some
other script in the cross compiler?

pdavid at david-TECRA-A8:~$ python
Python 2.7.6 (default, Mar 22 2014, 22:59:38)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import subprocess
>>>
[1]+ Stopped python
david at david-TECRA-A8:~$ export
PATH=/opt/eldk-5.5/armv5te/sysroots/i686-eldk-linux/usr/bin:/opt/eldk-5.5/armv5te/sysroots/i686-eldk-linux/usr/bin/armv5te-linux-gnueabi:/opt/eldk-5.5/armv5te/sysroots/i686-eldk-linux/usr/sbin:/opt/eldk-5.5/armv5te/sysroots/i686-eldk-linux/usr/sbin/armv5te-linux-gnueabi:$PATH
david at david-TECRA-A8:~$ python
Python 2.7.3 (default, Oct 18 2013, 13:50:05)
[GCC 4.8.1] 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
>>>
[2]+ Stopped python
david at david-TECRA-A8:~$ which python
/opt/eldk-5.5/armv5te/sysroots/i686-eldk-linux/usr/bin/python