我使用了GAE的最新版本。 我尝试使用这篇帮助文章安装Pylons v1.0: http://countergram.com/pylons-google-app-engine
paster serve --reload development.ini 工作正常
Apache2 + wsgi正常工作
但是:dev_appserver.py pylons 我收到了错误消息:
信息:root:启动管理服务器:[链接到localhost:8000错误] 2013-07-11 11:55:07,816 cgi.py:121]回溯(最近一次调用最后一次): 文件“/home/evgeny/PycharmProjects/pylons/app.py”,第41行,in run_wsgi_app(loadapp( '配置:development.ini', relative_to = appdir))文件 “lib / python2.7 / site-packages / paste / deploy / loadwsgi.py”,第247行,in loadapp ret *强调文本* urn loadobj(APP,uri,name = name,** kw)文件 “lib / python2.7 / site-packages / paste / deploy / loadwsgi.py”,第271行,in loadobj global_conf = global_conf)文件 “lib / python2.7 / site-packages / paste / deploy / loadwsgi.py”,第296行,in loadcontext global_conf = global_conf)文件 “lib / python2.7 / site-packages / paste / deploy / loadwsgi.py”,第320行,in _loadconfig return loader.get_context(object_type,name,global_conf)文件“lib / python2.7 / site-packages / paste / deploy / loadwsgi.py”,第454行, 在get_context部分)文件 “lib / python2.7 / site-packages / paste / deploy / loadwsgi.py”,第476行,in _context_from_use object_type,name = use,global_conf = global_conf)文件“lib / python2.7 / site-packages / paste / deploy / loadwsgi.py”,第406行, 在get_context global_conf = global_conf)文件中 “lib / python2.7 / site-packages / paste / deploy / loadwsgi.py”,第296行,in loadcontext global_conf = global_conf)文件 “lib / python2.7 / site-packages / paste / deploy / loadwsgi.py”,第328行,in _loadegg return loader.get_context(object_type,name,global_conf)文件“lib / python2.7 / site-packages / paste / deploy / loadwsgi.py”,第620行, 在get_context object_type中,name = name)文件 “lib / python2.7 / site-packages / paste / deploy / loadwsgi.py”,第646行,in find_egg_entry_point possible.append((entry.load(),protocol, entry.name))文件 “LIB / python2.7 /站点包/分发-0.6.19-py2.7.egg / pkg_resources.py” 第1991行,在load entry = import (self.module_name, globals(),globals(),[' name '])文件 “project / project / config / middleware.py”,第9行,来自 routes.middleware import RoutesMiddleware文件 “lib / python2.7 / site-packages / routes / init .py”,第140行,在 来自routes.mapper导入Mapper文件 “lib / python2.7 / site-packages / routes / mapper.py”,第7行,in 来自repoze.lru导入LRUCache ImportError:没有命名的模块 repoze.lru
答案 0 :(得分:0)
这是一个非常简单的决定
在virtualenv路径:
touch lib/python2.7/site-packages/repoze/__init__.py