After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 787032 - gdbus-codegen 2.53.6: ImportError: No module named codegen
gdbus-codegen 2.53.6: ImportError: No module named codegen
Status: RESOLVED DUPLICATE of bug 786785
Product: glib
Classification: Platform
Component: gdbus
unspecified
Other All
: Normal major
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2017-08-30 18:24 UTC by Olav Vitters
Modified: 2017-09-11 14:17 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Olav Vitters 2017-08-30 18:24:24 UTC
While compiling gnome-bluetooth 3.25.91 with Meson I get the following build error:

> /bin/gdbus-codegen --interface-prefix org.freedesktop.DBus --output-directory lib --generate-c-code bluetooth-fdo-glue ../lib/bluetooth-fdo.xml
> Traceback (most recent call last):
>   File "/bin/gdbus-codegen", line 42, in <module>
>     from codegen import codegen_main
> ImportError: No module named codegen

Cause seems to be the following commit:
https://git.gnome.org/browse/glib/commit/gio/gdbus-2.0/codegen/gdbus-codegen.in?id=fe2a9887a8ccb14f2386e01b14834e97a33bc2d7

Note that gdbus-codegen is called as /bin/gdbus-codegen. It actually lives in /usr/bin//gdbus-codegen. This breaks the logic that was added/changed in above commit.
Comment 1 Daniel Boles 2017-09-11 14:17:09 UTC

*** This bug has been marked as a duplicate of bug 786785 ***