Skip to contentSkip to conversation

Missing sanity / dependency

DISCUSSION Gary Thomas 2 participants 3 messages Oct 8, 2015

lore
Share & tools
lore
#0 lore raw

I just ran across this on a [fairly new] system:

$ bitbake meta-toolchain -g -u depexp
Traceback (most recent call last):
  File "/local/poky-cutting-edge/bitbake/bin/bitbake", line 45, in <module>
    cookerdata.CookerConfiguration()))
  File "/local/poky-cutting-edge/bitbake/lib/bb/main.py", line 334, in bitbake_main
    ui_module = import_extension_module(bb.ui, configParams.ui, 'main')
  File "/local/poky-cutting-edge/bitbake/lib/bb/main.py", line 103, in import_extension_module
    module = __import__(pkg.__name__, fromlist = [modulename])
  File "/local/poky-cutting-edge/bitbake/lib/bb/ui/depexp.py", line 22, in <module>
    import gtk
ImportError: No module named gtk

Should this have been caught by the sanity checker, or perhaps handled better? In my Ubuntu case, I was missing python-gtk2 and friends.

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
#1 lore raw

That bug was fixed some time ago, try updating your clone. In particular I expect your checkout is before
poky bb34181b42b62e0476ba9e12f9125ed9f785cf23.

Ross

Quoted 32 lines · Gary Thomas

I just ran across this on a [fairly new] system:

$ bitbake meta-toolchain -g -u depexp
Traceback (most recent call last):
  File "/local/poky-cutting-edge/bitbake/bin/bitbake", line 45, in <module>
    cookerdata.CookerConfiguration()))
  File "/local/poky-cutting-edge/bitbake/lib/bb/main.py", line 334, in
bitbake_main
    ui_module = import_extension_module(bb.ui, configParams.ui, 'main')
  File "/local/poky-cutting-edge/bitbake/lib/bb/main.py", line 103, in
import_extension_module
    module = __import__(pkg.__name__, fromlist = [modulename])
  File "/local/poky-cutting-edge/bitbake/lib/bb/ui/depexp.py", line 22, in
<module>
    import gtk
ImportError: No module named gtk

Should this have been caught by the sanity checker, or perhaps handled better? In my Ubuntu case, I was missing python-gtk2 and friends.

--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

#2 lore raw
Quoted 1 line · Ross

That bug was fixed some time ago, try updating your clone. In particular I expect your checkout is before poky bb34181b42b62e0476ba9e12f9125ed9f785cf23.

Nope - I'm at master:eac61f37e36099f74485dab398b57f3812826d17 (current tip) and I still get the same error.

Quoted 19 lines · On 8 October 2015 at 21:59, Gary Thomas <[email protected]…

I just ran across this on a [fairly new] system:

$ bitbake meta-toolchain -g -u depexp
Traceback (most recent call last):
File "/local/poky-cutting-edge/bitbake/bin/bitbake", line 45, in <module>
cookerdata.CookerConfiguration()))
File "/local/poky-cutting-edge/bitbake/lib/bb/main.py", line 334, in bitbake_main
ui_module = import_extension_module(bb.ui, configParams.ui, 'main')
File "/local/poky-cutting-edge/bitbake/lib/bb/main.py", line 103, in import_extension_module
module = __import__(pkg.__name__, fromlist = [modulename])
File "/local/poky-cutting-edge/bitbake/lib/bb/ui/depexp.py", line 22, in <module>
import gtk
ImportError: No module named gtk

Should this have been caught by the sanity checker, or perhaps handled better? In my Ubuntu case, I was missing python-gtk2 and friends.

Signature · 4 lines
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------