[Zope-dev] lovely.recipe.importchecker + py 2.5
Adam GROSZER
agroszer at gmail.com
Thu Jan 29 12:31:31 EST 2009
Hello,
Seems like lovely.recipe.importchecker fails on python 2.5 with:
File "/home/adi/.buildout/eggs/lovely.recipe-1.0.0a1-py2.5.egg/lovely/recipe/importchecker/importchecker.py", line 313, in main
db.findModules()
File "/home/adi/.buildout/eggs/lovely.recipe-1.0.0a1-py2.5.egg/lovely/recipe/importchecker/importchecker.py", line 223, in findModules
module = Module(modulepath)
File "/home/adi/.buildout/eggs/lovely.recipe-1.0.0a1-py2.5.egg/lovely/recipe/importchecker/importchecker.py", line 115, in __init__
self._map = findImports(mod)
File "/home/adi/.buildout/eggs/lovely.recipe-1.0.0a1-py2.5.egg/lovely/recipe/importchecker/importchecker.py", line 105, in findImports
compiler.walk(mod, visitor)
File "/usr/lib/python2.5/compiler/visitor.py", line 106, in walk
walker.preorder(tree, visitor)
File "/usr/lib/python2.5/compiler/visitor.py", line 63, in preorder
self.dispatch(tree, *args) # XXX *args make sense?
File "/usr/lib/python2.5/compiler/visitor.py", line 57, in dispatch
return meth(node, *args)
File "/usr/lib/python2.5/compiler/visitor.py", line 40, in default
self.dispatch(child, *args)
File "/usr/lib/python2.5/compiler/visitor.py", line 57, in dispatch
return meth(node, *args)
File "/usr/lib/python2.5/compiler/visitor.py", line 40, in default
self.dispatch(child, *args)
File "/usr/lib/python2.5/compiler/visitor.py", line 57, in dispatch
return meth(node, *args)
File "/home/adi/.buildout/eggs/lovely.recipe-1.0.0a1-py2.5.egg/lovely/recipe/importchecker/importchecker.py", line 70, in visitFrom
module_name, names = stmt.asList()
ValueError: too many values to unpack
Looks like stmt.asList() returns on python 2.5 a 3-tuple.
Anyone noticed that already?
--
Best regards,
Adam GROSZER mailto:agroszer at gmail.com
--
Quote of the day:
Lawyers on opposite sides of a case are like the two parts of shears; they cut what comes between them, but not each other.
- Daniel Webster
More information about the Zope-Dev
mailing list