0.1.9 fails to install on feisty
Bug #96897 reported by
Paul Bowsher
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-central (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: launchpad-
$ sudo apt-get update
$ sudo apt-get upgrade launchpad-
Setting up launchpad-
Traceback (most recent call last):
File "/usr/bin/
main()
File "/usr/bin/
rv = action.
File "/usr/bin/
self.
File "/usr/bin/
self.
AttributeError: 'NoneType' object has no attribute 'byte_compile'
Process then fails
To post a comment you must log in.
When using update- alternatives, the link created from /usr/bin/python to /etc/alternativ es/python isn't acceptable by pycentral. We need to recursively follow the links until we get to e.g. /usr/bin/python2.4 .
Ideally however we wouldn't rely on the the filename of the target and should perhaps parse the output of /usr/bin/python -v, or even parse sys.version?
A patch is attached for the first case, dealing with recursion, and should be applied against /usr/share/ pycentral- data/pyversions .py.