elisa depends on Python 2.5 defaultdict

Bug #268485 reported by yippi
2
Affects Status Importance Assigned to Milestone
Moovida
Fix Released
Medium
Alessandro Decina

Bug Description

When I try to build elisa, I get this error:

pkgbuild: ImportError: cannot import name defaultdict

This seems to be a Python 2.5 specific feature, and I'm building with Python 2.4. I thought Elisa was supposed to work with Python 2.4. No?

Revision history for this message
Olivier Tilloy (osomon) wrote :

Yes, defaultdict is new in Python 2.5 (http://docs.python.org/lib/defaultdict-objects.html).
In theory Elisa should support Python 2.4, but unfortunately there may be some other incompatibilities with Python 2.4 in the code that we are not aware of, mostly because of a lack of testing/automated builds.

Changed in elisa:
milestone: none → 0.5.x
status: New → Confirmed
Revision history for this message
Ken VanDine (ken-vandine) wrote :

Any chance of fixing this soon? I really need to get my packages updated and python 2.5 isn't an option for me yet.

Revision history for this message
yippi (brian-cameron) wrote :

Looking at the defaultdict docs, it is a subclass of "dict". It doesn't seem that the elisa code uses any of the features of the defaultdict subclass. Just changing "defaultdict" to "dict" seems to make Elisa work fine using python 2.4.

Revision history for this message
yippi (brian-cameron) wrote :

Sorry, that was a bad attachment. The following attachment changes the defaultdict to dict. While this seems to make elisa startup okay, I think this isn't correct either. I notice now that elisa seems to hang on exit with this exception when I use this patch. Any ideas?

  File "/usr/lib/python2.4/site-packages/elisa/core/application.py", line 487, in managers_stopped
  File "/usr/lib/python2.4/site-packages/elisa/core/config.py", line 217, in write
  File "/usr/lib/python2.4/site-packages/elisa/extern/configobj.py", line 1942, in write
  File "/usr/lib/python2.4/site-packages/elisa/extern/configobj.py", line 1927, in write

exceptions.KeyError: 'home'

Revision history for this message
yippi (brian-cameron) wrote :
Olivier Tilloy (osomon)
Changed in elisa:
assignee: nobody → alessandro.decina
importance: Undecided → Medium
milestone: 0.5.x → 0.5.13
status: Confirmed → In Progress
Changed in elisa:
status: In Progress → Fix Committed
Changed in elisa:
status: Fix Committed → Fix Released
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.