Using Orbited on CentOS (with Python 2.4)

17 views
Skip to first unread message

daskalou

unread,
Nov 4, 2008, 10:57:51 PM11/4/08
to Orbited Discussion
I'm using a CentOS machine and the official RPM packages only contain
Python 2.4.

(a) Is it possible to use Orbited with Python 2.4? (I think the answer
here is "No.")

(b) If (a) is not possible, does anyone have any links or suggestions
on how I can install Python 2.5 (and running Orbited with it) without
impacting any current Python apps that rely on 2.4?

Michael Carter

unread,
Nov 5, 2008, 12:59:20 AM11/5/08
to orbite...@googlegroups.com
I think you can get a copy of urlparse.py from python2.5 and drop it into your python 2.4 site-packages directory. I haven't tested this before, but it'll probably work. I don't think we depend on any other functionality than the updated urlparse.py file for 2.5.

-Michael Carter

Nickolas Daskalou

unread,
Nov 5, 2008, 3:41:30 AM11/5/08
to orbite...@googlegroups.com
That worked perfectly, thanks Michael.

I'm sure there's an easier way to get urlparse.py directly off the 'net, but this is what I did anyway (on CentOS 5) for future reference:

> wget "http://www.python.org/ftp/python/2.5.2/Python-2.5.2.tar.bz2"
> tar -jxf Python-2.5.2.tar.bz2
> cp Python-2.5.2/Lib/urlparse.py /usr/lib/python2.4/site-packages/orbited-0.7.0-py2.4.egg/orbited/

As a side note, since this is the only reason orbited fails to start under Python 2.4, I think the urlparse sections of orbited should be made backwards compatible with 2.4 (eg. maybe check to see if urlparse supports using such things like .hostname, and if not then revert back to using a numeric index). There was a ticket made for this request but it was marked as "wontfix" (not good in my opinion).

CentOS is the flavour of choice when building a server for many Linux administrators, and having to "hack" around official packages to get orbited working is not a good thing (even if this is quite a simple fix).

Having said that, I am super-impressed with orbited. Building real-time web apps is now almost only limited by your imagination. Kudos to the orbited team.


2008/11/5 Michael Carter <carter...@gmail.com>

Michael Carter

unread,
Nov 5, 2008, 4:22:57 AM11/5/08
to orbite...@googlegroups.com
I think we should probably just ship the newer urlparse.py with Orbited, and do a run time check on our python version to decide which to use. Can you leave some feedback on the ticket (and open it again if you can)?

-Michael Carter

Nickolas Daskalou

unread,
Nov 5, 2008, 4:44:20 AM11/5/08
to orbite...@googlegroups.com
No problem, done.

Nick

Nickolas Daskalou

unread,
Nov 5, 2008, 4:45:16 AM11/5/08
to orbite...@googlegroups.com
Here is a link to the ticket:

http://orbited.org/ticket/24



2008/11/5 Nickolas Daskalou <ni...@daskalou.com>
Reply all
Reply to author
Forward
0 new messages