← Back to team overview

flabber team mailing list archive

[Bug 221127] Re: bug with python-support 2.4

 

I can reproduce your problem. It's why, how you guessed, =< python2.4 doesn't understand these kind of syntax.
I attach a patch file, because I'm not going to release a bugfix release 0.5.1. I'll release 0.1.0 soon with the fixed version.

1. Download the patch file
2. Execute the following command:
$ sudo patch /var/lib/python-support/python2.4/flabber/configuration.py 221127-bug_with_python-support_2.4.patch

** Attachment added: "221127-bug_with_python-support_2.4.patch"
   http://launchpadlibrarian.net/13840776/221127-bug_with_python-support_2.4.patch

-- 
bug with python-support 2.4
https://bugs.launchpad.net/bugs/221127
You received this bug notification because you are a member of flabber,
which is subscribed to flabber.

Status in flabber - video portal download program: Fix Committed

Bug description:
I just tried to install a python module through apt-get, and got this flabber-related error:

fred@gnom:~/dev/mpsleek$ sudo apt-get install python-mpdclient 
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut       
Reading state information... Fertig
The following packages were automatically installed and are no longer required:
...
Verwenden Sie »apt-get autoremove«, um sie zu entfernen.
Die folgenden NEUEN Pakete werden installiert:
  python-mpdclient
0 aktualisiert, 1 neu installiert, 0 zu entfernen und 45 nicht aktualisiert.
Es müssen 5618B Archive geholt werden.
After this operation, 69,6kB of additional disk space will be used.
Hole:1 http://archive.ubuntu.com hardy/universe python-mpdclient 0.11.1-2 [5618B]
Es wurden 5618B in 0s geholt (18,1kB/s)
jWähle vormals abgewähltes Paket python-mpdclient.
(Lese Datenbank ... 221698 Dateien und Verzeichnisse sind derzeit installiert.)
Entpacke python-mpdclient (aus .../python-mpdclient_0.11.1-2_all.deb) ...
Richte python-mpdclient ein (0.11.1-2) ...
Compiling /var/lib/python-support/python2.4/flabber/configuration.py ...
  File "/var/lib/python-support/python2.4/flabber/configuration.py", line 74
    return (messages if os.path.isdir(messages) else None)
                      ^
SyntaxError: invalid syntax

I suggest that this syntax is only available in Python > 2.4.

Cheers,

Fred



References