In the git sources for dbus-python I downloaded two days ago (I haven't figured out how to re-sync yet), if you attempt to connect to the SystemBus without importing dbus.glib, the program crashes. A quick demo:<br><br>
>>> import dbus<br>>>> bus=dbus.SystemBus()<br>process 24616: arguments to dbus_connection_close() were incorrect, assertion "connection->generation == _dbus_current_generation" failed in file
dbus-connection.c line 2740.<br>This is normally a bug in some application using the D-Bus library.<br> /usr/lib/libdbus-1.so.3 [0xb7b0c77d]<br> /usr/lib/libdbus-1.so.3 [0xb7b08637]<br> /usr/lib/libdbus-1.so.3 [0xb7afd0c6]
<br> /usr/lib/libdbus-1.so.3(dbus_connection_close+0xd1) [0xb7ad86c1]<br> /usr/lib/python2.4/site-packages/_dbus_bindings.so [0xb7b588b8]<br> /usr/lib/python2.4/site-packages/_dbus_bindings.so [0xb7b57761]<br> /usr/lib/libpython2.4.so.1.0 [0xb7ea7efb]
<br> /usr/lib/libpython2.4.so.1.0(PyCFunction_Call+0xf2) [0xb7e94042]<br> /usr/lib/libpython2.4.so.1.0(PyObject_Call+0x37) [0xb7e6f467]<br> /usr/lib/libpython2.4.so.1.0(PyEval_EvalFrame+0x2bfe) [0xb7eca2ce]<br> /usr/lib/libpython2.4.so.1.0(PyEval_EvalCodeEx+0x5f5) [0xb7eccbc5]
<br> /usr/lib/libpython2.4.so.1.0(PyEval_EvalFrame+0x449e) [0xb7ecbb6e]<br> /usr/lib/libpython2.4.so.1.0(PyEval_EvalCodeEx+0x5f5) [0xb7eccbc5]<br> /usr/lib/libpython2.4.so.1.0 [0xb7e8488c]<br> /usr/lib/libpython2.4.so.1.0(PyObject_Call+0x37) [0xb7e6f467]
<br> /usr/lib/libpython2.4.so.1.0 [0xb7eab84c]<br> /usr/lib/libpython2.4.so.1.0 [0xb7ea4c22]<br> /usr/lib/libpython2.4.so.1.0(PyObject_Call+0x37) [0xb7e6f467]<br> /usr/lib/libpython2.4.so.1.0(PyEval_EvalFrame+0x2bfe) [0xb7eca2ce]
<br> /usr/lib/libpython2.4.so.1.0(PyEval_EvalCodeEx+0x5f5) [0xb7eccbc5]<br> /usr/lib/libpython2.4.so.1.0(PyEval_EvalCode+0x63) [0xb7ecce43]<br> /usr/lib/libpython2.4.so.1.0 [0xb7ee7745]<br> /usr/lib/libpython2.4.so.1.0(PyRun_InteractiveOneFlags+0x17f) [0xb7ee8eaf]
<br> /usr/lib/libpython2.4.so.1.0(PyRun_InteractiveLoopFlags+0x5b) [0xb7ee902b]<br> /usr/lib/libpython2.4.so.1.0(PyRun_AnyFileExFlags+0x4e) [0xb7ee95fe]<br> /usr/lib/libpython2.4.so.1.0(Py_Main+0xae8) [0xb7eef848]<br> python(main+0x2a) [0x804860a]
<br> /lib/libc.so.6(__libc_start_main+0xe6) [0xb7d05896]<br> python [0x8048541]<br>Aborted<br><br>On the other hand, if you do import dbus and then dbus.glib, it works fine. It's a small bug, but probably worth fixing :)
<br><br>