On Thu, May 17, 2012 at 12:58 AM, Martin Jansa <[email protected]> wrote: > 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 >> >> 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? > > send patch against > http://git.yoctoproject.org/cgit/cgit.cgi/opkg-utils/ > to yocto ML > to make it compatible with both python 2.6 and 2.7
In oe-core, we pulled check_output() and CalledProcessException() out of 2.7 into the lib/oe tree for local use. You could do that in opkg-utils too if licensing isn't an issue. It's a relatively small amount of code. -- Christopher Larson _______________________________________________ Openembedded-devel mailing list [email protected] http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
