bug with python-support 2.4

Bug #221127 reported by Friedrich Weber
4
Affects Status Importance Assigned to Milestone
flabber
Fix Committed
Medium
Walter

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

Revision history for this message
Walter (moepot) wrote :

Some questions:

* How did you install flabber? (deb package downloaded and installed manually; added PPA lines to sources.list?; ..)
* Which version of flabber is installed?
* Which version of python is installed?

I know, you are a flabber developer, but I've to ask these questions here in Launchpad because other people with the same problems will probably be able to reproduce this problem. Thanks.

Changed in flabber:
assignee: nobody → moepot
Revision history for this message
Friedrich Weber (fredreichbier) wrote :

I downloaded flabber deb 0.0.5 and installed it with gdebi.
My Python versions are:

fred@gnom:~$ python2.4 -V
Python 2.4.5
fred@gnom:~$ python -V
Python 2.5.2

Walter (moepot)
Changed in flabber:
importance: Undecided → Medium
status: New → In Progress
Revision history for this message
Walter (moepot) wrote :

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

Revision history for this message
Walter (moepot) wrote :

I'm sorry, that's not the correct patch. Here again.

Revision history for this message
Walter (moepot) wrote :

Only patch available.
Fixed version will be included in release 0.1.0

Changed in flabber:
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.