[oe] Python exception running step do_package_update_index_ipk in OE classic

Martin Jansa martin.jansa at gmail.com
Tue Jun 19 07:44:01 UTC 2012


On Thu, May 17, 2012 at 07:34:24AM +0000, Craig McQueen wrote:
> 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

Fixed

http://git.openembedded.org/openembedded/commit/?id=b1aa65ab105f124af49deefc50b77e8901933685

> 
> 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
> 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20120619/874d2ac7/attachment-0002.sig>


More information about the Openembedded-devel mailing list