[winswitch] xpra - ImportError: No module named client.gtk2.client

Antoine Martin antoine at nagafix.co.uk
Thu Feb 16 03:04:06 GMT 2017


On 16/02/17 00:29, Stroller via shifter-users wrote:
> Hello,
> 
> It's been some time since I used xpra (I think I previously primarily used winswitch), so I'm feeling a bit helpless and useless for which I apologise.
> 
> I've installed xpra through Gentoo's emerge, on a headless HP G7 Microserver (AMD Turion II Neo N54L Dual-Core Processor according to /proc/cpuinfo).
> 
> Trying to launch it, I initially got this:
> 
>    $ xpra start ssh:localhost --start=xterm
>    /usr/bin/Xorg is suid and not readable, Xdummy support unavailable
>    xpra main error:
>    Traceback (most recent call last):
>      File "/usr/lib64/python2.7/site-packages/xpra/scripts/main.py", line 140, in main
>        return run_mode(script_file, err, options, args, mode, defaults)
>      File "/usr/lib64/python2.7/site-packages/xpra/scripts/main.py", line 1201, in run_mode
>        return run_remote_server(error_cb, options, args, mode, defaults)
>      File "/usr/lib64/python2.7/site-packages/xpra/scripts/main.py", line 2193, in run_remote_server
>        app = make_client(error_cb, opts)
>      File "/usr/lib64/python2.7/site-packages/xpra/scripts/main.py", line 2110, in make_client
>        toolkit_module = __import__(client_module, globals(), locals(), ['XpraClient'])
>    ImportError: No module named client.gtk2.client
>    
>    $ 
> 
> I reemerged x11-base/xorg-server-1.18.4 with USE="-suid" and the first part of the error has gone away,
A note for other gentoo users who may need a suid Xorg installed (to use
some proprietary drivers for example), you should be able to use the
suid binary in /usr/bin/Xorg just by making it world readable.

> but the part about a gtk2 client remains:
> 
>    $ xpra start ssh:localhost --start=xterm
>    xpra main error:
>    Traceback (most recent call last):
>      File "/usr/lib64/python2.7/site-packages/xpra/scripts/main.py", line 140, in main
>        return run_mode(script_file, err, options, args, mode, defaults)
>      File "/usr/lib64/python2.7/site-packages/xpra/scripts/main.py", line 1201, in run_mode
>        return run_remote_server(error_cb, options, args, mode, defaults)
>      File "/usr/lib64/python2.7/site-packages/xpra/scripts/main.py", line 2193, in run_remote_server
>        app = make_client(error_cb, opts)
>      File "/usr/lib64/python2.7/site-packages/xpra/scripts/main.py", line 2110, in make_client
>        toolkit_module = __import__(client_module, globals(), locals(), ['XpraClient'])
>    ImportError: No module named client.gtk2.client
>    
>    $
> 
> Any idea what package or library I'm missing, please? 
> 
> The above is executed with xpra-1.0.2 but I have since upgraded to 1.0.3 and get the same thing.
> 
> x11-wm/xpra is built with USE="clipboard csc lzo server vpx webp x264 x265 -client -cups -dec_av2 -enc_ffmpeg -libav -lz4 -opengl -pulseaudio -sound -webcam" (for clarity: +server -client). 
The command you used ("xpra start ssh:...") is a remote start command
which is run from the client to start a remote server and connect to it.
Maybe you just wanted to run "xpra start" instead?
Or you can run that same command but from your client.

PS: disabling lz4 is not recommended. I wouldn't bother enabling x265
either - it is too slow.

Cheers
Antoine

> 
> Stroller.
> 
> 
> 
> 
> 
> 
> _______________________________________________
> shifter-users mailing list
> shifter-users at lists.devloop.org.uk
> http://lists.devloop.org.uk/mailman/listinfo/shifter-users
> 




More information about the shifter-users mailing list