paster shell doesn't work with 0.9.7rc1dev

1 view
Skip to first unread message

Olli Wang

unread,
Jul 4, 2008, 9:29:26 PM7/4/08
to pylons-discuss
Hi, I got a traceback when I was trying to enable paster shell with
the development version.
Any idea? Thanks.

$ paster shell
Traceback (most recent call last):
File "/usr/bin/paster", line 8, in <module>
load_entry_point('PasteScript==1.6.3', 'console_scripts', 'paster')
()
File "/usr/lib/python2.5/site-packages/PasteScript-1.6.3-py2.5.egg/
paste/scrip
t/command.py", line 79, in run
invoke(command, command_name, options, args[1:])
File "/usr/lib/python2.5/site-packages/PasteScript-1.6.3-py2.5.egg/
paste/scrip
t/command.py", line 118, in invoke
exit_code = runner.run(args)
File "/usr/lib/python2.5/site-packages/PasteScript-1.6.3-py2.5.egg/
paste/scrip
t/command.py", line 213, in run
result = self.command()
File "/cygdrive/d/workspace/pylons-hg/pylons/commands.py", line 421,
in comman
d
conf = appconfig(config_name, relative_to=here_dir)
File "/usr/lib/python2.5/site-packages/PasteDeploy-1.3.2-py2.5.egg/
paste/deplo
y/loadwsgi.py", line 215, in appconfig
global_conf=global_conf)
File "/usr/lib/python2.5/site-packages/PasteDeploy-1.3.2-py2.5.egg/
paste/deplo
y/loadwsgi.py", line 248, in loadcontext
global_conf=global_conf)
File "/usr/lib/python2.5/site-packages/PasteDeploy-1.3.2-py2.5.egg/
paste/deplo
y/loadwsgi.py", line 278, in _loadconfig
return loader.get_context(object_type, name, global_conf)
File "/usr/lib/python2.5/site-packages/PasteDeploy-1.3.2-py2.5.egg/
paste/deplo
y/loadwsgi.py", line 409, in get_context
section)
File "/usr/lib/python2.5/site-packages/PasteDeploy-1.3.2-py2.5.egg/
paste/deplo
y/loadwsgi.py", line 431, in _context_from_use
object_type, name=use, global_conf=global_conf)
File "/usr/lib/python2.5/site-packages/PasteDeploy-1.3.2-py2.5.egg/
paste/deplo
y/loadwsgi.py", line 361, in get_context
global_conf=global_conf)
File "/usr/lib/python2.5/site-packages/PasteDeploy-1.3.2-py2.5.egg/
paste/deplo
y/loadwsgi.py", line 248, in loadcontext
global_conf=global_conf)
File "/usr/lib/python2.5/site-packages/PasteDeploy-1.3.2-py2.5.egg/
paste/deplo
y/loadwsgi.py", line 285, in _loadegg
return loader.get_context(object_type, name, global_conf)
File "/usr/lib/python2.5/site-packages/PasteDeploy-1.3.2-py2.5.egg/
paste/deplo
y/loadwsgi.py", line 561, in get_context
object_type, name=name)
File "/usr/lib/python2.5/site-packages/PasteDeploy-1.3.2-py2.5.egg/
paste/deplo
y/loadwsgi.py", line 587, in find_egg_entry_point
possible.append((entry.load(), protocol, entry.name))
File "/usr/lib/python2.5/site-packages/setuptools-0.6c8-py2.5.egg/
pkg_resource
s.py", line 1912, in load
File "/usr/lib/python2.5/site-packages/Myghty-1.1-py2.5.egg/myghty/
importer.py
", line 54, in import_module
return builtin_importer(name, globals, locals, fromlist)
File "/cygdrive/d/workspace/tamama/tamama/config/middleware.py",
line 4, in <m
odule>
from beaker.middleware import CacheMiddleware, SessionMiddleware
File "/usr/lib/python2.5/site-packages/Myghty-1.1-py2.5.egg/myghty/
importer.py
", line 54, in import_module
return builtin_importer(name, globals, locals, fromlist)
File "/usr/lib/python2.5/site-packages/Beaker-0.9.5-py2.5.egg/beaker/
middlewar
e.py", line 12, in <module>
from beaker.cache import CacheManager
File "/usr/lib/python2.5/site-packages/Myghty-1.1-py2.5.egg/myghty/
importer.py
", line 54, in import_module
return builtin_importer(name, globals, locals, fromlist)
File "/usr/lib/python2.5/site-packages/Beaker-0.9.5-py2.5.egg/beaker/
cache.py"
, line 32, in <module>
import beaker.ext.google as google
File "/usr/lib/python2.5/site-packages/Myghty-1.1-py2.5.egg/myghty/
importer.py
", line 54, in import_module
return builtin_importer(name, globals, locals, fromlist)
File "/usr/lib/python2.5/site-packages/Beaker-0.9.5-py2.5.egg/beaker/
ext/googl
e.py", line 1, in <module>
from __future__ import absolute_import
TypeError: import_module() takes at most 4 arguments (5 given)

Philip Jenvey

unread,
Jul 5, 2008, 7:13:53 PM7/5/08
to pylons-...@googlegroups.com

On Jul 4, 2008, at 6:29 PM, Olli Wang wrote:

>
> Hi, I got a traceback when I was trying to enable paster shell with
> the development version.
> Any idea? Thanks.

>


> File "/usr/lib/python2.5/site-packages/Myghty-1.1-py2.5.egg/myghty/
> importer.py
> ", line 54, in import_module
> return builtin_importer(name, globals, locals, fromlist)
> File "/usr/lib/python2.5/site-packages/Beaker-0.9.5-py2.5.egg/beaker/
> ext/googl
> e.py", line 1, in <module>
> from __future__ import absolute_import
> TypeError: import_module() takes at most 4 arguments (5 given)

This is a myghty bug (someone reported about a month ago actually).
It's overriding builtin's __import__ and not handling the new level
flag used for absolute imports in 2.5. If you're not using Myghty, the
easiest way of avoiding this is to uninstall it. Otherwise Myghty's
trunk will have a fix very soon.

--
Philip Jenvey


Reply all
Reply to author
Forward
0 new messages