0.1.9 fails to install on feisty

Bug #96897 reported by Paul Bowsher
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-central (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: launchpad-integration

$ sudo apt-get update
$ sudo apt-get upgrade launchpad-integration

Setting up launchpad-integration (0.1.9) ...
Traceback (most recent call last):
  File "/usr/bin/pycentral", line 1387, in ?
    main()
  File "/usr/bin/pycentral", line 1381, in main
    rv = action.run(global_options)
  File "/usr/bin/pycentral", line 892, in run
    self.options.exclude, byte_compile_default=True)
  File "/usr/bin/pycentral", line 675, in install
    self.default_runtime.byte_compile(self.private_files, bc_option,
AttributeError: 'NoneType' object has no attribute 'byte_compile'

Process then fails

Revision history for this message
Paul Bowsher (paul-bowsher) wrote : python-central 0.5.12ubuntu3 when used with update-alternatives

When using update-alternatives, the link created from /usr/bin/python to /etc/alternatives/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.

Revision history for this message
Matthias Klose (doko) wrote :

/usr/bin/python is not managed by alternatives. So this approach is not necessary.

Changed in python-central:
status: New → Invalid
Revision history for this message
Felix Lechner (felix.lechner) wrote :

My /usr/bin/python is managed by alternatives.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.