Some plugins don't work in Python 2.5
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyjama |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
When I try to run latest version of pyjama (revision 253, experimental) using Python 2.5 on Debian Squeeze, I can't use few plugins: librefm & lastfm support, PVC, listenstats. When pyjama starts I get:
Traceback (most recent call last):
File "/.../pyjama/
mod = __import__ (plugin[
File "/.../pyjama/
class main():
^
SyntaxError: invalid syntax
Error importing Plugin last.fm plugin (lastfm)
Traceback (most recent call last):
File "/.../pyjama/
mod = __import__ (plugin[
File "/.../pyjama/
class main():
^
SyntaxError: invalid syntax
Error importing Plugin libre.fm plugin (librefm)
Traceback (most recent call last):
File "/.../pyjama/
mod = __import__ (plugin[
File "/.../pyjama/
class main():
^
SyntaxError: invalid syntax
Error importing Plugin Listen Statistics (listenstats)
Traceback (most recent call last):
File "/.../pyjama/
mod = __import__ (plugin[
File "/.../pyjama/
class main():
^
SyntaxError: invalid syntax
I think this is caused by '@threaded' decorator, because decorators for classes are implemented only in Python 2.6 (and 3.0). I was trying to use 'main=threaded(
Related branches
description: | updated |
Changed in pyjama: | |
status: | New → Fix Committed |
Hi Sebastian,
you are probably right - I am not using python2.5 any more and can not reproduce this bug.
The point is: I have a lot of work to do right now and the whole threading-concept of pyjama is kind of crap. A was thinking of a complete re-coding of pyjama - but I'll need time for that.
So for now I just can fix urgent issues. The bug you are reporting would take much time to fix for me and wouldn't even be useful for long time, since python2.5. will be replaced on most distributions.
As you have write permissions to the branch, you can fix this problem of course, if you want to. I would appreciate that.
Sincerely,
barabbas