Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'unicode' object has no attribute 'get' #242

Open
GoogleCodeExporter opened this issue Aug 6, 2015 · 1 comment
Open

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Authorize in api:
api = twitter.Api(consumer_key, consumer_secret, access_token, 
access_token_secret)
2. Get public timeline:
statuses = api.GetPublicTimeline()

What is the expected output? What do you see instead?
Expected statuses, instead i got errror:

Traceback (most recent call last):
  File "C:\workspace\twitter\tt_tmp.py", line 9, in <module>
    statuses = api.GetPublicTimeline()
  File "build\bdist.win32\egg\twitter.py", line 2301, in GetPublicTimeline
  File "build\bdist.win32\egg\twitter.py", line 620, in NewFromJsonDict
AttributeError: 'unicode' object has no attribute 'get'

What version of the product are you using? On what operating system?
python-twitter 0.8.2, Python 2.7 on Win7 64bit

Please provide any additional information below.
GetUserTimeline works fine.

Original issue reported on code.google.com by [email protected] on 26 Oct 2012 at 12:19

@GoogleCodeExporter
Copy link
Author

Problem is in old api version. Python-twitter uses api 1.0 but now in current 
api 1.1 some functions are deprecated and returns u"error" instead of expected 
values.

Original comment by [email protected] on 26 Oct 2012 at 6:24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant