Difference between revisions of "Python - virtualenv"

From PeformIQ Upgrade
Jump to navigation Jump to search
(Created page with 'virtualenv')
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
virtualenv
=Installing - Including Pre-requisites=
 
Found the following reference which suggested setting up a selection of tools for managing Python environment - http://atbrox.com/2009/09/21/how-to-get-pipvirtualenvfabric-working-on-cygwin/
 
 
I actually got this all working but haven't got around to fixing the following transcript.
 
<pre>
$ sh setuptools-0.6c11-py2.6.egg
Processing setuptools-0.6c11-py2.6.egg
Copying setuptools-0.6c11-py2.6.egg to /usr/lib/python2.6/site-packages
Adding setuptools 0.6c11 to easy-install.pth file
Installing easy_install script to /usr/bin
Installing easy_install-2.6 script to /usr/bin
 
Installed /usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg
Processing dependencies for setuptools==0.6c11
Finished processing dependencies for setuptools==0.6c11
 
 
$ easy_install pip
Searching for pip
Reading http://pypi.python.org/simple/pip/
Reading http://www.pip-installer.org
Reading http://pip.openplans.org
Best match: pip 1.0.2
Downloading http://pypi.python.org/packages/source/p/pip/pip-1.0.2.tar.gz#md5=47ec6ff3f6d962696fe08d4c8264ad49
Processing pip-1.0.2.tar.gz
Running pip-1.0.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-qJJuzo/pip-1.0.2/egg-dist-tmp-QQI4ww
warning: no files found matching '*.html' under directory 'docs'
warning: no previously-included files matching '*.txt' found under directory 'docs/_build'
no previously-included directories found matching 'docs/_build/_sources'
Adding pip 1.0.2 to easy-install.pth file
Installing pip script to /usr/bin
Installing pip-2.6 script to /usr/bin
 
Installed /usr/lib/python2.6/site-packages/pip-1.0.2-py2.6.egg
Processing dependencies for pip
Finished processing dependencies for pip
 
 
$ easy_install virtualenv
Searching for virtualenv
Reading http://pypi.python.org/simple/virtualenv/
Reading http://virtualenv.openplans.org
Reading http://www.virtualenv.org
Best match: virtualenv 1.6.4
Downloading http://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.6.4.tar.gz#md5=1072b66d53c24e019a8f1304ac9d9fc5
Processing virtualenv-1.6.4.tar.gz
Running virtualenv-1.6.4/setup.py -q bdist_egg --dist-dir /tmp/easy_install-XyGwAX/virtualenv-1.6.4/egg-dist-tmp-vvaaMY
warning: no previously-included files matching '*.*' found under directory 'docs/_templates'
Adding virtualenv 1.6.4 to easy-install.pth file
Installing virtualenv script to /usr/bin
 
Installed /usr/lib/python2.6/site-packages/virtualenv-1.6.4-py2.6.egg
Processing dependencies for virtualenv
Finished processing dependencies for virtualenv
 
 
$ easy_install virtualenvwrapper
Searching for virtualenvwrapper
Reading http://pypi.python.org/simple/virtualenvwrapper/
Reading http://www.doughellmann.com/projects/virtualenvwrapper/
Best match: virtualenvwrapper 2.7.1
Downloading http://pypi.python.org/packages/source/v/virtualenvwrapper/virtualenvwrapper-2.7.1.tar.gz#md5=b01930b245b2beb9fe2ce69a4b0e0f25
Processing virtualenvwrapper-2.7.1.tar.gz
Running virtualenvwrapper-2.7.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-W6YJ3r/virtualenvwrapper-2.7.1/egg-dist-tmp-q0o_PM
Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.10.tar.gz
Extracting in /tmp/easy_install-W6YJ3r/virtualenvwrapper-2.7.1/temp/tmpxf4pQi
Now working in /tmp/easy_install-W6YJ3r/virtualenvwrapper-2.7.1/temp/tmpxf4pQi/distribute-0.6.10
Building a Distribute egg in /tmp/easy_install-W6YJ3r/virtualenvwrapper-2.7.1
      0 [main] python2.6 1520 D:\cygwin\bin\python2.6.exe: *** fatal error - unable to remap \\?\D:\cygwin\lib\python2.6\lib-dynload\select.dll to same address as parent: 0x420000 != 0x760000
Stack trace:
Frame    Function  Args
00287D58  6102796B  (00287D58, 00000000, 00000000, 00000000)
00288048  6102796B  (6117EC60, 00008000, 00000000, 61180977)
00289078  61004F1B  (611A7FAC, 6124AE3C, 00420000, 00760000)
End of stack trace
      0 [main] python2.6 4984 fork: child 1520 - died waiting for dll loading, errno 11
