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 344460 - dbus needs pyrex python module
dbus needs pyrex python module
Status: RESOLVED DUPLICATE of bug 311563
Product: jhbuild
Classification: Infrastructure
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: James Henstridge
Jhbuild QA
Depends on:
Blocks:
 
 
Reported: 2006-06-10 05:24 UTC by Craig Keogh
Modified: 2006-06-10 05:50 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16



Description Craig Keogh 2006-06-10 05:24:46 UTC
I did:

jhbuild bootstrap

which builds python in /opt/gnome2.

Then I did:

jhbuild tinderbox --output=output

And dbus failed to build.

Dbus (with python enabled) needs the pyrex python module.

To fix, download http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/
and:

/opt/gnome2/bin/python setup.py install

jhbuild should build this module for you, it is a dependency.


In my case, when I tried to build dbus, it picked up the system pyrex python module. As my system python is compiled differently with regard to unicode, I get the error:

make[3]: Entering directory `/home/gnomecvs/cvs/gnome2/dbus/python'
/opt/gnome2/bin/python ./extract.py ./dbus_bindings.pxd.in -I./..  -I. > dbus_bindings.pxd.tmp && mv dbus_bindings.pxd.tmp dbus_bindings.pxd
running echo '#include "dbus_h_wrapper.h"
pyrexc ./dbus_bindings.pyx -I. -o ./dbus_bindings.c
'|cpp  -I./.. -I.Traceback (most recent call last):
  • File "/usr/bin/pyrexc", line 7 in ?
    from Pyrex.Compiler.Main import main make[3]: Leaving directory `/home/gnomecvs/cvs/gnome2/dbus/python' make[2]: Leaving directory `/home/gnomecvs/cvs/gnome2/dbus/python' make[1]: Leaving directory `/home/gnomecvs/cvs/gnome2/dbus'
  • File "/usr/lib/python2.4/site-packages/Pyrex/Compiler/Main.py", line 13 in ?
    from Scanning import PyrexScanner
  • File "/usr/lib/python2.4/site-packages/Pyrex/Compiler/Scanning.py", line 6 in ?
    import cPickle as pickle
ImportError: /usr/lib/python2.4/lib-dynload/cPickle.so: undefined symbol: PyUnicodeUCS4_AsUTF8String
make[3]: *** [dbus_bindings.c] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Comment 1 Craig Keogh 2006-06-10 05:49:33 UTC

*** This bug has been marked as a duplicate of 311563 ***
Comment 2 Craig Keogh 2006-06-10 05:50:31 UTC
How about I learn2search.