Appengine mercurial错误

时间:2010-01-23 08:09:03

标签: google-app-engine

我正在尝试为Google应用引擎部署mercurial并继续收到此错误。请看看是否有人有解决方案。

<type 'exceptions.ImportError'>: No module named pwd
Traceback (most recent call last):
  File "/base/data/home/apps/ajatus-graphics/2.339364808142331297/hgapp.py", line 33, in <module>
    main()
  File "/base/data/home/apps/ajatus-graphics/2.339364808142331297/hgapp.py", line 23, in main
    from dashboard import dashboard
  File "/base/data/home/apps/ajatus-graphics/2.339364808142331297/dashboard.py", line 3, in <module>
    from mercurial import templater, templatefilters, util
  File "/base/python_dist/lib/python2.5/py_zipimport.py", line 242, in load_module
    exec code in mod.__dict__
  File "/base/data/home/apps/ajatus-graphics/2.339364808142331297/hg.zip/mercurial/templater.py", line 10, in <module>
  File "/base/python_dist/lib/python2.5/py_zipimport.py", line 242, in load_module
    exec code in mod.__dict__
  File "/base/data/home/apps/ajatus-graphics/2.339364808142331297/hg.zip/mercurial/util.py", line 543, in <module>
  File "/base/python_dist/lib/python2.5/py_zipimport.py", line 242, in load_module
    exec code in mod.__dict__
  File "/base/data/home/apps/ajatus-graphics/2.339364808142331297/hg.zip/mercurial/posix.py", line 10, in <module>

3 个答案:

答案 0 :(得分:3)

答案 1 :(得分:1)

您无法在App Engine沙箱中访问unix密码数据库,因此未安装pwd模块。

通常,许多随机python模块都需要大量的黑客才能让它们在App Engine上运行。

答案 2 :(得分:1)

最简单的方法是删除导入密码。因为当您在GAE上运行时,您不需要此模块。