Xpra: Ticket #1415: dbus could be not optional


we do not have dbus available on all machine at JSC. This seems not to be a problem for Xpra.

Except, that it filles the logfile with error messages like

^[[33m2017-01-18 16:23:31,519 cannot load dbus helper: No module named dbus^[[0m
^[[31m2017-01-18 16:23:31,534 dbus server error
Traceback (most recent call last):
  File "/usr/local/software/jureca/Stage1/software/Xpra/1.0.1-GCCcore-5.4.0-Python-2.7.12-bare/lib/python2.7/site-packages/xpra/server/dbus/dbus_common.py", line 12, in dbus_exception_wrap
    v = fn()
  File "/usr/local/software/jureca/Stage1/software/Xpra/1.0.1-GCCcore-5.4.0-Python-2.7.12-bare/lib/python2.7/site-packages/xpra/x11/server.py", line 1349, in make_dbus_server
    from xpra.x11.dbus.x11_dbus_server import X11_DBUS_Server
  File "/usr/local/software/jureca/Stage1/software/Xpra/1.0.1-GCCcore-5.4.0-Python-2.7.12-bare/lib/python2.7/site-packages/xpra/x11/dbus/x11_dbus_server.py", line 7, in <module>
    from xpra.server.dbus.dbus_server import DBUS_Server, INTERFACE
  File "/usr/local/software/jureca/Stage1/software/Xpra/1.0.1-GCCcore-5.4.0-Python-2.7.12-bare/lib/python2.7/site-packages/xpra/server/dbus/dbus_server.py", line 7, in <module>
    from xpra.dbus.helper import dbus_to_native, native_to_dbus
  File "/usr/local/software/jureca/Stage1/software/Xpra/1.0.1-GCCcore-5.4.0-Python-2.7.12-bare/lib/python2.7/site-packages/xpra/dbus/helper.py", line 7, in <module>
    import dbus
ImportError: No module named dbus^[[0m
^[[31m2017-01-18 16:23:31,538 Error setting up server dbus instance:^[[0m
^[[31m2017-01-18 16:23:31,538   No module named dbus^[[0m

Wed, 18 Jan 2017 16:18:12 GMT - Antoine Martin: owner changed

The messages are converted to warnings in r14816, this should be included in the next 1.0.x update.

Note: to get rid of most of those warnings, set:

Please close if that works for you.

Wed, 18 Jan 2017 16:24:54 GMT - Jens H. Goebbert: status changed; resolution set

Thanks. This works.

Sat, 23 Jan 2021 05:23:42 GMT - migration script:

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/1415