On Mon, May 23, 2011 at 7:23 AM, John Gwinner <jgwin...@dazsi.com> wrote:

> Hello, I hope someone can help me
>
>
>
Hi,


> I'm trying to install Shinken on a copy of Oracle Enterprise Linux 5.3,
> which is pretty much CentOS or RedHat.
>
>
>
> I got everything installed, although I had to find work arounds for a lot
> of stuff, for some reason our Oracle partner CSI number is acting funny and
> up2date and yum don't seem to load any of the packages the quickstart
> mentions, but I worked around that.  I can provide step by step docs if it
> helps anyone.
>
>
>
> I now have both python2.4 and python2.6 installed. 2.4 is the default, as
> apparently OEL/RH depends on it and doesn't like an upgrade (not sure but
> I've read this).
>
Yes, don't change the Python2.4 by default with 2.6, RH tools won't be very
happy ;)


>
> [...]
>
>   File "/usr/lib/python2.4/site-packages/shinken/pyro_wrapper.py", line 33,
> in ?
>
>     import Pyro.core
>
>   File "/usr/lib/python2.4/site-packages/Pyro/core.py", line 219
>
>     with self.synlock:
>
>             ^
>
> SyntaxError: invalid syntax
>
>
>
> You'll notice it's using the default python2.4.  I'm running this as 'root'
> but I also tried with the shinken account, same results.
>
>
>
In fact the problem came from Pyro. You installed the Pyro4 version, and
Ptyro4 is for Python >= 2.5 only.



> So ... what's the easy way to point shinken, and only shinken, to
> python2.6?
>
You got two choices :
* keep the 2.4 and install Pyro3 (Pyro4 do not have SSL from now, so for
production use, use Pyro3, Pyro4 is not ready), be sure you also got
python-multiprocessing and python-suimplejson packages and you are ok.
* Change the shell bang of the /usr/bin/shinken- scripts for forcing
python2.6, but you will have to change it on each update, not a so easy
thing to manage on the long term.

I think for production installation, use the first one, drop Pyro4 and
install Pyro3 :)

Regards,


Jean


>
>
> Any other thoughts? Is there some other reason I'm getting that error? I
> googled it but didn't get any hits.
>
>
>
> Thank you for any help,
>
>                  == John ==
>
> John Gwinner |* Director of Technology*
>
> *DAZSI** **/**Oracle *Business Applications
>
> 310.640.1300 (office) | 310.640.9900 (fax)
>
> 880 Apollo Street - Ste. 201 | El Segundo CA 90245
>
> [image: Description: 
> cid:image001.png@01CB07C7.E4A4E810]<http://www.dazsi.com/>
>

<<image001.jpg>>

------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Shinken-devel mailing list
Shinken-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/shinken-devel

Reply via email to