0

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')).

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

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

Jeffrey Godwyll
  • 3,787
  • 3
  • 26
  • 37

1 Answers1

0

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

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.

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

Community
  • 1
  • 1
Jeffrey Godwyll
  • 3,787
  • 3
  • 26
  • 37