bitbake crash: "global name 'os' is not defined"

Bug #553613 reported by Victor Sergienko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
bitbake (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: bitbake

Bitbake crashes for me.

As for mailing list, 1.8.12 is pretty outdated, and the error was in some of old versions.
http://<email address hidden>/msg01472.html

I believe a newer one should be in distribution.
My error stack:

bitbake meta-toolchain-android
/usr/lib/pymodules/python2.6/bb/COW.py:29: DeprecationWarning: the sets module is deprecated
  import types, sets
Traceback (most recent call last):
  File "/usr/bin/bitbake", line 143, in <module>
    main()
  File "/usr/bin/bitbake", line 123, in main
    cooker.parseConfiguration()
  File "/usr/lib/pymodules/python2.6/bb/cooker.py", line 68, in parseConfiguration
    self.parseConfigurationFile( os.path.join( "conf", "bitbake.conf" ) )
  File "/usr/lib/pymodules/python2.6/bb/cooker.py", line 404, in parseConfigurationFile
    bb.event.fire(bb.event.ConfigParsed(self.configuration.data))
  File "/usr/lib/pymodules/python2.6/bb/event.py", line 67, in fire
    if tmpHandler(event) == Handled:
  File "tmpHandler(e)", line 4, in tmpHandler
  File "<bb>", line 18, in check_sanity
NameError: global name 'os' is not defined

Revision history for this message
Loïc Minier (lool) wrote :

This is fixed in newer bitbake versions (we're currently at 1.8.18)

Thanks!

Changed in bitbake (Ubuntu):
status: New → Fix Released
Revision history for this message
Vars (tvardhaman) wrote :

I got below message after bitbaking an image. is it same as above question? If yes please tell me how to install newer version of bitbake when one is already installed.
"NameError: global name 'bb' is not defined"

Revision history for this message
Loïc Minier (lool) wrote :

I believe we have newer bitbakes in the latest Ubuntu version which fixes your original issue; if you have the new issue you mention with the new bitbake, please report it separately

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.