python-twitter,Google App引擎,(“连接已中止.",错误(13,“权限被拒绝")) [英] python-twitter, google app engine, ('Connection aborted.', error(13, 'Permission denied'))

查看:124
本文介绍了python-twitter,Google App引擎,(“连接已中止.",错误(13,“权限被拒绝"))的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

python-twitter 似乎不适用于devserver上的google app引擎,因为当我向得到的twitter.api请求:

python-twitter doesn't seem to work with google app engine on the devserver because when I make a request to the twitter.api I get:

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

但是,在eclipse中以及在实时App Engine服务器上运行单元测试时,相同的代码(无需进行任何更改)可以很好地工作.

However, the same code, not changing a thing, works fine when running unittests in eclipse, as well as on the live app engine server..

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

Does anyone know how to get python-twitter to work with the dev server?

推荐答案

这是因为python-twitter使用 the请求库,不幸的是,核心请求团队 > 不要'似乎'支持GAE .

This is because python-twitter makes use of the requests library for which unfortunately the core requests team do not 'seem' to support GAE.

如果您要使用请求库,则有一些已知的解决方法,例如按照此 stackoverflow答案中的建议降级到较早的请求库版本. 或必须修补请求库的某些部分.你可以去尝试一下.但是,事实证明,您可以在实时应用程序引擎服务器中工作.

There are some known workarounds if you want to use the requests library like downgrading to an earlier requests lib version as suggested in this stackoverflow answer or having to patch some sections of the requests lib. You can have a go at it. But the fact that yours works in the live app engine server is actually a good thing.

如果您要获得官方支持,则应该跟进此旧错误但是来自python-twitter lib.

You should follow up on this old bug if you want official support from the python-twitter lib though.

这篇关于python-twitter,Google App引擎,(“连接已中止.",错误(13,“权限被拒绝"))的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