dbus-python error

DJ Lucas dj at linuxfromscratch.org
Wed Jul 25 12:43:52 PDT 2007

Guys, I'm getting an error in dbus-python installation.  I originally
had python-2.5.0, updated to python-2.5.1 (after removing the partial
installation of dbus-python).  Still get the same error.  I've got a
fairly small list of python modules, but they all checked out fine with
the 2.5.1 update, so I don't think it's a local issue.  Here is the
error, maybe should goto support, but I think I remember something
similar just before blfs-6.2, in dbus-0.62 (does that sound right??). 
Anybody seen this one yet?

/sources/dbus-python-0.82.0/install-sh -c -m 644 'types.py'
'import site' failed; use -v for traceback
Traceback (most recent call last):
  File "<string>", line 2, in <module>
  File "/usr/lib/python2.5/os.py", line 696, in <module>
    import copy_reg as _copy_reg
  File "/usr/lib/python2.5/copy_reg.py", line 7, in <module>
    from types import ClassType as _ClassType
  File "types.py", line 6, in <module>
    from _dbus_bindings import ObjectPath, ByteArray, Signature, Byte,\
ImportError: No module named _dbus_bindings
make[3]: *** [install-nobase_pythondbusPYTHON] Error 1
make[3]: Leaving directory `/sources/dbus-python-0.82.0/dbus'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/sources/dbus-python-0.82.0/dbus'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/sources/dbus-python-0.82.0/dbus'
make: *** [install-recursive] Error 1
[root at NAME25 dbus-python-0.82.0]#

FWIW, I have these python modules added (in order):
[root at NAME25 sources]# grep "py" /var/log/packages

Actually, I just looked at the gentoo ebuild and they list pyrex as a
dep, but I still get the same error running make install.  Just FYI, the
error is correct!  I see dbus_bindings.py but not _dbus_bindings.py. 

[root at NAME25 dbus-python-0.82.0]# ls -R

bus.py            decorators.py                gobject_service.py 
connection.py     exceptions.py                __init__.py        
dbus_bindings.py  _expat_introspect_parser.py  lowlevel.py         types.py
_dbus.py          glib.py                      mainloop           

glib.py  __init__.py
[root at NAME25 dbus-python-0.82.0]#

Copying the file to the expected name simply brings more errors...
dbus.exceptions.py is next.

-- DJ Lucas

More information about the blfs-dev mailing list