Installing Selenium on Cygwin

From PeformIQ Upgrade
Jump to navigation Jump to search

Getting Started with Selenium on Cygwin

Check out:

Download and Install

plh@mira /c/Downloads
$ which pip

plh@mira /c/Downloads
$ pip

pip: error: You must give a command (use "pip help" to see a list of commands)

plh@mira /c/Downloads
$ pip help

  --version             show program's version number and exit
  -h, --help            Show help
  -E DIR, --environment=DIR
                        virtualenv environment to run pip in (either give the
                        interpreter or the environment base directory)
  -s, --enable-site-packages
                        Include site-packages in virtualenv if one is to be
                        created. Ignored if --environment is not used or the
                        virtualenv already exists.
  -v, --verbose         Give more output
  -q, --quiet           Give less output
  --log=FILENAME        Log file where a complete (maximum verbosity) record
                        will be kept
  --proxy=PROXY         Specify a proxy in the form
                        user:passwd@proxy.server:port. Note that the
                        user:password@ is optional and required only if you
                        are behind an authenticated proxy.  If you provide
                        user@proxy.server:port then you will be prompted for a
  --timeout=SECONDS, --default-timeout=SECONDS
                        Set the socket timeout (default 15 seconds)

Commands available:
  bundle: Create pybundles (archives containing multiple packages)
  freeze: Output all currently installed packages (exact versions) to stdout
  help: Show available commands
  install: Install packages
  search: Search PyPI
  uninstall: Uninstall packages
  unzip: Unzip individual packages
  zip: Zip individual packages

plh@mira /c/Downloads
$ pip install selenium
Downloading/unpacking selenium
  Downloading selenium-2.1.0.tar.gz (1.5Mb): 1.5Mb downloaded
  Running egg_info for package selenium
    /usr/lib/python2.6/distutils/ UserWarning: Unknown distribution option: 'src_root'
    warning: no files found matching ''
Downloading/unpacking rdflib==3.1.0 (from selenium)
  Downloading rdflib-3.1.0.tar.gz (249Kb): 249Kb downloaded
  Running egg_info for package rdflib
      0 [main] python2.6 5408 D:\cygwin\bin\python2.6.exe: *** fatal error - unable to remap \\?\D:\cygwin\lib\python2.6\lib-dynload\time.dll to same address as parent: 0x360000 != 0x410000
Stack trace:
Frame     Function  Args
00289F08  6102796B  (00289F08, 00000000, 00000000, 00000000)
0028A1F8  6102796B  (6117EC60, 00008000, 00000000, 61180977)
0028B228  61004F1B  (611A7FAC, 6124355C, 00360000, 00410000)
End of stack trace
      0 [main] python2.6 4100 fork: child 5408 - died waiting for dll loading, errno 11
    Error [Errno 11] Resource temporarily unavailable while executing command python egg_info
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/pip-1.0.2-py2.6.egg/pip/", line 126, in main, args)
  File "/usr/lib/python2.6/site-packages/pip-1.0.2-py2.6.egg/pip/commands/", line 223, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "/usr/lib/python2.6/site-packages/pip-1.0.2-py2.6.egg/pip/", line 986, in prepare_files
  File "/usr/lib/python2.6/site-packages/pip-1.0.2-py2.6.egg/pip/", line 222, in run_egg_info
    command_desc='python egg_info')
  File "/usr/lib/python2.6/site-packages/pip-1.0.2-py2.6.egg/pip/", line 220, in call_subprocess
    cwd=cwd, env=env)
  File "/usr/lib/python2.6/", line 633, in __init__
    errread, errwrite)
  File "/usr/lib/python2.6/", line 1049, in _execute_child = os.fork()
OSError: [Errno 11] Resource temporarily unavailable

Storing complete log in /home/plh/.pip/pip.log

Looks like a problem...

More Recently

$ wget
--2014-10-23 10:05:51--
Resolving (
Connecting to (||:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 10240 (10K) [text/plain]
Saving to: ''

100%[==========================================================>] 10,240      22.1KB/s   in 0.5s

2014-10-23 10:05:56 (22.1 KB/s) - '' saved [10240/10240]

$ ./ -U setuptools
Searching for distribute
Best match: distribute 0.7.3
Writing /tmp/easy_install-IeV1tm/distribute-0.7.3/setup.cfg
Running distribute-0.7.3/ -q bdist_egg --dist-dir /tmp/easy_install-IeV1tm/distribute-0.7.3/
warning: install_lib: 'build/lib' does not exist -- no Python modules to install

Adding distribute 0.7.3 to easy-install.pth file

Installed /usr/lib/python2.7/site-packages/distribute-0.7.3-py2.7.egg
Processing dependencies for distribute
Searching for setuptools>=0.7
Best match: setuptools 7.0
Writing /tmp/easy_install-53sYE4/setuptools-7.0/setup.cfg
Running setuptools-7.0/ -q bdist_egg --dist-dir /tmp/easy_install-53sYE4/setuptools-7.0/egg-
Adding setuptools 7.0 to easy-install.pth file
Installing easy_install script to /usr/bin
Installing easy_install-2.7 script to /usr/bin

Installed /usr/lib/python2.7/site-packages/setuptools-7.0-py2.7.egg
Finished processing dependencies for distribute

$ ./ pip
Searching for pip
Best match: pip 1.5.6
Processing pip-1.5.6.tar.gz
Writing /tmp/easy_install-RCzeaE/pip-1.5.6/setup.cfg
Running pip-1.5.6/ -q bdist_egg --dist-dir /tmp/easy_install-RCzeaE/pip-1.5.6/egg-dist-tmp-L
warning: no files found matching 'pip/cacert.pem'
warning: no files found matching '*.html' under directory 'docs'
warning: no previously-included files matching '*.rst' found under directory 'docs/_build'
no previously-included directories found matching 'docs/_build/_sources'
Adding pip 1.5.6 to easy-install.pth file
Installing pip script to /usr/bin
Installing pip2.7 script to /usr/bin
Installing pip2 script to /usr/bin

Installed /usr/lib/python2.7/site-packages/pip-1.5.6-py2.7.egg
Processing dependencies for pip
Finished processing dependencies for pip

$ which pip

$ pip install selenium
Downloading/unpacking selenium
  Downloading selenium-2.43.0.tar.gz (2.6MB): 2.6MB downloaded
  Running (path:/tmp/pip_build_ph/selenium/ egg_info for package selenium

Installing collected packages: selenium
  Running install for selenium

Successfully installed selenium
Cleaning up...