让 pubsubhubbub 中心正常运行

发布于 2024-08-23 14:41:20 字数 3479 浏览 10 评论 0原文

我已按照 http://code.google.com/p/pubsubhubbub 中的说明进行操作/wiki/DeveloperGettingStartedGuide 设置中心。 当我启动集线器时,我收到以下警告

$ sudo python2.5 google_appengine/dev_appserver.py pubsubhubbub/hub/
INFO     2010-03-04 12:29:57,928 appengine_rpc.py:157] Server: appengine.google.com
INFO     2010-03-04 12:29:57,959 appcfg.py:329] Checking for updates to the SDK.
WARNING  2010-03-04 12:29:58,272 datastore_file_stub.py:418] Could not read datastore data from /tmp/dev_appserver.datastore
WARNING  2010-03-04 12:29:58,273 datastore_file_stub.py:418] Could not read datastore data from /tmp/dev_appserver.datastore.history
INFO     2010-03-04 12:29:58,349 dev_appserver_main.py:465] Running application pubsubhubbub on port 8080: http://localhost:8080

http://pastie.org/853356

当我将浏览器指向http://localhost:8080 我得到了一个令人讨厌的异常。在我的浏览器中抛出了 AttributeError 。 console

ERROR    2010-03-04 12:31:27,735 dev_appserver.py:3000] Exception encountered handling request
Traceback (most recent call last):
  File "/home/pentarim/webdev/pshb/google_appengine/google/appengine/tools/dev_appserver.py", line 2969, in _HandleRequest
    base_env_dict=env_dict)
  File "/home/pentarim/webdev/pshb/google_appengine/google/appengine/tools/dev_appserver.py", line 406, in Dispatch
    base_env_dict=base_env_dict)
  File "/home/pentarim/webdev/pshb/google_appengine/google/appengine/tools/dev_appserver.py", line 2238, in Dispatch
    self._module_dict)
  File "/home/pentarim/webdev/pshb/google_appengine/google/appengine/tools/dev_appserver.py", line 2156, in ExecuteCGI
    reset_modules = exec_script(handler_path, cgi_path, hook)
  File "/home/pentarim/webdev/pshb/google_appengine/google/appengine/tools/dev_appserver.py", line 2052, in ExecuteOrImportScript
    exec module_code in script_module.__dict__
  File "/home/pentarim/webdev/pshb/pubsubhubbub/hub/main.py", line 116, in <module>
    import dos
  File "/home/pentarim/webdev/pshb/google_appengine/google/appengine/tools/dev_appserver.py", line 1158, in Decorate
    return func(self, *args, **kwargs)
  File "/home/pentarim/webdev/pshb/google_appengine/google/appengine/tools/dev_appserver.py", line 1806, in load_module
    return self.FindAndLoadModule(submodule, fullname, search_path)
  File "/home/pentarim/webdev/pshb/google_appengine/google/appengine/tools/dev_appserver.py", line 1158, in Decorate
    return func(self, *args, **kwargs)
  File "/home/pentarim/webdev/pshb/google_appengine/google/appengine/tools/dev_appserver.py", line 1708, in FindAndLoadModule
    description)
  File "/home/pentarim/webdev/pshb/google_appengine/google/appengine/tools/dev_appserver.py", line 1158, in Decorate
    return func(self, *args, **kwargs)
  File "/home/pentarim/webdev/pshb/google_appengine/google/appengine/tools/dev_appserver.py", line 1659, in LoadModuleRestricted
    description)
  File "/home/pentarim/webdev/pshb/pubsubhubbub/hub/dos.py", line 219, in <module>
    offset_multi=memcache.offset_multi,
AttributeError: 'module' object has no attribute 'offset_multi'
INFO     2010-03-04 12:31:27,749 dev_appserver.py:3029] "GET / HTTP/1.1" 500 -

http://pastie.org/853357

作为Python新手需要帮助,有什么想法吗?

I have followed the instructions found at http://code.google.com/p/pubsubhubbub/wiki/DeveloperGettingStartedGuide to setup a hub.
When I start the hub I get following warnings

