[oe] Python exception running step do_package_update_index_ipk in OE classic

Craig McQueen craig.mcqueen at beamcommunications.com
Thu May 17 07:34:24 UTC 2012


I'm trying to build OE classic for i.MX28, following instructions at:
http://www.imxdev.org/wiki/index.php?title=All_Boards_OpenEmbedded

I'm trying to run:
  bitbake bootstrap-image

It is failing on a step do_package_update_index_ipk when calling Python program opkg-make-index. See error below.

The problem is when it calls subprocess.check_output(), but check_output() is only in Python 2.7, but not Python 2.6.

On my machine, Python 2.7 is installed, however it seems that OE must be running Python 2.6. I see that OE builds Python 2.6 in tmp/work/i686-linux/python-native-2.6.6-ml12.0.

What would be a good way to fix this?

Regards,
Craig McQueen

NOTE: Running task 4056 of 4060 (ID: 18, /home/craigm/openembedded/stuff/openembedded/recipes/images/bootstrap-image.bb, do_package_update_index_ipk)
NOTE: package bootstrap-image-1.0-r0: task do_package_update_index_ipk: Started
ERROR: Logfile of failure stored in: /home/craigm/openembedded/stuff/tmp/work/mx28evk-angstrom-linux-gnueabi/bootstrap-image-1.0-r0/temp/log.do_package_update_index_ipk.20049
Log data follows:
| + do_package_update_index_ipk
| + set -x
| + ipkgarchs='all any noarch arm  armv4 armv4t armv5te mx28evk'
| + '[' '!' -z '' ']'
| + mkdir -p /home/craigm/openembedded/stuff/tmp/deploy/eglibc/ipk
| + touch /home/craigm/openembedded/stuff/tmp/deploy/eglibc/ipk/Packages
| + opkg-make-index -r /home/craigm/openembedded/stuff/tmp/deploy/eglibc/ipk/Packages -p /home/craigm/openembedded/stuff/tmp/deploy/eglibc/ipk/Packages -l /home/craigm/openembedded/stuff/tmp/deploy/eglibc/ipk/Packages.filelist -m /home/craigm/openembedded/stuff/tmp/deploy/eglibc/ipk
| Traceback (most recent call last):
|   File "/home/craigm/openembedded/stuff/tmp/sysroots/i686-linux/usr/bin/opkg-make-index", line 189, in <module>
|     rc = subprocess.check_output(gzip_cmd, shell=True)
| AttributeError: 'module' object has no attribute 'check_output'
NOTE: package bootstrap-image-1.0-r0: task do_package_update_index_ipk: Failed
ERROR: Function 'do_package_update_index_ipk' failed (see /home/craigm/openembedded/stuff/tmp/work/mx28evk-angstrom-linux-gnueabi/bootstrap-image-1.0-r0/temp/log.do_package_update_index_ipk.20049 for further information)
ERROR: Task 18 (/home/craigm/openembedded/stuff/openembedded/recipes/images/bootstrap-image.bb, do_package_update_index_ipk) failed with exit code '1'
ERROR: '/home/craigm/openembedded/stuff/openembedded/recipes/images/bootstrap-image.bb' failed



More information about the Openembedded-devel mailing list