Xpra: Ticket #515: xpra crashes on launch - "from xpra.client.tray_base import TrayBase … ImportError: No module named client.tray_base"

On the xpra.org homepage, the "Get started with Xpra" section says:

On the machine which will export the application (xterm in this example): xpra start :100 --start-child=xterm


On my machine:

$ xpra start :100 --start-child=firefox
Traceback (most recent call last):
  File "/usr/lib/python-exec/python2.7/xpra", line 4, in <module>
    import xpra.scripts.main
  File "/usr/lib64/python2.7/site-packages/xpra/scripts/main.py", line 21, in <module>
    from xpra.platform.features import LOCAL_SERVERS_SUPPORTED, SHADOW_SUPPORTED, CAN_DAEMONIZE
  File "/usr/lib64/python2.7/site-packages/xpra/platform/features.py", line 34, in <module>
    "UI_THREAD_POLLING")
  File "/usr/lib64/python2.7/site-packages/xpra/platform/__init__.py", line 38, in platform_import
    platform_module = __import__(module, {}, {}, imports)
  File "/usr/lib64/python2.7/site-packages/xpra/platform/xposix/features.py", line 19, in <module>
    from xpra.platform.xposix.appindicator_tray import is_unity
  File "/usr/lib64/python2.7/site-packages/xpra/platform/xposix/appindicator_tray.py", line 10, in <module>
    from xpra.client.tray_base import TrayBase, debug
ImportError: No module named client.tray_base
$

Version is 0.11.2, installed from the Gentoo ebuild in the official portage tree.

My server is headless, so I wished a minimal installation I chose the use flags "-client clipboard rencode x264 csc webp vpx -dec_av2 -dec_av -opengl -pulseaudio -sound".



Wed, 12 Feb 2014 00:50:55 GMT - Stroller: attachment set


Wed, 12 Feb 2014 00:51:46 GMT - Antoine Martin: owner, status changed; milestone set

Pure server installations haven't been checked in a long time. Will fix.


Wed, 12 Feb 2014 01:20:40 GMT - Antoine Martin:

r5435 should fix this problem. Will backport to v0.11.x


Fri, 14 Feb 2014 01:02:31 GMT - Stroller:

0.11.2 works for me with the r5435 changeset.

Many thanks!


Fri, 14 Feb 2014 03:32:03 GMT - Antoine Martin: status changed; resolution set

Applied to 0.11.x branch in r5450. Closing.


Sat, 23 Jan 2021 04:58:02 GMT - migration script:

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