LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-14-2012, 05:54 AM   #1
korena
LQ Newbie
 
Registered: Apr 2012
Posts: 7

Rep: Reputation: Disabled
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 ...
 
Old 04-14-2012, 07:08 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2018 CentOS6.10 CentOS7.5 + 50+ other Linux OS, for test only.
Posts: 17,079

Rep: Reputation: 3475Reputation: 3475Reputation: 3475Reputation: 3475Reputation: 3475Reputation: 3475Reputation: 3475Reputation: 3475Reputation: 3475Reputation: 3475Reputation: 3475
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".

.
 
Old 04-14-2012, 11:49 AM   #3
korena
LQ Newbie
 
Registered: Apr 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Import Error: No module named apsw PhilipRH Linux - Newbie 2 03-20-2011 04:50 AM
WICD error, no module named gtk tmkd Slackware 4 05-23-2010 11:53 AM
Internal Error: No module named Config yuri16 Linux - Software 1 05-22-2009 05:17 AM
yum error: no module named rpm catbird Linux - Newbie 4 02-21-2008 09:55 AM
gnochm error - No module named gconf raghav Fedora 1 12-14-2005 09:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration