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

ImportError: No module named selenium #1

Closed
connor11528 opened this issue Aug 21, 2014 · 5 comments
Closed

ImportError: No module named selenium #1

connor11528 opened this issue Aug 21, 2014 · 5 comments

Comments

@connor11528
Copy link

Hey I haven't used python a lot and am trying to run your script. How do I fix this no module named selenium issue? I'm running OSX

$ pip install -r requirements.txt 
Requirement already satisfied (use --upgrade to upgrade): selenium in /usr/local/lib/python2.7/site-packages (from -r requirements.txt (line 1))
Requirement already satisfied (use --upgrade to upgrade): sqlalchemy in /usr/local/lib/python2.7/site-packages (from -r requirements.txt (line 2))
Cleaning up...
$ python collect.py 2010 2014    
Traceback (most recent call last):
  File "collect.py", line 6, in <module>
    from selenium import webdriver
ImportError: No module named selenium
@tdeck
Copy link
Owner

tdeck commented Aug 22, 2014

Hmm, there are a number of possibilities. A good start might be checking to see that the pip you're using is the correct one for Python 2.x (I have been burned by this before). What is the output of pip --version and python --version?

If they are both for Python 2.7, maybe try installing selenium using your system's package manager.

@tdeck
Copy link
Owner

tdeck commented Aug 22, 2014

Edit - Sorry, I just realized the information I asked for was in the path from your error message. I am unable to reproduce this issue, however. What OS are your running?

@connor11528
Copy link
Author

Yeah no worries

@tdeck
Copy link
Owner

tdeck commented Aug 22, 2014

Did you get it to work? If so, what was the problem?

@connor11528
Copy link
Author

someone else has the sqlite database. I got it to run on a friend's ubuntu machine (someone else had it running on windows) but he said the process stopped cause it could not find a div with an id or class.

Sorry I didn't get the actual error

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

2 participants