All of lore.kernel.org
 help / color / mirror / Atom feed
* Bitbake syntax error
@ 2011-08-02  1:43 Bernard Mentink
  2011-08-02 11:01 ` Paul Eggleton
  0 siblings, 1 reply; 3+ messages in thread
From: Bernard Mentink @ 2011-08-02  1:43 UTC (permalink / raw)
  To: openembedded-devel


Hi Guys,

I am getting the following error while trying to build the
bootstrap-image, my bitbake is version 1.12.0.

----------- error -----------
gnueabi/bootstrap-image-1.0-r0/temp/log.do_package_update_index_ipk.2777
9
Log data follows:
| + do_package_update_index_ipk
| + set -x
| + ipkgarchs='all any noarch arm  armv4 armv4t armv5te armv6 mx31ads'
| + '[' '!' -z '' ']'
| + mkdir -p /home/bmentink/devel/build/tmp/deploy/eglibc/ipk
| + touch /home/bmentink/devel/build/tmp/deploy/eglibc/ipk/Packages
| + opkg-make-index -r
/home/bmentink/devel/build/tmp/deploy/eglibc/ipk/Packages -p
/home/bmentink/devel/build/tmp/deploy/eglibc/ipk/Packages -l
/home/bmentink/devel/build/tmp/deploy/eglibc/ipk/Packages.filelist -m
/home/bmentink/devel/build/tmp/deploy/eglibc/ipk
|   File
"/home/bmentink/devel/build/tmp/sysroots/i686-linux/usr/bin/opkg-make-in
dex", line 128
|     print pkg_dir + "/" + old_filename
|                 ^
| SyntaxError: invalid syntax
NOTE: package bootstrap-image-1.0-r0: task do_package_update_index_ipk:
Failed

Any idea's?

Cheers,
Bernie.







^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Bitbake syntax error
  2011-08-02  1:43 Bitbake syntax error Bernard Mentink
@ 2011-08-02 11:01 ` Paul Eggleton
  2011-08-03  8:17   ` Martin Panter
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Eggleton @ 2011-08-02 11:01 UTC (permalink / raw)
  To: openembedded-devel

On Tuesday 02 August 2011 02:43:05 Bernard Mentink wrote:
> I am getting the following error while trying to build the
> bootstrap-image, my bitbake is version 1.12.0.
> 
>...
> "/home/bmentink/devel/build/tmp/sysroots/i686-linux/usr/bin/opkg-make-in
> dex", line 128
> 
> |     print pkg_dir + "/" + old_filename
> |     
> |                 ^
> | 
> | SyntaxError: invalid syntax

Someone posted this problem on IRC and eventually discovered that it was that 
/usr/bin/python was pointing to python3 (which isn't supported by BitBake). Is 
that what's happening on your system?

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Bitbake syntax error
  2011-08-02 11:01 ` Paul Eggleton
@ 2011-08-03  8:17   ` Martin Panter
  0 siblings, 0 replies; 3+ messages in thread
From: Martin Panter @ 2011-08-03  8:17 UTC (permalink / raw)
  To: openembedded-devel

On 02/08/2011, Paul Eggleton <paul.eggleton@linux.intel.com> wrote:
> On Tuesday 02 August 2011 02:43:05 Bernard Mentink wrote:
>> I am getting the following error while trying to build the
>> bootstrap-image, my bitbake is version 1.12.0.
>>
>>...
>> "/home/bmentink/devel/build/tmp/sysroots/i686-linux/usr/bin/opkg-make-in
>> dex", line 128
>>
>> |     print pkg_dir + "/" + old_filename
>> |
>> |                 ^
>> |
>> | SyntaxError: invalid syntax
>
> Someone posted this problem on IRC and eventually discovered that it was
> that
> /usr/bin/python was pointing to python3 (which isn't supported by BitBake).
> Is
> that what's happening on your system?

I install Bit bake with “python2 setup.py install” and this has worked for me
on my computer where the default python is python3.

Perhaps the opkg-make-index script is picking up the host’s python
program when it should be getting one out of OE’s sysroot directory or
something?



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-08-03  8:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-02  1:43 Bitbake syntax error Bernard Mentink
2011-08-02 11:01 ` Paul Eggleton
2011-08-03  8:17   ` Martin Panter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.