【问题标题】:python-twitter, google app engine, ('Connection aborted.', error(13, 'Permission denied'))python-twitter, google app engine, ('Connection aborted.', error(13, 'Permission denied'))
【发布时间】:2016-04-14 22:52:51
【问题描述】:

python-twitter 似乎不适用于开发服务器上的谷歌应用引擎,因为当我向 twitter.api 发出请求时,我得到:

'Connection aborted.', error(13, 'Permission denied')).

但是,在 Eclipse 中以及在实时应用引擎服务器上运行单元测试时,相同的代码不会改变任何内容。

有人知道如何让 python-twitter 与开发服务器一起工作吗?

【问题讨论】:

    标签: python google-app-engine twitter


    【解决方案1】:

    这是因为 python-twitter 使用了the requests library,不幸的是core requests team do not 'seem' to support GAE。

    如果您想使用 requests 库,例如按照stackoverflow answer 中的建议降级到较早的 requests 库版本,或者必须修补 requests 库的某些部分,有一些已知的解决方法。你可以试一试。但是你的在实时应用引擎服务器中工作的事实实际上是一件好事。

    如果你想要 python-twitter 库的官方支持,你应该关注这个old bug。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-02-12
      • 2022-01-21
      • 1970-01-01
      • 2019-11-27
      • 2020-12-27
      • 2018-01-01
      • 2015-11-21
      相关资源
      最近更新 更多