latest exaile needs python2.5

Bug #190924 reported by Marc Poulhiès
2
Affects Status Importance Assigned to Milestone
Exaile
Fix Released
High
Johannes Sasongko

Bug Description

Latest exaile requires the use of python2.5, as older python will report:

Exaile 0.2.12devel
Importing sql changes file changes0003.sql
-----------------------
 ? ( /usr/lib/exaile/exaile.py @ 19):
-----------------------
Traceback (most recent call last):
  File "/usr/lib/exaile/exaile.py", line 143, in ?
    init()
  File "/usr/lib/exaile/exaile.py", line 133, in init
    exaile = exailemain.ExaileWindow(options, xl.path.firstrun)
  File "/usr/lib/exaile/xl/gui/main.py", line 205, in __init__
    self.setup_left()
  File "/usr/lib/exaile/xl/gui/main.py", line 943, in setup_left
    self.files_panel = files.FilesPanel(self)
  File "/usr/lib/exaile/xl/panels/files.py", line 113, in __init__
    self.load_directory(self.first_dir, False)
  File "/usr/lib/exaile/xl/panels/files.py", line 336, in load_directory
    size = locale.format_string("%d KB", size, True)
AttributeError: 'module' object has no attribute 'format_string'

debian/control already defines the dependency on python (>= 2.5), but startup script which gets installed in /usr/bin still uses 'python', which currenlty defaults to python 2.4 in debian systems (and I guess ubuntu too). A trivial patch that forces the use of 'python2.5' fixes it. I'm not really a guru in debian scripts and I know there are different ways of handling patches (dpatch, quilt, dbs, etc) (as I guess this patch should go in the package building stuff and not in main sources) but I don't know if exaile's devs have a prefs on this.

Revision history for this message
Johannes Sasongko (sjohannes) wrote :

I'd rather Exaile not depend on py2.5, so I'll change that for now.

Changed in exaile:
assignee: nobody → sjohannes
importance: Undecided → High
milestone: none → 0.2.12
status: New → In Progress
Revision history for this message
Johannes Sasongko (sjohannes) wrote :

Should be OK now. I don't have access to Python 2.4 at the moment, so please reopen if it still doesn't work.

Changed in exaile:
status: In Progress → Fix Committed
Revision history for this message
Marc Poulhiès (marc-poulhies) wrote :

works like a charm, thanks

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.