You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 7, 2024. It is now read-only.
I'm getting a twitter.error.TwitterError: [{'code': 34, 'message': 'Sorry, that page does not exist'}] on python 3.5 using python-twitter==3.5.0. I've been reading through an older issue #587 and that doesn't seem to work properly.
I changed it to url = '%s/direct_messages/events/list.json' % self.base_url and now run into this:
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/var/www/brownpapersession/alpha/brownpapersession/various/tweet.py", line 62, in get_direct_messages
messages = twitter.GetDirectMessages()
File "/var/www/brownpapersession/alpha/env/lib/python3.5/site-packages/twitter/api.py", line 2943, in GetDirectMessages
return [DirectMessage.NewFromJsonDict(x) for x in data]
File "/var/www/brownpapersession/alpha/env/lib/python3.5/site-packages/twitter/api.py", line 2943, in <listcomp>
return [DirectMessage.NewFromJsonDict(x) for x in data]
File "/var/www/brownpapersession/alpha/env/lib/python3.5/site-packages/twitter/models.py", line 88, in NewFromJsonDict
json_data = data.copy()
AttributeError: 'str' object has no attribute 'copy'