Hi,
I'm using tweepy 2.1 installed through pip, and until 3 days ago everything has been working quite well.
Then something broke and whenever I try to call api.user_timeline (I have 3 different tokens and
I'm not being rate_limited) I get an error complaining about max_id.
So I've simplified my code in order to understand the problem, until I got back to the base case:
for status in tweepy.Cursor(self.api.user_timeline).items():
print status
No matter what I try and which parameters (id, user_id, screen_name) I pass to the function, the
execution always stops at the first iteration of the Cursor with the following exception:
Traceback (most recent call last):
File "/Users/.../twitter_data.py", line 252, in get_timeline
for status in tweepy.Cursor(self.api.user_timeline).items():
File "/Users/.../anaconda/lib/python2.7/site-packages/tweepy/cursor.py", line 152, in next
self.current_page = self.page_iterator.next()
File "/Users/.../anaconda/lib/python2.7/site-packages/tweepy/cursor.py", line 100, in next
self.max_id = data.max_id
AttributeError: 'list' object has no attribute 'max_id'
I'm really running out of ideas, can you please help me or give me a direction?
Just to be sure I downloaded also the git version and run the test suites with my
tokens: every cursor based test, fails:
======================================================================
FAIL: testcursorcursoritems (tests.test_cursors.TweepyCursorTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/.../tweepy/tests/test_cursors.py", line 22, in testcursorcursoritems
self.assertEqual(len(items), 10)
AssertionError: 0 != 10
======================================================================
FAIL: testcursorcursorpages (tests.test_cursors.TweepyCursorTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/.../tweepy/tests/test_cursors.py", line 29, in testcursorcursorpages
self.assert_(len(pages) == 1)
AssertionError: False is not true
======================================================================
FAIL: testidcursoritems (tests.test_cursors.TweepyCursorTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/.../tweepy/tests/test_cursors.py", line 14, in testidcursoritems
self.assertEqual(len(items), 25)
AssertionError: 14 != 25
======================================================================
FAIL: testidcursorpages (tests.test_cursors.TweepyCursorTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/.../tweepy/tests/test_cursors.py", line 18, in testidcursorpages
self.assertEqual(len(pages), 5)
AssertionError: 1 != 5
Same type of errors on every token and all of them have full rights enabled.
Any help would be very appreciated.
Thank you.