在 AppEngine 上运行 Mercurial 时出现类型错误

发布于 2024-10-01 02:20:16 字数 1467 浏览 5 评论 0原文

当我在 GAE 上运行“移植”Mercurial 时(来自 http://bitbucket.org/durin42/mercurial-appengine /),我遇到:

Traceback (most recent call last):
  File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/__init__.py", line 511, in __call__
    handler.get(*groups)
  File "/base/data/home/apps/yt-source/1.346021588701137656/hgappengine/multi_hgapps.py", line 45, in get
    return self.run()
  File "/base/data/home/apps/yt-source/1.346021588701137656/hgappengine/multi_hgapps.py", line 68, in run
    code = self.dispatch(repo_name)
  File "/base/data/home/apps/yt-source/1.346021588701137656/hgappengine/multi_hgapps.py", line 91, in dispatch
    app.get()
  File "/base/data/home/apps/yt-source/1.346021588701137656/hgappengine/hgapp_mod.py", line 160, in get
    return self.run()
  File "/base/data/home/apps/yt-source/1.346021588701137656/hgappengine/hgapp_mod.py", line 250, in run
    content = getattr(webcommands, cmd)(self, req, tmpl)
  File "/base/data/home/apps/yt-source/1.346021588701137656/mercurial/hgweb/webcommands.py", line 245, in shortlog
    return changelog(web, req, tmpl, shortlog = True)
  File "/base/data/home/apps/yt-source/1.346021588701137656/mercurial/hgweb/webcommands.py", line 224, in changelog
    lessvars['revcount'] = revcount / 2
TypeError: 'function' object does not support item assignment

我是Python GAE新人……

When I run "ported" Mercurial on GAE (from http://bitbucket.org/durin42/mercurial-appengine/), I meet:

Traceback (most recent call last):
  File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/__init__.py", line 511, in __call__
    handler.get(*groups)
  File "/base/data/home/apps/yt-source/1.346021588701137656/hgappengine/multi_hgapps.py", line 45, in get
    return self.run()
  File "/base/data/home/apps/yt-source/1.346021588701137656/hgappengine/multi_hgapps.py", line 68, in run
    code = self.dispatch(repo_name)
  File "/base/data/home/apps/yt-source/1.346021588701137656/hgappengine/multi_hgapps.py", line 91, in dispatch
    app.get()
  File "/base/data/home/apps/yt-source/1.346021588701137656/hgappengine/hgapp_mod.py", line 160, in get
    return self.run()
  File "/base/data/home/apps/yt-source/1.346021588701137656/hgappengine/hgapp_mod.py", line 250, in run
    content = getattr(webcommands, cmd)(self, req, tmpl)
  File "/base/data/home/apps/yt-source/1.346021588701137656/mercurial/hgweb/webcommands.py", line 245, in shortlog
    return changelog(web, req, tmpl, shortlog = True)
  File "/base/data/home/apps/yt-source/1.346021588701137656/mercurial/hgweb/webcommands.py", line 224, in changelog
    lessvars['revcount'] = revcount / 2
TypeError: 'function' object does not support item assignment

I'm newly in Python GAE...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

悸初 2024-10-08 02:20:16

发现问题:我们需要使用 Mercurial 1.6.4 或更早版本... appengine-mercurial 不支持最新版本 (1.7)

Found the problems: We need to use Mercurial 1.6.4 or older... Newest version (1.7) is not supported by appengine-mercurial

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文