[winswitch] xpra (client) on Centos 5.7

Antoine Martin antoine at nagafix.co.uk
Mon Feb 27 16:39:08 GMT 2012


On 02/27/2012 08:45 PM, Bob Tennent wrote:
>  >|>  >|>     import glib
>  >|>  >|> ImportError: No module named glib
>  >|>  >|>
>  >|>  >|> AFAIK I've installed everything necessary:
>  >|>  >|>
>  >|>  >|> gcc-4.1.2-51.el5
>  >|>  >|> python-devel-2.4.3-44.el5_7.1
>  >|>  >|> libXtst-devel-1.0.1-3.1
>  >|>  >|> libXdamage-devel-1.0.3-2.1
>  >|>  >|> gtk2-devel-2.10.4-21.el5_7.7
>  >|>  >|> pygtk2-devel-2.10.1-12.el5
>  >|>  >|> pygobject2-devel-2.12.1-5.el5
>  >|>  >|> Cython-0.14.1-3.el5
>  >|>  >|> xorg-x11-server-Xvfb-1.1.1-48.76.el5_7.5
>  >|>  >|> xorg-x11-xauth-1.0.1-2.1
>  >|>  >|> xorg-x11-xkb-utils-1.0.2-2.1
>  >|>
>  >|>  >|Sorry about that, I forgot to add this new dependency to the RPM
>  >|>  >|specfile: dbus-python.
>  >|>
>  >|> % rpm -q dbus-python
>  >|> dbus-python-0.70-9.el5_4
>  >|>
>  >|> % rpm -ql dbus-python | grep glib.py
>  >|> /usr/lib/python2.4/site-packages/dbus/glib.py
>  >|> /usr/lib/python2.4/site-packages/dbus/glib.pyc
>  >|> /usr/lib/python2.4/site-packages/dbus/glib.pyo
>  >|>
>  >|Sorry, my bad, what you need is pygobject2, which includes the python
>  >|glib bindings and not just dbus-glib.
> 
> % rpm -q pygobject2 pygobject2-devel
> pygobject2-2.12.1-5.el5
> pygobject2-devel-2.12.1-5.el5
Grrr, it is in pygobject2 for CentOS6.x:
http://rpm.pbone.net/index.php3/stat/6/idpl/17475339/dir/centos_6/com/pygobject2-2.20.0-5.el6.i686.rpm
but I simply cannot find where it lives on CentOS5.x, maybe nowhere?

So until someone figures that out, all I can suggest is that you build
from source using the v0.0.7.x branch:
svn co https://xpra.org/svn/Xpra/tags/v0.0.7.x/
Or grab one of the beta packages I've just built from the 0.1.x branch:
https://winswitch.org/beta/

Note: the in-the-works 0.1.0 release will drop support for old buggy
versions of pygtk, this includes the one in CentOS 5.x, so soon would be
a good time to upgrade..

Cheers
Antoine

> Bob T.




More information about the shifter-users mailing list