| Summary: | dev-python/python-twitter - twitter.TwitterError: [{u'message': u'The Twitter REST API v1 is no longer active. Please migrate to API v1.1. | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Teika kazura <teika> |
| Component: | [OLD] Development | Assignee: | Python Gentoo Team <python> |
| Status: | RESOLVED INVALID | ||
| Severity: | normal | Keywords: | UPSTREAM |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| URL: | https://dev.twitter.com/blog/api-v1-is-retired | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | Sample code to generate an error. | ||
|
Description
Teika kazura
2013-07-24 08:58:41 UTC
Created attachment 354070 [details] Sample code to generate an error. Run this code, and you'll see the following error. (Note especially the last line.) ------------------------------------------------------------------------ Traceback (most recent call last): File "./all.py", line 11, in <module> main() File "./all.py", line 8, in main statuses = twitter.Api().GetUserTimeline(screen_name=user, count=1) File "/usr/lib64/python2.7/site-packages/twitter.py", line 2721, in GetUserTimeline data = self._ParseAndCheckTwitter(json) File "/usr/lib64/python2.7/site-packages/twitter.py", line 3869, in _ParseAndCheckTwitter self._CheckForTwitterError(data) File "/usr/lib64/python2.7/site-packages/twitter.py", line 3894, in _CheckForTwitterError raise TwitterError(data['errors']) twitter.TwitterError: [{u'message': u'The Twitter REST API v1 is no longer active. Please migrate to API v1.1. https://dev.twitter.com/docs/api/1.1/overview.', u'code': 68}] I'm not convinced. I just updated it to 1.0 in June, which includes support for v.1.1. The repository no longer lives at Google Code, but now lives at Github. Anyway, python-twitter-0.8.5.ebuild is obsolete, which supports the obsolete API, and should be deleted. But sorry, Dirkjan, for my poor report, and thanks for your effort in Gentoo. |