Okay, I got an error with DBus-Python tonight. This is not the first time I've seen this error.
http://www.linuxfromscratch.org/pipermail/blfs-dev/2007-July/017525.html I was able to recover to a pre-install state. Build is by the book, but not *all* optional dependencies were met. I have a feeling pth or pygobject is actually required, but am unable to prove it at this time. Reporting for now since I don't really need dbus-python ATM, it was just sitting in between the QT and glib bindings so I went to build it. Here is the error log (This message is very long)... {{{ Making install in _dbus_bindings make[1]: Entering directory `/sources/dbus-python-0.82.0/_dbus_bindings' make[2]: Entering directory `/sources/dbus-python-0.82.0/_dbus_bindings' test -z "/usr/lib/python2.5/site-packages" || mkdir -p -- "/usr/lib/python2.5/site-packages" /bin/sh ../libtool --mode=install /usr/bin/install -c '_dbus_bindings.la' '/usr/lib/python2.5/site-packages/_dbus_bindings.la' /usr/bin/install -c .libs/_dbus_bindings.so /usr/lib/python2.5/site-packages/_dbus_bindings.so /usr/bin/install -c .libs/_dbus_bindings.lai /usr/lib/python2.5/site-packages/_dbus_bindings.la PATH="$PATH:/sbin" ldconfig -n /usr/lib/python2.5/site-packages ---------------------------------------------------------------------- Libraries have been installed in: /usr/lib/python2.5/site-packages If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the `LD_RUN_PATH' environment variable during linking - use the `-Wl,--rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to `/etc/ld.so.conf' See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- make[2]: Nothing to be done for `install-data-am'. make[2]: Leaving directory `/sources/dbus-python-0.82.0/_dbus_bindings' make[1]: Leaving directory `/sources/dbus-python-0.82.0/_dbus_bindings' Making install in _dbus_glib_bindings make[1]: Entering directory `/sources/dbus-python-0.82.0/_dbus_glib_bindings' make[2]: Entering directory `/sources/dbus-python-0.82.0/_dbus_glib_bindings' test -z "/usr/lib/python2.5/site-packages" || mkdir -p -- "/usr/lib/python2.5/site-packages" /bin/sh ../libtool --mode=install /usr/bin/install -c '_dbus_glib_bindings.la' '/usr/lib/python2.5/site-packages/_dbus_glib_bindings.la' /usr/bin/install -c .libs/_dbus_glib_bindings.so /usr/lib/python2.5/site-packages/_dbus_glib_bindings.so /usr/bin/install -c .libs/_dbus_glib_bindings.lai /usr/lib/python2.5/site-packages/_dbus_glib_bindings.la PATH="$PATH:/sbin" ldconfig -n /usr/lib/python2.5/site-packages ---------------------------------------------------------------------- Libraries have been installed in: /usr/lib/python2.5/site-packages If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the `LD_RUN_PATH' environment variable during linking - use the `-Wl,--rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to `/etc/ld.so.conf' See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- make[2]: Nothing to be done for `install-data-am'. make[2]: Leaving directory `/sources/dbus-python-0.82.0/_dbus_glib_bindings' make[1]: Leaving directory `/sources/dbus-python-0.82.0/_dbus_glib_bindings' Making install in dbus make[1]: Entering directory `/sources/dbus-python-0.82.0/dbus' make install-am make[2]: Entering directory `/sources/dbus-python-0.82.0/dbus' make[3]: Entering directory `/sources/dbus-python-0.82.0/dbus' make[3]: Nothing to be done for `install-exec-am'. test -z "/usr/lib/python2.5/site-packages/dbus" || mkdir -p -- "/usr/lib/python2.5/site-packages/dbus" /sources/dbus-python-0.82.0/install-sh -c -m 644 'bus.py' '/usr/lib/python2.5/site-packages/dbus/bus.py' /sources/dbus-python-0.82.0/install-sh -c -m 644 'connection.py' '/usr/lib/python2.5/site-packages/dbus/connection.py' /sources/dbus-python-0.82.0/install-sh -c -m 644 'dbus_bindings.py' '/usr/lib/python2.5/site-packages/dbus/dbus_bindings.py' /sources/dbus-python-0.82.0/install-sh -c -m 644 '_dbus.py' '/usr/lib/python2.5/site-packages/dbus/_dbus.py' /sources/dbus-python-0.82.0/install-sh -c -m 644 '_version.py' '/usr/lib/python2.5/site-packages/dbus/_version.py' /sources/dbus-python-0.82.0/install-sh -c -m 644 'decorators.py' '/usr/lib/python2.5/site-packages/dbus/decorators.py' /sources/dbus-python-0.82.0/install-sh -c -m 644 'exceptions.py' '/usr/lib/python2.5/site-packages/dbus/exceptions.py' /sources/dbus-python-0.82.0/install-sh -c -m 644 '_expat_introspect_parser.py' '/usr/lib/python2.5/site-packages/dbus/_expat_introspect_parser.py' /sources/dbus-python-0.82.0/install-sh -c -m 644 'glib.py' '/usr/lib/python2.5/site-packages/dbus/glib.py' /sources/dbus-python-0.82.0/install-sh -c -m 644 'gobject_service.py' '/usr/lib/python2.5/site-packages/dbus/gobject_service.py' /sources/dbus-python-0.82.0/install-sh -c -m 644 '__init__.py' '/usr/lib/python2.5/site-packages/dbus/__init__.py' /sources/dbus-python-0.82.0/install-sh -c -m 644 'lowlevel.py' '/usr/lib/python2.5/site-packages/dbus/lowlevel.py' /sources/dbus-python-0.82.0/install-sh -c -m 644 'mainloop/__init__.py' '/usr/lib/python2.5/site-packages/dbus/mainloop/__init__.py' /sources/dbus-python-0.82.0/install-sh -c -m 644 'mainloop/glib.py' '/usr/lib/python2.5/site-packages/dbus/mainloop/glib.py' /sources/dbus-python-0.82.0/install-sh -c -m 644 'proxies.py' '/usr/lib/python2.5/site-packages/dbus/proxies.py' /sources/dbus-python-0.82.0/install-sh -c -m 644 'service.py' '/usr/lib/python2.5/site-packages/dbus/service.py' /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 693, 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 }}} Here is the list of files installed from this package at the time of failure: {{{ cat /var/log/llog/dbus-python-failed.llog /usr/lib/python2.5/site-packages/dbus/decorators.py /usr/lib/python2.5/site-packages/dbus/types.py /usr/lib/python2.5/site-packages/dbus/exceptions.py /usr/lib/python2.5/site-packages/dbus/_dbus.py /usr/lib/python2.5/site-packages/dbus/_expat_introspect_parser.py /usr/lib/python2.5/site-packages/dbus/_version.py /usr/lib/python2.5/site-packages/dbus/mainloop/glib.py /usr/lib/python2.5/site-packages/dbus/mainloop/__init__.py /usr/lib/python2.5/site-packages/dbus/bus.py /usr/lib/python2.5/site-packages/dbus/dbus_bindings.py /usr/lib/python2.5/site-packages/dbus/connection.py /usr/lib/python2.5/site-packages/dbus/glib.py /usr/lib/python2.5/site-packages/dbus/service.py /usr/lib/python2.5/site-packages/dbus/lowlevel.py /usr/lib/python2.5/site-packages/dbus/gobject_service.py /usr/lib/python2.5/site-packages/dbus/proxies.py /usr/lib/python2.5/site-packages/dbus/__init__.py /usr/lib/python2.5/site-packages/_dbus_glib_bindings.la /usr/lib/python2.5/site-packages/_dbus_glib_bindings.so /usr/lib/python2.5/site-packages/_dbus_bindings.la /usr/lib/python2.5/site-packages/_dbus_bindings.so }}} Here is the install order of packages, chosen on an as needed basis (numbering follows on from jhalfs logs): 133-bc-1.06 134-openssl-0.9.8g 135-pth-2.0.7 136-gdbm-1.8.3 137-Python-2.5.2 138-cracklib-2.8.12 139-Linux-PAM-0.99.10.0 140-shadow-4.0.18.1 141-wget-1.10.2 142-Xorg-7.2-proto 143-pkg-config-0.22 144-Xorg-7.2-util 145-libXau-1.0.3 146-libXdmcp-1.0.2 147-libxml2-2.6.31 148-xcb-proto-1.0 149-libpthread-stubs-0.1 150-libxslt-1.1.22 151-libxcb-1.0 152-ed-0.8 153-freetype-2.3.4 154-expat-2.0.1 155-fontconfig-2.4.2 156-Xorg-7.2-lib 157-xbitmaps-1.0.1 158-libpng-1.2.24 159-libdrm-2.3.0 160-Mesa-6.5.2 161-Xorg-7.2-app 162-xcursor-themes-1.0.1 163-Xorg-7.2-font 164-intltool-0.35.5 165-xkeyboard-config-1.2 166-luit-1.0.2 167-xorg-server-1.2.0 169-Xorg-7.2-driver 170-xterm-231 171-rxvt-unicode-9.02 172-lesstif-0.95.0 173-glib-2.12.12 174-libxklavier-3.2 175-nas-1.9 176-cairo-1.4.14 177-pango-1.16.4 178-atk-1.18.0 179-libjpeg-6b 180-libtiff-3.8.2 181-gtk+-2.10.13_NO_CUPS 182-libIDL-0.8.8 183-zip-2.32 184-unzip-5.52 185-nss-3.11.7 186-firefox-2.0.0.14 187-desktop-file-utils-0.13 188-lcms-1.16 189-libmng-1.0.9 190-dbus-1.0.2 191-jdk-bin-6u6 192-cups-1.2.12 193-unixODBC-2.2.12 194-qt-x11-free-3.3.8b 195-libogg-1.1.3 196-libvorbis-1.2.0 197-audiofile-0.2.6 198-libmad-0.15.1b 199-alsa-lib-1.0.13 200-alsa-utils-1.0.13 201-esound-0.2.37 202-arts-1.5.9 203-sudo-1.6.9p15 204-libart_lgpl-2.3.19 205-pcre-7.6 206-gamin-0.1.9 207-libidn-0.6.14 208-which-2.19 209-aspell-0.60.5 210-aspell6-en-6.0.0 211-kdelibs-3.5.9 212-libusb-0.1.12 213-popt-1.10.4 214-samba-3.0.25b 215-dbus-glib-0.74 216-dbus-python-0.82.0 Answered from the previous thread: [EMAIL PROTECTED] dbus-python-0.82.0]# python -v -c 'import _dbus_bindings' # installing zipimport hook import zipimport # builtin # installed zipimport hook # /usr/lib/python2.5/site.pyc matches /usr/lib/python2.5/site.py import site # precompiled from /usr/lib/python2.5/site.pyc # /usr/lib/python2.5/os.pyc matches /usr/lib/python2.5/os.py import os # precompiled from /usr/lib/python2.5/os.pyc import errno # builtin import posix # builtin # /usr/lib/python2.5/posixpath.pyc matches /usr/lib/python2.5/posixpath.py import posixpath # precompiled from /usr/lib/python2.5/posixpath.pyc # /usr/lib/python2.5/stat.pyc matches /usr/lib/python2.5/stat.py import stat # precompiled from /usr/lib/python2.5/stat.pyc # /usr/lib/python2.5/UserDict.pyc matches /usr/lib/python2.5/UserDict.py import UserDict # precompiled from /usr/lib/python2.5/UserDict.pyc # /usr/lib/python2.5/copy_reg.pyc matches /usr/lib/python2.5/copy_reg.py import copy_reg # precompiled from /usr/lib/python2.5/copy_reg.pyc # /usr/lib/python2.5/types.pyc matches /usr/lib/python2.5/types.py import types # precompiled from /usr/lib/python2.5/types.pyc import _types # builtin # /usr/lib/python2.5/warnings.pyc matches /usr/lib/python2.5/warnings.py import warnings # precompiled from /usr/lib/python2.5/warnings.pyc # /usr/lib/python2.5/linecache.pyc matches /usr/lib/python2.5/linecache.py import linecache # precompiled from /usr/lib/python2.5/linecache.pyc import encodings # directory /usr/lib/python2.5/encodings # /usr/lib/python2.5/encodings/__init__.pyc matches /usr/lib/python2.5/encodings/__init__.py import encodings # precompiled from /usr/lib/python2.5/encodings/__init__.pyc # /usr/lib/python2.5/codecs.pyc matches /usr/lib/python2.5/codecs.py import codecs # precompiled from /usr/lib/python2.5/codecs.pyc import _codecs # builtin # /usr/lib/python2.5/encodings/aliases.pyc matches /usr/lib/python2.5/encodings/aliases.py import encodings.aliases # precompiled from /usr/lib/python2.5/encodings/aliases.pyc # /usr/lib/python2.5/encodings/utf_8.pyc matches /usr/lib/python2.5/encodings/utf_8.py import encodings.utf_8 # precompiled from /usr/lib/python2.5/encodings/utf_8.pyc Python 2.5.2 (r252:60911, Apr 28 2008, 00:11:00) [GCC 4.1.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. dlopen("/usr/lib/python2.5/site-packages/_dbus_bindings.so", 2); import _dbus_bindings # dynamically loaded from /usr/lib/python2.5/site-packages/_dbus_bindings.so # clear __builtin__._ # clear sys.path # clear sys.argv # clear sys.ps1 # clear sys.ps2 # clear sys.exitfunc # clear sys.exc_type # clear sys.exc_value # clear sys.exc_traceback # clear sys.last_type # clear sys.last_value # clear sys.last_traceback # clear sys.path_hooks # clear sys.path_importer_cache # clear sys.meta_path # restore sys.stdin # restore sys.stdout # restore sys.stderr # cleanup __main__ # cleanup[1] site # cleanup[1] encodings # cleanup[1] _codecs # cleanup[1] zipimport # cleanup[1] warnings # cleanup[1] encodings.utf_8 # cleanup[1] codecs # cleanup[1] _dbus_bindings # cleanup[1] types # cleanup[1] _types # cleanup[1] signal # cleanup[1] linecache # cleanup[1] posix # cleanup[1] encodings.aliases # cleanup[1] exceptions # cleanup[2] copy_reg # cleanup[2] posixpath # cleanup[2] errno # cleanup[2] os.path # cleanup[2] stat # cleanup[2] UserDict # cleanup[2] os # cleanup sys # cleanup __builtin__ # cleanup ints: 7 unfreed ints in 1 out of 4 blocks # cleanup floats [EMAIL PROTECTED] dbus-python-0.82.0]# ldd /usr/lib/python2.5/site-packages/_dbus_bindings.so linux-gate.so.1 => (0xffffe000) libdbus-1.so.3 => /usr/lib/libdbus-1.so.3 (0xb7ef9000) libc.so.6 => /lib/libc.so.6 (0xb7dce000) /lib/ld-linux.so.2 (0x80000000) Anyone see anything obvious? I have seen this twice before and so far it is yet unexplained. I always chalked it up to something I was doing incorrectly, but I know, this time at least, that it is by the book (execpt bootscripts). -- DJ Lucas -- This message has been scanned for viruses and dangerous content, and is believed to be clean. -- http://linuxfromscratch.org/mailman/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
