为什么金字塔会例外zipimporter.get_文件名()

2024-06-26 04:56:40 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在编写一个简单的金字塔应用程序,并尝试运行它pserve development.ini。在

我知道了:

Traceback (most recent call last):
  File "/apps/my/python/packages/.mytest/current/bin/pserve", line 5, in <module>
    sys.exit(pyramid.scripts.pserve.main())
  File "/users/is/pypi/egg_cache/p/pyramid-1.5.1-py2.7.egg/pyramid/scripts/pserve.py", line 51, in main
    return command.run()
  File "/users/is/pypi/egg_cache/p/pyramid-1.5.1-py2.7.egg/pyramid/scripts/pserve.py", line 316, in run
    global_conf=vars)
  File "/users/is/pypi/egg_cache/p/pyramid-1.5.1-py2.7.egg/pyramid/scripts/pserve.py", line 340, in loadapp
    return loadapp(app_spec, name=name, relative_to=relative_to, **kw)
  File "/users/is/pypi/egg_cache/p/PasteDeploy-1.5.2-py2.7.egg/paste/deploy/loadwsgi.py", line 247, in loadapp
    return loadobj(APP, uri, name=name, **kw)
  File "/users/is/pypi/egg_cache/p/PasteDeploy-1.5.2-py2.7.egg/paste/deploy/loadwsgi.py", line 272, in loadobj
    return context.create()
  File "/users/is/pypi/egg_cache/p/PasteDeploy-1.5.2-py2.7.egg/paste/deploy/loadwsgi.py", line 710, in create
    return self.object_type.invoke(self)
  File "/users/is/pypi/egg_cache/p/PasteDeploy-1.5.2-py2.7.egg/paste/deploy/loadwsgi.py", line 146, in invoke
    return fix_call(context.object, context.global_conf, **context.local_conf)
  File "/users/is/pypi/egg_cache/p/PasteDeploy-1.5.2-py2.7.egg/paste/deploy/util.py", line 58, in fix_call
    reraise(*exc_info)
  File "/users/is/pypi/egg_cache/p/PasteDeploy-1.5.2-py2.7.egg/paste/deploy/compat.py", line 23, in reraise
    exec('raise t, e, tb', dict(t=t, e=e, tb=tb))
  File "/users/is/pypi/egg_cache/p/PasteDeploy-1.5.2-py2.7.egg/paste/deploy/util.py", line 55, in fix_call
    val = callable(*args, **kw)
  File "/users/is/pypi/egg_cache/at/mytest-1.9.0-py2.7.egg//mytest/__init__.py", line 108, in main
  File "/users/is/pypi/egg_cache/p/pyramid-1.5.1-py2.7.egg/pyramid/config/__init__.py", line 930, in scan
    ignore=ignore)
  File "/users/is/pypi/egg_cache/v/venusian-1.0a7-py2.7.egg/venusian/__init__.py", line 187, in scan
    fn = loader.get_filename()
TypeError: zipimporter.get_filename() takes exactly 1 argument (0 given)

有人能告诉我是怎么回事吗?在


Tags: inpypypipyramidcachereturnisegg
1条回答
网友
1楼 · 发布于 2024-06-26 04:56:40

好吧。我选择不删除这个问题,因为我相信它可能会帮助其他有同样问题的人。在

基本上,venusian不支持压缩鸡蛋。所以当你生产金字塔蛋的时候,不要把它当成拉链蛋。在

相关问题 更多 >