Amazon.co.jp ウィジェット
スポンサードリンク

2008年09月25日

GAE 1.1.3 の zipimport は py_zipimport

GAE 1.1.3 + zipimport + setuptools

appengine-monkey + zipimport の合わせ技で Pylons 0.9.7 を動かそうとしたのだが、うまくいかない。

setuptools が entry points を探しに行く段階で、以下のように怒られてしまいます。

Error loading application:
Traceback (most recent call last):
  File "/base/data/home/apps/bia-hanoi/2.23/paste-deploy.py", line 51, in 
    app = loadapp(CONF_FILE)
  File "/base/data/home/apps/bia-hanoi/2.23/lib/python2.5/site-packages/PasteDeploy-1.3.2-py2.5.egg/paste/deploy/loadwsgi.py", line 210, in loadapp
    return loadobj(APP, uri, name=name, **kw)
  File "/base/data/home/apps/bia-hanoi/2.23/lib/python2.5/site-packages/PasteDeploy-1.3.2-py2.5.egg/paste/deploy/loadwsgi.py", line 230, in loadobj
    global_conf=global_conf)
  File "/base/data/home/apps/bia-hanoi/2.23/lib/python2.5/site-packages/PasteDeploy-1.3.2-py2.5.egg/paste/deploy/loadwsgi.py", line 254, in loadcontext
    global_conf=global_conf)
  File "/base/data/home/apps/bia-hanoi/2.23/lib/python2.5/site-packages/PasteDeploy-1.3.2-py2.5.egg/paste/deploy/loadwsgi.py", line 284, in _loadconfig
    return loader.get_context(object_type, name, global_conf)
  File "/base/data/home/apps/bia-hanoi/2.23/lib/python2.5/site-packages/PasteDeploy-1.3.2-py2.5.egg/paste/deploy/loadwsgi.py", line 411, in get_context
    global_additions=global_additions)
  File "/base/data/home/apps/bia-hanoi/2.23/lib/python2.5/site-packages/PasteDeploy-1.3.2-py2.5.egg/paste/deploy/loadwsgi.py", line 506, in _pipeline_app_context
    APP, pipeline[-1], global_conf)
  File "/base/data/home/apps/bia-hanoi/2.23/lib/python2.5/site-packages/PasteDeploy-1.3.2-py2.5.egg/paste/deploy/loadwsgi.py", line 415, in get_context
    section)
  File "/base/data/home/apps/bia-hanoi/2.23/lib/python2.5/site-packages/PasteDeploy-1.3.2-py2.5.egg/paste/deploy/loadwsgi.py", line 437, in _context_from_use
    object_type, name=use, global_conf=global_conf)
  File "/base/data/home/apps/bia-hanoi/2.23/lib/python2.5/site-packages/PasteDeploy-1.3.2-py2.5.egg/paste/deploy/loadwsgi.py", line 367, in get_context
    global_conf=global_conf)
  File "/base/data/home/apps/bia-hanoi/2.23/lib/python2.5/site-packages/PasteDeploy-1.3.2-py2.5.egg/paste/deploy/loadwsgi.py", line 254, in loadcontext
    global_conf=global_conf)
  File "/base/data/home/apps/bia-hanoi/2.23/lib/python2.5/site-packages/PasteDeploy-1.3.2-py2.5.egg/paste/deploy/loadwsgi.py", line 284, in _loadconfig
    return loader.get_context(object_type, name, global_conf)
  File "/base/data/home/apps/bia-hanoi/2.23/lib/python2.5/site-packages/PasteDeploy-1.3.2-py2.5.egg/paste/deploy/loadwsgi.py", line 415, in get_context
    section)
  File "/base/data/home/apps/bia-hanoi/2.23/lib/python2.5/site-packages/PasteDeploy-1.3.2-py2.5.egg/paste/deploy/loadwsgi.py", line 437, in _context_from_use
    object_type, name=use, global_conf=global_conf)
  File "/base/data/home/apps/bia-hanoi/2.23/lib/python2.5/site-packages/PasteDeploy-1.3.2-py2.5.egg/paste/deploy/loadwsgi.py", line 367, in get_context
    global_conf=global_conf)
  File "/base/data/home/apps/bia-hanoi/2.23/lib/python2.5/site-packages/PasteDeploy-1.3.2-py2.5.egg/paste/deploy/loadwsgi.py", line 254, in loadcontext
    global_conf=global_conf)
  File "/base/data/home/apps/bia-hanoi/2.23/lib/python2.5/site-packages/PasteDeploy-1.3.2-py2.5.egg/paste/deploy/loadwsgi.py", line 291, in _loadegg
    return loader.get_context(object_type, name, global_conf)
  File "/base/data/home/apps/bia-hanoi/2.23/lib/python2.5/site-packages/PasteDeploy-1.3.2-py2.5.egg/paste/deploy/loadwsgi.py", line 567, in get_context
    object_type, name=name)
  File "/base/data/home/apps/bia-hanoi/2.23/lib/python2.5/site-packages/PasteDeploy-1.3.2-py2.5.egg/paste/deploy/loadwsgi.py", line 587, in find_egg_entry_point
    pkg_resources.require(self.spec)
  File "/base/data/home/apps/bia-hanoi/2.23/lib/python2.5/site-packages/setuptools-0.6c8-py2.5.egg/pkg_resources.py", line 627, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/base/data/home/apps/bia-hanoi/2.23/lib/python2.5/site-packages/setuptools-0.6c8-py2.5.egg/pkg_resources.py", line 522, in resolve
    env = Environment(self.entries)
  File "/base/data/home/apps/bia-hanoi/2.23/lib/python2.5/site-packages/setuptools-0.6c8-py2.5.egg/pkg_resources.py", line 682, in __init__
    self.scan(search_path)
  File "/base/data/home/apps/bia-hanoi/2.23/lib/python2.5/site-packages/setuptools-0.6c8-py2.5.egg/pkg_resources.py", line 711, in scan
    for dist in find_distributions(item):
  File "/base/data/home/apps/bia-hanoi/2.23/lib/python2.5/site-packages/setuptools-0.6c8-py2.5.egg/pkg_resources.py", line 1673, in find_on_path
    for dist in find_distributions(os.path.join(path_item, entry)):
  File "/base/data/home/apps/bia-hanoi/2.23/lib/python2.5/site-packages/setuptools-0.6c8-py2.5.egg/pkg_resources.py", line 1620, in find_in_zip
    metadata = EggMetadata(importer)
  File "/base/data/home/apps/bia-hanoi/2.23/lib/python2.5/site-packages/setuptools-0.6c8-py2.5.egg/pkg_resources.py", line 1509, in __init__
    self.zipinfo =