$ sudo python2.5 google_appengine/dev_appserver.py pubsubhubbub/hub/
INFO     2010-03-04 12:29:57,928 appengine_rpc.py:157] Server: appengine.google.com
INFO     2010-03-04 12:29:57,959 appcfg.py:329] Checking for updates to the SDK.
WARNING  2010-03-04 12:29:58,272 datastore_file_stub.py:418] Could not read datastore data from /tmp/dev_appserver.datastore
WARNING  2010-03-04 12:29:58,273 datastore_file_stub.py:418] Could not read datastore data from /tmp/dev_appserver.datastore.history
INFO     2010-03-04 12:29:58,349 dev_appserver_main.py:465] Running application pubsubhubbub on port 8080: http://localhost:8080

http://pastie.org/853356

When I point my browser to http://localhost:8080 I get a nasty exceptions.AttributeError thrown in my browser & console

ERROR    2010-03-04 12:31:27,735 dev_appserver.py:3000] Exception encountered handling request
Traceback (most recent call last):
  File "/home/pentarim/webdev/pshb/google_appengine/google/appengine/tools/dev_appserver.py", line 2969, in _HandleRequest
    base_env_dict=env_dict)
  File "/home/pentarim/webdev/pshb/google_appengine/google/appengine/tools/dev_appserver.py", line 406, in Dispatch
    base_env_dict=base_env_dict)
  File "/home/pentarim/webdev/pshb/google_appengine/google/appengine/tools/dev_appserver.py", line 2238, in Dispatch
    self._module_dict)
  File "/home/pentarim/webdev/pshb/google_appengine/google/appengine/tools/dev_appserver.py", line 2156, in ExecuteCGI
    reset_modules = exec_script(handler_path, cgi_path, hook)
  File "/home/pentarim/webdev/pshb/google_appengine/google/appengine/tools/dev_appserver.py", line 2052, in ExecuteOrImportScript
    exec module_code in script_module.__dict__
  File "/home/pentarim/webdev/pshb/pubsubhubbub/hub/main.py", line 116, in <module>
    import dos
  File "/home/pentarim/webdev/pshb/google_appengine/google/appengine/tools/dev_appserver.py", line 1158, in Decorate
    return func(self, *args, **kwargs)
  File "/home/pentarim/webdev/pshb/google_appengine/google/appengine/tools/dev_appserver.py", line 1806, in load_module
    return self.FindAndLoadModule(submodule, fullname, search_path)
  File "/home/pentarim/webdev/pshb/google_appengine/google/appengine/tools/dev_appserver.py", line 1158, in Decorate
    return func(self, *args, **kwargs)
  File "/home/pentarim/webdev/pshb/google_appengine/google/appengine/tools/dev_appserver.py", line 1708, in FindAndLoadModule
    description)
  File "/home/pentarim/webdev/pshb/google_appengine/google/appengine/tools/dev_appserver.py", line 1158, in Decorate
    return func(self, *args, **kwargs)
  File "/home/pentarim/webdev/pshb/google_appengine/google/appengine/tools/dev_appserver.py", line 1659, in LoadModuleRestricted
    description)
  File "/home/pentarim/webdev/pshb/pubsubhubbub/hub/dos.py", line 219, in <module>
    offset_multi=memcache.offset_multi,
AttributeError: 'module' object has no attribute 'offset_multi'
INFO     2010-03-04 12:31:27,749 dev_appserver.py:3029] "GET / HTTP/1.1" 500 -

http://pastie.org/853357

As a python newbie would need help, any ideas?

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

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

发布评论

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

评论(1

眼眸 2024-08-30 14:41:20

该教程位于 http://code.google.com/p/pubsubhubbub/wiki/DeveloperGettingStartedGuide 已过时,您需要使用 至少 google app engine 1.2.8 才能使其正常工作(其中添加了新的 memcache offset_multi 方法以及 incr 和 decr 中的批量支持)

The tutorial at http://code.google.com/p/pubsubhubbub/wiki/DeveloperGettingStartedGuide is outdated, you need to use at least google app engine 1.2.8 to make it work (where New memcache offset_multi method and batch support in incr and decr. is added)

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