Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 477980 - dev-python/python-twitter - twitter.TwitterError: [{u'message': u'The Twitter REST API v1 is no longer active. Please migrate to API v1.1.
Summary: dev-python/python-twitter - twitter.TwitterError: [{u'message': u'The Twitter...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL: https://dev.twitter.com/blog/api-v1-i...
Whiteboard:
Keywords: UPSTREAM
Depends on:
Blocks:
 
Reported: 2013-07-24 08:58 UTC by Teika kazura
Modified: 2013-07-26 01:56 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Sample code to generate an error. (all.py,190 bytes, text/plain)
2013-07-24 09:01 UTC, Teika kazura
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Teika kazura 2013-07-24 08:58:41 UTC
* Bug definition:
dev-python/python-twitter is an obsolete package, and can be deleted anytime. It only supports twitter API v1 which twitter.com doesn't provide any more.

Bug 300967 is now obsolete.

* Background:
Twitter.com used to provide two incompatible APIs, v1 and v1.1. v1 is not available any more.[1]

[1]:
  https://dev.twitter.com/blog/api-v1-is-retired
New API v1.1 was released in Sep 2012:
  https://dev.twitter.com/blog/current-status-api-v1.1

This package provides python binding(?) for twitter API v1. So apps which rely on this package do not work any more. See the attached sample code and its error message for example.

The package development is stopped since Dec 2011:
  http://code.google.com/p/python-twitter/source/list

* Other packages:
Users of this package, dev-python/python-twitter, can consider dev-python/tweepy or dev-python/twitter as replacements. Both are actively developed.

x11-plugins/pidgin-mbpurple and x11-plugins/prpltwtr are both inactive, and their twitter supports are obsolete now, supporting only API v1. However, they also support other microblogs, and I can't say anything about them.

All other packages supporting twitter (according to "eix -S twitter") are actively developed.

Thanks.
Comment 1 Teika kazura 2013-07-24 09:01:17 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}]
Comment 2 Dirkjan Ochtman (RETIRED) gentoo-dev 2013-07-24 12:19:34 UTC
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.
Comment 3 Teika kazura 2013-07-26 01:56:50 UTC
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.