Author Topic: Bitbake Fails With No Bb Module  (Read 18810 times)

adf

  • Hero Member
  • *****
  • Posts: 2807
    • View Profile
    • http://
Bitbake Fails With No Bb Module
« on: April 17, 2005, 02:31:26 am »
Traceback (most recent call last):
  File "/usr/local/bin/bitbake", line 23, in ?
    import bb


maybe this is really obvious, but I have no idea why I am gertting this error or how to fix it.

I'm on debian sid. the system standard python is 2.3. I changed the bitbake, bb** etc 1st lines from "python" to "python2.4" as suggested by the wiki, after I had been  "getting cannot open conf/bitbake.conf errors" (I have had to rebuild my OE).

apparently the thing wants "bb"  whci refers to..what? bitbake? a bbfiles dir? a module for interpreting bbfiles?

help? pointers? link to the undiscovered-by-me wikitopia from whose bourne no user returns uninformed?
**3100 Zubuntu Jaunty,(working on Cacko dualboot), 16G A-Data internal CF, 4G SD, Ambicom WL-1100C Cf, linksys usb ethernet,  BelkinF8T020 BT card, Belkin F8U1500-E Ir kbd, mini targus usb mouse, rechargeble AC/DC powered USB hub, psp cables and battery extenders.

**6000l  Tetsuized Sharprom, installed on internal flash only 1G sd, 2G cf

Stubear

  • Hero Member
  • *****
  • Posts: 1164
    • View Profile
    • http://
Bitbake Fails With No Bb Module
« Reply #1 on: April 17, 2005, 05:02:52 am »
THe only way I could get bb to work was to install it into /usr/bin rather then /usr/local/bin. Not sure why this was but python on my system (Gentoo) wasn't able to find the bb pyhton module if it was installed in /usr/local

Try reinstalling bitbake with /usr as a prefix instead of /usr/local

Stu
SL-C1000, Hand converted to English with Japanese Input
Running X apps via X/Qt
iRiver USB host cable; Diatec P-Cord usb power cable (extendable); Acro's Reel Cable USB (A to A, B, Mini-B,  & Mini-B 8pin); GreenHouse 1Gb PicoDrive+; 2x256Mb Hagiwara SD cards; 128Mb Transcend CF card; 512Mb PQI CF card; AmbiCom WL1100C-CF 11B WLAN card

adf

  • Hero Member
  • *****
  • Posts: 2807
    • View Profile
    • http://
Bitbake Fails With No Bb Module
« Reply #2 on: April 17, 2005, 05:06:59 am »
thanks!
that is weird enough that it is probably eactly the solution
will let you know tomorrow.
**3100 Zubuntu Jaunty,(working on Cacko dualboot), 16G A-Data internal CF, 4G SD, Ambicom WL-1100C Cf, linksys usb ethernet,  BelkinF8T020 BT card, Belkin F8U1500-E Ir kbd, mini targus usb mouse, rechargeble AC/DC powered USB hub, psp cables and battery extenders.

**6000l  Tetsuized Sharprom, installed on internal flash only 1G sd, 2G cf

adf

  • Hero Member
  • *****
  • Posts: 2807
    • View Profile
    • http://
Bitbake Fails With No Bb Module
« Reply #3 on: April 17, 2005, 03:53:21 pm »
switched to not-instsalled mode. seems to work
**3100 Zubuntu Jaunty,(working on Cacko dualboot), 16G A-Data internal CF, 4G SD, Ambicom WL-1100C Cf, linksys usb ethernet,  BelkinF8T020 BT card, Belkin F8U1500-E Ir kbd, mini targus usb mouse, rechargeble AC/DC powered USB hub, psp cables and battery extenders.

**6000l  Tetsuized Sharprom, installed on internal flash only 1G sd, 2G cf

willpost

  • Newbie
  • *
  • Posts: 1
    • View Profile
Bitbake Fails With No Bb Module
« Reply #4 on: July 16, 2005, 03:43:35 pm »
If you get an error about not being able to load the bb module you need to modify your PYTHONPATH variable.
To do this type
export PYTHONPATH=/usr/local/lib/python2.3/site-packages/:$PYTHONPATH
(Replace 2.3 with your version number)

http://www.nslu2-linux.org/wiki/OpenEmbedded/GettingStarted