Skip to contentSkip to conversation

Another python3 error?

DISCUSSION Gary Thomas 3 participants 8 messages Jun 10, 2016

lore
Share & tools
lore
#0 lore raw
BB_VERSION        = "1.31.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-15.10"
meta              = "master:40e789d1fee7f0df2d23230fff38325119ad2935"
$ bitbake my-demo-image -g -u depexp
Traceback (most recent call last):
  File "/local/poky-cutting-edge/bitbake/bin/bitbake", line 48, in <module>
    cookerdata.CookerConfiguration()))
  File "/local/poky-cutting-edge/bitbake/lib/bb/main.py", line 374, in bitbake_main
    ui_module = import_extension_module(bb.ui, configParams.ui, 'main')
  File "/local/poky-cutting-edge/bitbake/lib/bb/main.py", line 104, in import_extension_module
    module = __import__(pkg.__name__, fromlist=[modulename])
  File "/local/poky-cutting-edge/bitbake/lib/bb/ui/depexp.py", line 21, in <module>
    import gobject
ImportError: No module named 'gobject'

bitbake -g by itself works fine. Is this a [new] issue with my build host, or just the change over to python3?

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

bitbake -g by itself works fine. Is this a [new] issue with my build host, or just the change over to python3?

That's missing packages on your build host.

Ross

#2 lore raw
In reply to Gary Thomas
Quoted 17 lines · Gary Thomas
BB_VERSION        = "1.31.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-15.10"
meta              = "master:40e789d1fee7f0df2d23230fff38325119ad2935"
$ bitbake my-demo-image -g -u depexp
Traceback (most recent call last):
   File "/local/poky-cutting-edge/bitbake/bin/bitbake", line 48, in <module>
     cookerdata.CookerConfiguration()))
   File "/local/poky-cutting-edge/bitbake/lib/bb/main.py", line 374, in bitbake_main
     ui_module = import_extension_module(bb.ui, configParams.ui, 'main')
   File "/local/poky-cutting-edge/bitbake/lib/bb/main.py", line 104, in import_extension_module
     module = __import__(pkg.__name__, fromlist=[modulename])
   File "/local/poky-cutting-edge/bitbake/lib/bb/ui/depexp.py", line 21, in <module>
     import gobject
ImportError: No module named 'gobject'
Quoted 3 lines

bitbake -g by itself works fine. Is this a [new] issue with my build host, or just the change over to python3?

Any hints on which (and why it's not being recommended by the sanity checker)?

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

Any hints on which (and why it's not being recommended by the sanity checker)?

It's not recommended by the sanity checker because its only needed by depexp and on a X11-less build server will pull in vast numbers of packages.

It's the python2 GTK+2 bindings, so something like python-gtk is a good start.

Ross

#4 lore raw
Quoted 10 lines · Ross

On 10 June 2016 at 09:39, Gary Thomas <[email protected] <mailto:[email protected]>> wrote:

Any hints on which (and why it's not being recommended by the sanity checker)?

It's not recommended by the sanity checker because its only needed by depexp and on a X11-less build server will pull in vast numbers of packages.

It's the python2 GTK+2 bindings, so something like python-gtk is a good start.

I do have that package installed, but I think only for python2.

bitbake -u depexp used to work on this same system before the change over to python3 in bitbake.

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

bitbake -u depexp used to work on this same system before the change over to
python3 in bitbake.

Sorry I meant python3 :)

Ross

#6 lore raw
In reply to Gary Thomas

Hi Gary,

Quoted 10 lines · Gary Thomas
Quoted 9 lines · Ross

On 10 June 2016 at 09:39, Gary Thomas <[email protected] <mailto:[email protected]>> wrote:

Any hints on which (and why it's not being recommended by the sanity checker)?

It's not recommended by the sanity checker because its only needed by depexp and on a X11-less build server will pull in vast numbers of packages.

Quoted 6 lines
Quoted 1 line

It's the python2 GTK+2 bindings, so something like python-gtk is a good start.

I do have that package installed, but I think only for python2.

bitbake -u depexp used to work on this same system before the change over to python3 in bitbake.

Had the same experience. We need to modify depexp.py to support python3:

http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=maxin/depexp
( Please note that this is a work in progress )

Best Regards,
Maxin