Issue 149 in labyrinth: python version mismatch

0 views
Skip to first unread message

codesite...@google.com

unread,
Aug 12, 2010, 2:37:07 PM8/12/10
to labyrin...@googlegroups.com
Status: New
Owner: ----

New issue 149 by leo.lathspell: python version mismatch
http://code.google.com/p/labyrinth/issues/detail?id=149

This issue was first reported by LeoRochael at:
https://bugs.edge.launchpad.net/ubuntu/+source/labyrinth/+bug/607902

Binary package hint: labyrinth

The file at /usr/bin/labyrinth has a "#!" line with "/usr/bin/env python",
which means it will use the default version of python installed. However,
it goes on to insert on sys.path the path to the labyrinth package
installed in a specific python version. This breaks labyrinth 0.4.0 on
Karmic, where the specific python version is 2.5, which is not installed by
default.

The attached patch [1] replaces the static python directory insertion with
one calculated from the import of the labyrinth python package. It will
happen to be the same as the statically included directory if the python
versions match.

The attached patch also removes an unnecessary exists() check, since
os.path.isdir() implies os.path.exists()


[1]
https://bugs.edge.launchpad.net/ubuntu/+source/labyrinth/+bug/607902/+attachment/1461949/+files/labyrinth-startup.diff

Reply all
Reply to author
Forward
0 new messages