-
Notifications
You must be signed in to change notification settings - Fork 326
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
Error in twitter-list-lists.py #4
Comments
Do you have a Twitter API installed? Which? |
Yes I did a pip install twitter-python. |
same problem with "NameError: name 'Twitter' is not defined", have same specs |
This error occurs when python interpreter do not recognize the importated library |
Ok so as I have installed the api using the pip command, what else could it be? I cloned this repo. Tried to run python setup.py and get this error: error: no commands supplied |
Worked,i uninstalled, and then: 'pip install twitter', and all worked good |
Thanks for your comments - glad the problem was resolved. Closing this ticket. |
Hello,
I am running python 2.7 and 3.5. I also have Anaconda3 installed. In any version I am getting this error:
/media/sf_Temp/python-twitter-examples$ python /media/sf_Temp/python-twitter-examples/twitter-list-lists.py
Traceback (most recent call last):
File "/media/sf_Temp/python-twitter-examples/twitter-list-lists.py", line 23, in
twitter = Twitter(auth=OAuth(config["access_key"], config["access_secret"], config["consumer_key"], config["consumer_secret"]))
NameError: name 'Twitter' is not defined
I cloned your examples to try and learn more about the Twitter api. So I want to run the scripts as is, before hacking around on them.
Any thoughts as to why this is throwing this error?
Thanks
The text was updated successfully, but these errors were encountered: