won't build - compile error with 0.3.1.1

Reported by Oz123 on 2010-04-15
This bug report is a duplicate of:  Bug #561740: Missing Python 2.5 compatibility. Edit Remove
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Exaile
High
Unassigned

Bug Description

First,
Congratulations for the Makefile - it does make life easier.

Second,
I tried building on Debian Squeeze (python version 2.6) and encountered the following bug:

$ make
python -m compileall -q xl xlgui
python -O -m compileall -q xl xlgui
make -C plugins compile
make[1]: Entering directory `/home/user/Desktop/exaile-0.3.1.1/plugins'
python -m compileall -q .
./daapclient/__init__.py:44: Warning: 'as' will become a reserved keyword in Python 2.6
Compiling ./daapclient/__init__.py ...
  File "./daapclient/__init__.py", line 44
    except Exception as inst:
                      ^
SyntaxError: invalid syntax

./daapserver/spydaap/metadata.py:17: Warning: 'with' will become a reserved keyword in Python 2.6
Compiling ./daapserver/spydaap/metadata.py ...
  File "./daapserver/spydaap/metadata.py", line 17
    with warnings.catch_warnings():
                ^
SyntaxError: invalid syntax

make[1]: *** [compile] Error 1
make[1]: Leaving directory `/home/user/Desktop/exaile-0.3.1.1/plugins'
make: *** [compile] Error 2

I had no problem building on Ubuntu Karmic Koala.

Thanks,

Oz

Johannes Sasongko (sjohannes) wrote :

For some reason all Debian versions are still on Python 2.5. I think we'll have to stick with that for now.

The "with" error can be fixed by importing with_statement from __future__. Not sure about the "as" error.

Changed in exaile:
importance: Undecided → High
milestone: none → 0.3.1.2
status: New → Confirmed
Aren Olson (reacocard) wrote :

except Exception as inst:

can be translated to

except Exception, inst:

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

Other bug subscribers