LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   bitbake error: no module named bb (https://www.linuxquestions.org/questions/linux-software-2/bitbake-error-no-module-named-bb-939763/)

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:
Code:

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:

Code:

#! /bin/bash
STRING="bitbake_setup done"
BBPATH=/home/korena/mydev_tools/top_tree/build:/home/korena/mydev_tools/top_tree/openembedded
PATH=home/korena/mydev_tools/top_tree/bitbake-1.10.2/bin:$PATH
PYTHONPATH=$PYTHONPATH:/usr/lib/python2.7/site-packages/
export PYTHONPATH
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:
python-2.7.2-5.2.fc16.i686.rpm
Thanx in advance ...

knudfl 04-14-2012 07:08 AM

How did you get "usr/local/bin/bitbake" ? ?
A manual 'python setup.py 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.

Thnx


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