perroquet doesn't work on Debian Lenny

Bug #503343 reported by murlockoldaccount
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
perroquet
Fix Committed
Medium
Fred Bertolus

Bug Description

running perroquet return this error :
/home/murlock/download/2/perroquet-1.0.0/Perroquet/subtitles_loader.py:42: Warning: 'with' will become a reserved keyword in Python 2.6
Traceback (most recent call last):
  File "./Perroquet/perroquet.py", line 23, in <module>
    from core import Core
  File "/home/murlock/download/2/perroquet-1.0.0/Perroquet/core.py", line 23, in <module>
    from subtitles_loader import SubtitlesLoader
  File "/home/murlock/download/2/perroquet-1.0.0/Perroquet/subtitles_loader.py", line 42
    with codecs.open(fileName, 'rU', format) as sourceFile:
              ^
SyntaxError: invalid syntax

Maybe I've a too old python package

Changed in perroquet:
importance: Undecided → Medium
assignee: nobody → Fred Bertolus (fred-bertolus)
Revision history for this message
Fred Bertolus (fred-bertolus) wrote :

This is due to the "with" which need python 2.6

Add this line fix the problm :

from __future__ import with_statement

Source : http://linuxfr.org/comments/1095476.html#1095476

Changed in perroquet:
status: New → Confirmed
milestone: none → 1.0.1
Changed in perroquet:
status: Confirmed → Fix Committed
Changed in perroquet:
status: Fix Committed → Fix Released
Revision history for this message
Fred Bertolus (fred-bertolus) wrote :

Compatibilité broken en developpement version

Changed in perroquet:
status: Fix Released → Triaged
milestone: 1.0.1 → 1.1.0
Changed in perroquet:
status: Triaged → In Progress
Changed in perroquet:
status: In Progress → Fix Committed
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.