dbus-python error

Dan Nicholson dbn.lists at gmail.com
Wed Jul 25 18:35:11 PDT 2007


On 7/25/07, DJ Lucas <dj at linuxfromscratch.org> wrote:
>
> /sources/dbus-python-0.82.0/install-sh -c -m 644 'types.py'
> '/usr/lib/python2.5/site-packages/dbus/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

It's working fine for me, although I have python-2.4 on this system.
Do you see any strange output from

python -v -c 'import _dbus_bindings'

For me, it shows it loads /usr/lib/python2.4/site-packages/_dbus_bindings.so

> FWIW, I have these python modules added (in order):
> [root at NAME25 sources]# grep "py" /var/log/packages
> numpy-1.0.3
> pyorbit-2.14.3
> pygobject-2.12.3
> pycairo-1.4.0
> pygtk-2.10.4
> gnome-python-2.18.2
> gnome-python-desktop-2.18.0

I believe only dbus, python and dbus-glib should make a difference
when trying to load dbus-python.

Any strange output from

ldd /usr/lib/python2.5/site-packages/_dbus_bindings.so

Mine shows just linking to libdbus-1 and libc.

--
Dan



More information about the blfs-dev mailing list