Installing Selenium on Cygwin
Jump to navigation
Jump to search
Getting Started with Selenium on Cygwin
Check out:
- http://code.google.com/p/selenium/
- http://seleniumhq.org/download/
- http://pypi.python.org/pypi/selenium
Download and Install
plh@mira /c/Downloads $ which pip /usr/bin/pip plh@mira /c/Downloads $ pip Usage: pip COMMAND [OPTIONS] pip: error: You must give a command (use "pip help" to see a list of commands) plh@mira /c/Downloads $ pip help Usage: pip COMMAND [OPTIONS] Options: --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 password. --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 setup.py egg_info for package selenium /usr/lib/python2.6/distutils/dist.py:266: UserWarning: Unknown distribution option: 'src_root' warnings.warn(msg) warning: no files found matching '__init__.py' Downloading/unpacking rdflib==3.1.0 (from selenium) Downloading rdflib-3.1.0.tar.gz (249Kb): 249Kb downloaded Running setup.py 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 setup.py egg_info Exception: Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/pip-1.0.2-py2.6.egg/pip/basecommand.py", line 126, in main self.run(options, args) File "/usr/lib/python2.6/site-packages/pip-1.0.2-py2.6.egg/pip/commands/install.py", 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/req.py", line 986, in prepare_files req_to_install.run_egg_info() File "/usr/lib/python2.6/site-packages/pip-1.0.2-py2.6.egg/pip/req.py", line 222, in run_egg_info command_desc='python setup.py egg_info') File "/usr/lib/python2.6/site-packages/pip-1.0.2-py2.6.egg/pip/__init__.py", line 220, in call_subprocess cwd=cwd, env=env) File "/usr/lib/python2.6/subprocess.py", line 633, in __init__ errread, errwrite) File "/usr/lib/python2.6/subprocess.py", line 1049, in _execute_child self.pid = os.fork() OSError: [Errno 11] Resource temporarily unavailable Storing complete log in /home/plh/.pip/pip.log
Looks like a problem...
More Recently
$ wget http://peak.telecommunity.com/dist/ez_setup.py --2014-10-23 10:05:51-- http://peak.telecommunity.com/dist/ez_setup.py Resolving peak.telecommunity.com (peak.telecommunity.com)... 209.190.5.234 Connecting to peak.telecommunity.com (peak.telecommunity.com)|209.190.5.234|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 10240 (10K) [text/plain] Saving to: 'ez_setup.py' 100%[==========================================================>] 10,240 22.1KB/s in 0.5s 2014-10-23 10:05:56 (22.1 KB/s) - 'ez_setup.py' saved [10240/10240] $ ./ez_setup.py -U setuptools Searching for distribute Reading http://pypi.python.org/simple/distribute/ Best match: distribute 0.7.3 Downloading https://pypi.python.org/packages/source/d/distribute/distribute-0.7.3.zip#md5=c6c59594a7 b180af57af8a0cc0cf5b4a Processing distribute-0.7.3.zip Writing /tmp/easy_install-IeV1tm/distribute-0.7.3/setup.cfg Running distribute-0.7.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-IeV1tm/distribute-0.7.3/ egg-dist-tmp-5VVXj2 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 Reading http://pypi.python.org/simple/setuptools/ Best match: setuptools 7.0 Downloading https://pypi.python.org/packages/source/s/setuptools/setuptools-7.0.zip#md5=5771b7ab257e 70603e620b2313d1e971 Processing setuptools-7.0.zip Writing /tmp/easy_install-53sYE4/setuptools-7.0/setup.cfg Running setuptools-7.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-53sYE4/setuptools-7.0/egg- dist-tmp-nGYN2n 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 $ ./ez_setup.py pip Searching for pip Reading https://pypi.python.org/simple/pip/ Best match: pip 1.5.6 Downloading https://pypi.python.org/packages/source/p/pip/pip-1.5.6.tar.gz#md5=01026f87978932060cc86 c1dc527903e Processing pip-1.5.6.tar.gz Writing /tmp/easy_install-RCzeaE/pip-1.5.6/setup.cfg Running pip-1.5.6/setup.py -q bdist_egg --dist-dir /tmp/easy_install-RCzeaE/pip-1.5.6/egg-dist-tmp-L FGt0_ 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 /usr/bin/pip $ pip install selenium Downloading/unpacking selenium Downloading selenium-2.43.0.tar.gz (2.6MB): 2.6MB downloaded Running setup.py (path:/tmp/pip_build_ph/selenium/setup.py) egg_info for package selenium Installing collected packages: selenium Running setup.py install for selenium Successfully installed selenium Cleaning up...