[Spice-devel] Build problems with Upstream Spice on CentOS 5...

Alon Levy alevy at redhat.com
Tue Jan 31 23:50:14 PST 2012


On Tue, Jan 31, 2012 at 03:20:48PM -0800, Naga Mohan Pothula wrote:
>    Hi Alon,
>    Python 2.4.3 is used.
>    When I tried to install Python 2.6, it is not replacing the existing
>    Python 2.4.3.
>    Parallel versions of python exist in system. 
>    I tried to create symbolic link for python2.6 to python.
>    So my system has 
>    python2 -> python
>    python -> python2.6

You could also change the python version used in the Makefiles. It should
be made overridable, i.e. something like --with-python=python2.6

>    When I tried to build, I got the error "pyparsing" needs to be installed.
>    I did it when Python 2.4.3 is used.
>    when I tried to do the same(yum install pyparsing) with python2.6, then
>    I'm getting the error
>    "No module named yum." I noticed all my package management tools are not
>    working.
>    How can I compile this with Python 2.6? 
>    Appreciated you help.

get easy_install, then:

easy_install pyparsing

>    Thanks,
>    Naga.
> 
>    --------------------------------------------------------------------------
> 
>    From: Alon Levy <alevy at redhat.com>
>    To: Naga Mohan Pothula <nagamohan.pothula at yahoo.com>
>    Cc: "spice-devel at lists.freedesktop.org"
>    <spice-devel at lists.freedesktop.org>
>    Sent: Friday, January 27, 2012 2:52 AM
>    Subject: Re: [Spice-devel] Build problems with Upstream Spice on CentOS
>    5...
>    On Thu, Jan 26, 2012 at 01:46:36PM -0800, Naga Mohan Pothula wrote:
>    >    Hi,
>    >    I'm facing problems while building Upstream Spice on CentOS 5.7
>    64-bit
>    >    host.
>    >    I haven't face problems when i build the same code on Ubuntu 10.04
>    64-bit
>    >    host.
>    >    I installed "pyparsing" into Centos 5. still I'm facing building
>    >    problems. 
>    >    File "../spice_codegen.py", line 15
>    >        channel.client_messages if client else channel.server_messages)
>    >                                 ^
>    >    SyntaxError: invalid syntax
> 
>    What python version are you using? It's clearly too old if it doesn't
>    support this syntax. Perhaps there is a newer python package? that also
>    means we will have to change the shebang line in [1]spice_codegen.py
> 
>    >    make[2]: *** [generated_marshallers.c] Error 1
>    >    Can you please tell why this Build problems with Centos 5?
>    >    Appreciated your help.
>    >    Thanks\Naga.
> 
>    > _______________________________________________
>    > Spice-devel mailing list
>    > [2]Spice-devel at lists.freedesktop.org
>    > http://lists.freedesktop.org/mailman/listinfo/spice-devel
> 
> References
> 
>    Visible links
>    1. http://spice_codegen.py/
>    2. mailto:Spice-devel at lists.freedesktop.org


More information about the Spice-devel mailing list