Ticket #24 (closed defect: wontfix)

Opened 2 years ago

Last modified 18 months ago

Doesn't work with Python 2.4 urlparse module

Reported by: christian@… Owned by: heyadayo
Priority: major Milestone:
Component: Orbited Daemon Version: Orbited 0.7.0
Keywords: Cc: christian@…

Description

Hey Guys

The urlparse module got a makeover from Python 2.4 -> 2.5. In 2.4 it would return a tuple and thus the following snippet from start.py doesn't work :(

url = urlparse.urlparse(addr)
hostname = url.hostname

You probably need to use url[1] and manually parse the hostname and port :(

http://www.python.org/doc/2.4/lib/module-urlparse.html
http://docs.python.org/lib/module-urlparse.html

Regards,

Christian

Change History

Changed 2 years ago by rgl

  • status changed from new to closed
  • resolution set to wontfix

You must use Python 2.5.

Changed 21 months ago by bug

  • status changed from closed to reopened
  • version changed from Orbited 0.5.0 to Orbited 0.7.0
  • resolution deleted

A fix for this is to copy the Python 2.5 urlparse.py into your site-packages/orbited directory.

On Linux this could be achieved like this:

> 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/

This has been discussed in the Google Groups for Orbited in this thread:
http://groups.google.com/group/orbited-users/t/ddacc69b7ccb8205

Michael Carter suggests shipping "the newer urlparse.py with Orbited, and do a run time check on our python version to decide which to use".

Changed 18 months ago by mario

  • status changed from reopened to closed
  • resolution set to wontfix

Orbited requires Python 2.5+. A documented workaround exists for running Orbited with an older version.

Note: See TracTickets for help on using tickets.