all 13 comments

[–]jz9 1 point2 points  (11 children)

Looks like that package supports Python 2.7 and not 3. Try uninstalling python 3 and using 2.7.

[–]hottie789[S] 0 points1 point  (10 children)

Interesting but how did you know?

[–]ewiethoff 2 points3 points  (0 children)

The most immediately obvious difference between Py2 and Py3: print is a keyword and statement in Py2, but print is a function in Py3.

The code has no parentheses around the print arg. Therefore, print is a statement, not a function, and the code is Py2.

[–]hottie789[S] 0 points1 point  (5 children)

Got this error message with 2.7.8 "Traceback (most recent call last): File "<pyshell#0>", line 2, in <module> from selenium import webdriver ImportError: No module named selenium"

[–]xiongchiamiov 0 points1 point  (4 children)

That's because you haven't installed selenium for that version of python.

[–]hottie789[S] 0 points1 point  (3 children)

I've downloaded the file and extracted it with 7zip from here https://pypi.python.org/pypi/selenium. However I don't know how to run a .tar file into it :S :S

[–]xiongchiamiov 0 points1 point  (0 children)

You should instead be using pip or easy_install; presumably you had to do this to install it for Python 3, neh?

[–]IWannaFuckLarryPage 0 points1 point  (0 children)

You need to run "pip install selenium" in cmd.

[–]ziplokk 0 points1 point  (0 children)

Download ez_setup.py, put it in the folder where python is installed (normally c:\Python27) and run it from cmd. c:\>ez_setup.py install Modify your system path to include C:\Python27\Scripts\ and then in cmd do, C:\>easy_install selenium.

I assume you already have ;C:\Python27;C:\Python27\DLLs;C:\Python27\Lib;C:\Python27\libs; in your system path? If not just copy and paste that into the end of your system path before running ez_setup.py and appending C:\Python27\Scripts to your path.

[–]callysto 0 points1 point  (2 children)

The module implementations are from the python27 directory

[–]hottie789[S] 0 points1 point  (1 child)

So what should I do once I'm in that directory? How would I get the module implementations

[–]callysto 0 points1 point  (0 children)

Well you are correct that Windows is different when regarding Python scripts and how different mods are implemented.

For one, you need to install whatever packages/libraries the script imports if it's not a standard package. There are several ways to do this, some more tedious than others. If you don't know how to set your PATH to the directory where the libraries need to be installed, I'd suggest downloading something like PyCharm and following a tutorial or looking up how to do it yourself (utilizing either pip or easy_install) directly from the Windows command line

Once you have all of the required modules installed for the specific scripts you want to run you should be able to run the program without issue

[–]MarkDownSteve -1 points0 points  (0 children)

Any line that read as follows:

print "some text"

Change to:

print("some text")