[winswitch] CentOS 5.11 and Python 2.4 support

Antoine Martin antoine at nagafix.co.uk
Thu Dec 18 13:36:25 GMT 2014


(snip)
> Hello Antoine,
>
> Thank you for the fix. I updated to xpra-0.14.13-2.el5_11, ran "xpra
> start :1001", and xpra started successfully. However, when I try to
> attach to or stop the xpra instance, I'm getting the following errors:
>
> utku at vm5:[~]$ xpra attach :1001
> xpra main error:
(..)
>   File "/usr/lib64/python2.4/site-packages/xpra/client/client_base.py",
> line 220
>     except Exception as e:
>                       ^
> SyntaxError: invalid syntax
Ah. I had not tested CentOS 5 as a client.
I've now fixed all occurrences of this non backwards compatible syntax -
which is what I should have done in the first place:
http://xpra.org/trac/changeset/8258
> utku at vm5:[~]$ xpra stop :1001
> xpra main error:
> Traceback (most recent call last):
>   File "/usr/lib64/python2.4/site-packages/xpra/scripts/main.py", line
> 103, in main
>     return run_mode(script_file, err, options, args, mode, defaults)
>   File "/usr/lib64/python2.4/site-packages/xpra/scripts/main.py", line
> 764, in run_mode
>     return run_stopexit(mode, error_cb, options, args)
>   File "/usr/lib64/python2.4/site-packages/xpra/scripts/main.py", line
> 1376, in run_stopexit
>     app.cleanup()
> UnboundLocalError: local variable 'app' referenced before assignment
That's a different one, thanks for reporting it, it should be fixed in
(though you need an error somewhere else to hit this error):
http://xpra.org/trac/changeset/8260
> The stop command doesn't have any effect and xpra still keeps running:
>
> utku at vm5:[~]$ ps aux | grep -i xpra
> utku     30422  0.0  1.4 427732 30124 ?        S    14:03   0:00
> /usr/bin/python /usr/bin/xpra start :1001
> utku     30425  0.0  2.0  79080 42200 ?        Ss   14:03   0:00
> Xvfb-for-Xpra-:1001 +extension Composite -screen 0 3840x2560x24+32
> -nolisten tcp -noreset -auth /home/utku/.Xauthority :1001
Yes, all the clients were broken, including the stop command.

I am preparing 0.14.14 with those fixes.

Thanks
Antoine




More information about the shifter-users mailing list