[winswitch] Problems using xpra on CentOS 5
antoine at nagafix.co.uk
Fri Sep 23 05:15:16 BST 2011
Thanks for reporting this, the problem was the "with" statement which is
not available before python 2.5. I have to admit that I very rarely test
on python2.4, so problems like this one are likely to re-occur. Sooner
or later, we'll just have to give up on old unmaintained versions of
I am pushing a new version with this fix and another worthwhile
improvement for applications with high window refresh rates. It will hit
the download area shortly.
On 23/09/11 01:40, Brian Pitts wrote:
> Thanks for making packages of xpra for CentOS 5. I tried the xpra-0.0.7.26-1 rpm but was unable to use it. I thought I should report
> the problems I experienced.
> 1) CentOS includes Python 2.4, but xpra uses language features which aren't included in that version of Python. For example,
> $ xpra start :1
> Traceback (most recent call last):
> File "/usr/bin/xpra", line 4, in ?
> import xpra.scripts.main
> File "/usr/lib64/python2.4/site-packages/xpra/scripts/main.py", line 23, in ?
> File "/usr/lib/python2.4/site-packages/xpra/protocol.py", line 79
> with self._lock:
> SyntaxError: invalid syntax
> There are python 2.6 packages for CentOS 5 available from EPEL. However, after installing them I still cannot use xpra because
> 2) The rpm installed it in /usr/lib64/python2.4 instead of /usr/lib64/python2.6.
> 3) xpra imports modules (e.g. gtk, gobject) for which EPEL does not provide python 2.6 packages.
> It seems like creating a usable xpra package for CentOS 5 would require installing it in a different location and also packaging a
> number of dependencies.
More information about the shifter-users