【问题标题】:AssertionError: No api proxy found for service "xmpp"AssertionError: No api proxy found for service "xmpp"
【发布时间】:2012-08-13 03:39:37
【问题描述】:

我试图在没有 dev_appserver.py 的情况下运行 gae 应用程序,但出现以下错误 AssertionError: No api proxy found for service "xmpp"

room = webrtc.Room.get_by_key_name(room_key)

我在 app.yaml inbound_services 中找到: - channel_presence

如何在application.py中直接开启channel_presence

【问题讨论】:

  • 如果你没有使用 dev_appserver.py,你是如何尝试运行它的?
  • 我将 google 目录从 gae sdk 复制到了站点包中。我只需要来自 gae 的频道。

标签: python google-app-engine xmpp webrtc


【解决方案1】:

除非另有说明,否则 App Engine SDK 中包含的库只能在 App Engine 环境中工作。您不能只导入 App Engine SDK 中包含的 XMPP 库并期望它在非 GAE 应用程序中工作。

【讨论】:

  • 很伤心)),您能否建议非 GAE 应用程序的 gae 通道替代方案,它使用 Webrtc 技术处理 p2p 视频。如何在没有通道的情况下连接 2 个客户端?
  • 你可以看看 TyphoonAE (code.google.com/p/typhoonae/wiki/ChannelAPI),但是如果你想使用 App Engine 服务,我不知道你为什么不使用 App Engine。
  • 合法问题。事实上,应用程序的很大一部分已经在 werkzeug 上工作了几个月,因为服务器已决定使用 gevent、模板引擎 - tenjin,最近决定添加对 webrtc 的支持。因此,不想重新开始,因为我只是不知道 gae gevent 和 werkzeug 和 tenjin 是否。
猜你喜欢
  • 2017-07-09
  • 2018-11-04
  • 2016-10-05
  • 1970-01-01
  • 1970-01-01
  • 2019-01-13
  • 2021-10-21
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多