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

Error in twitter-list-lists.py #4

Closed
DenverDaveH opened this issue Mar 6, 2017 · 8 comments
Closed

Error in twitter-list-lists.py #4

DenverDaveH opened this issue Mar 6, 2017 · 8 comments

Comments

@DenverDaveH
Copy link

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

@beatrizChagas
Copy link

Do you have a Twitter API installed? Which?

@DenverDaveH
Copy link
Author

Yes I did a pip install twitter-python.

@beatrizChagas
Copy link

@aljohaniAbdula
Copy link

same problem with "NameError: name 'Twitter' is not defined", have same specs

@beatrizChagas
Copy link

This error occurs when python interpreter do not recognize the importated library

@DenverDaveH
Copy link
Author

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:
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help

error: no commands supplied
This assumes if the pip install is not working, then this should do the install via setup.py?

@aljohaniAbdula
Copy link

Worked,i uninstalled, and then: 'pip install twitter', and all worked good

@ideoforms
Copy link
Owner

Thanks for your comments - glad the problem was resolved. Closing this ticket.

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

No branches or pull requests

4 participants