-   Linux - Software (
-   -   bitbake error: no module named bb (

korena 04-14-2012 05:54 AM

bitbake error: no module named bb
so Im trying to use bitbake to set up a cross-compiling environment following the getting started page on openembedded.

my problem is that when I try to use the command bitbake (after setting the environment and adding necessary directories to both $PATH and $PYTHONPATH), I get the following error:

File "usr/local/bin/bitbake" , line 27, in <module>
import bb
ImportError: No module named bb

I have written a bash script to set the environment as follows:


#! /bin/bash
STRING="bitbake_setup done"
export BBPATH
export PATH
echo $STRING

any idea how to deal with this problem ?

Im using fedora 16 on an HP mini with intel atom cpu N450 @ 1.66GHz x2
kernel linux 3.3.0-4.fc16.i686
Gnome 3.2.1

latest installed python:
Thanx in advance ...

knudfl 04-14-2012 07:08 AM

How did you get "usr/local/bin/bitbake" ? ?
A manual 'python install' that use the default /usr/bin/python(-2.7)
will install bitbake to /usr/ : /usr/bin/bitbake

And : bitbake will work only with the python used for the build.

Also : # yum install bitbake
... will install version "1.8.18-3.fc15".


korena 04-14-2012 11:49 AM

I did not actually install bitbake, not sure how that directory was created :-S ... I installed it following your post, it seems to work fine now.


All times are GMT -5. The time now is 09:05 AM.