update-manager needs an explicit path in #!

Bug #22294 reported by anthony baxter
6
Affects Status Importance Assigned to Milestone
update-manager (Ubuntu)
Fix Released
Medium
Michael Vogt

Bug Description

I did a dist-upgrade from hoary to breezy yesterday, and now update-manager
won't load. It fails with an ImportError of pygtk. Running 'import pygtk' in an
interactive Python works fine.

Aha. The problem is that it's #! line has changed from /usr/bin/env python to
/usr/bin/env python2.4. I (as Python release manager) have a bunch of other
python versions installed in /usr/local/bin (but not a binary called 'python')

As a kinda important system tool, update-manager should really use an explicit
path to /usr/bin/python2.4

Revision history for this message
Michael Vogt (mvo) wrote :

Thanks for your bugreport.

Who am I to diagree here :)

I changed the path to #!/usr/bin/python2.4 in my development tree and it will be
part of the next upload.

Cheers,
 Michael

Revision history for this message
anthony baxter (anthony) wrote :

gnome-software-properties (also in update-manager) needs the same love.

Also, gnome-app-install (part of gnome-app-install) and set-default-soundcard
(part of alsa-utils). Should I log seperate bugs against these? The second of
these isn't as important as the first.

I should note that I'm not philosophically against /usr/bin/env python as a #!
line - just not for parts of system software, where it _matters_ which Python
you use.

Revision history for this message
Michael Vogt (mvo) wrote :

(In reply to comment #2)
> gnome-software-properties (also in update-manager) needs the same love.

Both update-manager and gnome-software-properties are fixed with the latest
upload of
update-manager.

> Also, gnome-app-install (part of gnome-app-install) and set-default-soundcard
> (part of alsa-utils). Should I log seperate bugs against these? The second of
> these isn't as important as the first.

For g-a-i I filed #16547, it will be fixed before the release.

I assume that #!/usr/bin/python is ok set-default-soundcard? The script is not
python2.4
specific.

> I should note that I'm not philosophically against /usr/bin/env python as a #!
> line - just not for parts of system software, where it _matters_ which Python
> you use.

Right. That makes sense. Thanks for filing those bugs.

Cheers,
 Michael

Revision history for this message
Michael Vogt (mvo) wrote :

Uploaded:

alsa-utils_1.0.9a-4ubuntu4_source

fix the fix for alsa-utils.

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.