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' in NewFromJsonDict() #235

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

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Auth API
2. users = api.UsersLookup(<USER ID or Name>)


What is the expected output? What do you see instead?
Expected a twitter.User object returned for each UserID or Name, but instead 
receive an error:

Traceback (most recent call last):
  File "trial.py", line 40, in <module>
    users = api.UsersLookup('XXXXXX')
  File "/usr/local/lib/python2.7/dist-packages/python_twitter-0.8.2-py2.7.egg/twitter.py", line 3049, in UsersLookup
    return [User.NewFromJsonDict(u) for u in data]
  File "/usr/local/lib/python2.7/dist-packages/python_twitter-0.8.2-py2.7.egg/twitter.py", line 1340, in NewFromJsonDict
    return User(id=data.get('id', None),
AttributeError: 'unicode' object has no attribute 'get''


What version of the product are you using? On what operating system?
Using version 0.8.2 and I have tried on both Windows and Linux (Ubuntu)

Please provide any additional information below.
I have tested using both ID's and Names along with a list of ID's and all 
report the same error.


Original issue reported on code.google.com by [email protected] on 30 Jul 2012 at 4:13

@GoogleCodeExporter
Copy link
Author

I receive this error as well, same version as above on Windows

Original comment by [email protected] on 4 Aug 2012 at 6:11

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