error: Resource temporarily unavailable
</pre>
 
Well that didn't work!
 
[[Category:Python]]
[[Category:Selenium]]

Latest revision as of 12:01, 4 January 2012

Installing - Including Pre-requisites

Found the following reference which suggested setting up a selection of tools for managing Python environment - http://atbrox.com/2009/09/21/how-to-get-pipvirtualenvfabric-working-on-cygwin/


I actually got this all working but haven't got around to fixing the following transcript.

$ sh setuptools-0.6c11-py2.6.egg 
Processing setuptools-0.6c11-py2.6.egg
Copying setuptools-0.6c11-py2.6.egg to /usr/lib/python2.6/site-packages
Adding setuptools 0.6c11 to easy-install.pth file
Installing easy_install script to /usr/bin
Installing easy_install-2.6 script to /usr/bin

Installed /usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg
Processing dependencies for setuptools==0.6c11
Finished processing dependencies for setuptools==0.6c11


$ easy_install pip
Searching for pip
Reading http://pypi.python.org/simple/pip/
Reading http://www.pip-installer.org
Reading http://pip.openplans.org
Best match: pip 1.0.2
Downloading http://pypi.python.org/packages/source/p/pip/pip-1.0.2.tar.gz#md5=47ec6ff3f6d962696fe08d4c8264ad49
Processing pip-1.0.2.tar.gz
Running pip-1.0.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-qJJuzo/pip-1.0.2/egg-dist-tmp-QQI4ww
warning: no files found matching '*.html' under directory 'docs'
warning: no previously-included files matching '*.txt' found under directory 'docs/_build'
no previously-included directories found matching 'docs/_build/_sources'
Adding pip 1.0.2 to easy-install.pth file
Installing pip script to /usr/bin
Installing pip-2.6 script to /usr/bin

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


$ easy_install virtualenv
Searching for virtualenv
Reading http://pypi.python.org/simple/virtualenv/
Reading http://virtualenv.openplans.org
Reading http://www.virtualenv.org
Best match: virtualenv 1.6.4
Downloading http://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.6.4.tar.gz#md5=1072b66d53c24e019a8f1304ac9d9fc5
Processing virtualenv-1.6.4.tar.gz
Running virtualenv-1.6.4/setup.py -q bdist_egg --dist-dir /tmp/easy_install-XyGwAX/virtualenv-1.6.4/egg-dist-tmp-vvaaMY
warning: no previously-included files matching '*.*' found under directory 'docs/_templates'
Adding virtualenv 1.6.4 to easy-install.pth file
Installing virtualenv script to /usr/bin

Installed /usr/lib/python2.6/site-packages/virtualenv-1.6.4-py2.6.egg
Processing dependencies for virtualenv
Finished processing dependencies for virtualenv


$ easy_install virtualenvwrapper
Searching for virtualenvwrapper
Reading http://pypi.python.org/simple/virtualenvwrapper/
Reading http://www.doughellmann.com/projects/virtualenvwrapper/
Best match: virtualenvwrapper 2.7.1
Downloading http://pypi.python.org/packages/source/v/virtualenvwrapper/virtualenvwrapper-2.7.1.tar.gz#md5=b01930b245b2beb9fe2ce69a4b0e0f25
Processing virtualenvwrapper-2.7.1.tar.gz
Running virtualenvwrapper-2.7.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-W6YJ3r/virtualenvwrapper-2.7.1/egg-dist-tmp-q0o_PM
Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.10.tar.gz
Extracting in /tmp/easy_install-W6YJ3r/virtualenvwrapper-2.7.1/temp/tmpxf4pQi
Now working in /tmp/easy_install-W6YJ3r/virtualenvwrapper-2.7.1/temp/tmpxf4pQi/distribute-0.6.10
Building a Distribute egg in /tmp/easy_install-W6YJ3r/virtualenvwrapper-2.7.1
      0 [main] python2.6 1520 D:\cygwin\bin\python2.6.exe: *** fatal error - unable to remap \\?\D:\cygwin\lib\python2.6\lib-dynload\select.dll to same address as parent: 0x420000 != 0x760000
Stack trace:
Frame     Function  Args
00287D58  6102796B  (00287D58, 00000000, 00000000, 00000000)
00288048  6102796B  (6117EC60, 00008000, 00000000, 61180977)
00289078  61004F1B  (611A7FAC, 6124AE3C, 00420000, 00760000)
End of stack trace
      0 [main] python2.6 4984 fork: child 1520 - died waiting for dll loading, errno 11
error: Resource temporarily unavailable

Well that didn't work!