Existence of "python2" is blindly assumed

Bug #671724 reported by Malachi
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Exaile
Fix Released
Medium
Johannes Sasongko

Bug Description

On Debian Sid 64 bit, the most recent development versions (about the last week or so, up to 3763) have been looking for python in a python2 folder (I assume to differentiate from python 3), so that when I start exaile, it immediately crashes.

Thanks for the good work!

This is the terminal output:
exec: 13: python2: not found

Related branches

Revision history for this message
Mathias Brodala (mathbr) wrote :

In fact, python2 is the name of the binary which was recently changed to accomodate the move to Python3 as default version.
However, Debian does not yet provide the python2 binary/symlink.

We should not blindly assume the existence of this one though and will think about a fix. At the same time you could file a report against Debian and request to add this symlink.

summary: - Exaile cannot find python library
+ Existence of "python2" is blindly assumed
Changed in exaile:
importance: Undecided → Medium
milestone: none → 0.3.3.0
status: New → Confirmed
Revision history for this message
Mathias Brodala (mathbr) wrote :

Just to clarify: various distributions have started to move to Python3, not Exaile.

Revision history for this message
Malachi (jranderson1990) wrote :

I will. Thanks for the answer.

Revision history for this message
Ben Beasley (ben-musicinmybrain) wrote :

Confirmed in Ubuntu 10.10 as well.

The easiest thing might be to check if "python2" exists (in the launcher shell script, for example by calling "which python2" and seeing if the returned string has zero length), otherwise use just plain "python". This should always result in python 2.x.

Changed in exaile:
assignee: nobody → Johannes Sasongko (sjohannes)
status: Confirmed → Fix Committed
Changed in exaile:
status: Fix Committed → Fix Released
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.