0

hi all, glad I found this site. I hope you all can help me out with this little problem. First, my environment:
Mac OSX 10.5.5
Python 2.6 (compiled from source, not using macports)
basedir: /usr/local/bin/python; /usr/local/lib/python2.6

Following the proper directions on how to install setuptools (from here http://pypi.python.org/pypi/setuptools#cygwin-mac-os-x-linux-other)

bash-3.2# sh setuptools-0.6c9-py2.6.egg -a
Creating /usr/local/lib/python2.6/site-packages/site.py
Processing setuptools-0.6c9-py2.6.egg
Copying setuptools-0.6c9-py2.6.egg to /usr/local/lib/python2.6/site-packages
Adding setuptools 0.6c9 to easy-install.pth file
Installing easy_install script to /usr/local/bin
Installing easy_install-2.6 script to /usr/local/bin

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

works no problem. I can then, use easy_install to install "virtualenv", again no problem.

bash-3.2# easy_install virtualenv
Searching for virtualenv
Reading http://pypi.python.org/simple/virtualenv/
Best match: virtualenv 1.3
Downloading http://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.3.tar.gz#md5=36b766604542f2c34d8dffdb21ba14a9
Processing virtualenv-1.3.tar.gz
Running virtualenv-1.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-JAFFE3/virtualenv-1.3/egg-dist-tmp-Zqj4WK
Adding virtualenv 1.3 to easy-install.pth file
Installing virtualenv script to /usr/local/bin

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

Now, when I attempt to create a new virtual environment, no matter what I do I get the following errors (ran it in verbose mode):

bash-3.2# virtualenv -v testenv 
Creating testenv/lib/python2.6
Symlinking Python bootstrap modules
  Symlinking testenv/lib/python2.6/_abcoll.py
  Symlinking testenv/lib/python2.6/_abcoll.pyc
  Symlinking testenv/lib/python2.6/_abcoll.pyo
  Symlinking testenv/lib/python2.6/abc.py
  Symlinking testenv/lib/python2.6/abc.pyc
  Symlinking testenv/lib/python2.6/abc.pyo
  Symlinking testenv/lib/python2.6/codecs.py
  Symlinking testenv/lib/python2.6/codecs.pyc
  Symlinking testenv/lib/python2.6/codecs.pyo
  Symlinking testenv/lib/python2.6/config
  Symlinking testenv/lib/python2.6/copy_reg.py
  Symlinking testenv/lib/python2.6/copy_reg.pyc
  Symlinking testenv/lib/python2.6/copy_reg.pyo
  Symlinking testenv/lib/python2.6/encodings
  Symlinking testenv/lib/python2.6/fnmatch.py
  Symlinking testenv/lib/python2.6/fnmatch.pyc
  Symlinking testenv/lib/python2.6/fnmatch.pyo
  Symlinking testenv/lib/python2.6/genericpath.py
  Symlinking testenv/lib/python2.6/genericpath.pyc
  Symlinking testenv/lib/python2.6/genericpath.pyo
  Symlinking testenv/lib/python2.6/lib-dynload
  Symlinking testenv/lib/python2.6/linecache.py
  Symlinking testenv/lib/python2.6/linecache.pyc
  Symlinking testenv/lib/python2.6/linecache.pyo
  Symlinking testenv/lib/python2.6/locale.py
  Symlinking testenv/lib/python2.6/locale.pyc
  Symlinking testenv/lib/python2.6/locale.pyo
  Symlinking testenv/lib/python2.6/ntpath.py
  Symlinking testenv/lib/python2.6/ntpath.pyc
  Symlinking testenv/lib/python2.6/ntpath.pyo
  Symlinking testenv/lib/python2.6/os.py
  Symlinking testenv/lib/python2.6/os.pyc
  Symlinking testenv/lib/python2.6/os.pyo
  Symlinking testenv/lib/python2.6/posixpath.py
  Symlinking testenv/lib/python2.6/posixpath.pyc
  Symlinking testenv/lib/python2.6/posixpath.pyo
  Symlinking testenv/lib/python2.6/re.py
  Symlinking testenv/lib/python2.6/re.pyc
  Symlinking testenv/lib/python2.6/re.pyo
  Symlinking testenv/lib/python2.6/sre.py
  Symlinking testenv/lib/python2.6/sre.pyc
  Symlinking testenv/lib/python2.6/sre.pyo
  Symlinking testenv/lib/python2.6/sre_compile.py
  Symlinking testenv/lib/python2.6/sre_compile.pyc
  Symlinking testenv/lib/python2.6/sre_compile.pyo
  Symlinking testenv/lib/python2.6/sre_constants.py
  Symlinking testenv/lib/python2.6/sre_constants.pyc
  Symlinking testenv/lib/python2.6/sre_constants.pyo
  Symlinking testenv/lib/python2.6/sre_parse.py
  Symlinking testenv/lib/python2.6/sre_parse.pyc
  Symlinking testenv/lib/python2.6/sre_parse.pyo
  Symlinking testenv/lib/python2.6/stat.py
  Symlinking testenv/lib/python2.6/stat.pyc
  Symlinking testenv/lib/python2.6/stat.pyo
  Symlinking testenv/lib/python2.6/types.py
  Symlinking testenv/lib/python2.6/types.pyc
  Symlinking testenv/lib/python2.6/types.pyo
  Symlinking testenv/lib/python2.6/UserDict.py
  Symlinking testenv/lib/python2.6/UserDict.pyc
  Symlinking testenv/lib/python2.6/UserDict.pyo
  Symlinking testenv/lib/python2.6/warnings.py
  Symlinking testenv/lib/python2.6/warnings.pyc
  Symlinking testenv/lib/python2.6/warnings.pyo
Symlinking Python bootstrap modules
Creating testenv/lib/python2.6/site-packages
Writing testenv/lib/python2.6/site.py
Writing testenv/lib/python2.6/orig-prefix.txt
Creating parent directories for testenv/include
Symlinking testenv/include/python2.6
Creating testenv/bin
New python executable in testenv/bin/python2.6
Changed mode of testenv/bin/python2.6 to 0755
Also creating executable in testenv/bin/python
Changed mode of testenv/bin/python to 0755
Testing executable with testenv/bin/python2.6 -c "import sys; print sys.prefix"
Got sys.prefix result: '/private/var/tmp/testenv'
Creating testenv/lib/python2.6/distutils
Writing testenv/lib/python2.6/distutils/__init__.py
Writing testenv/lib/python2.6/distutils/distutils.cfg
No Setuptools egg found; downloading
Installing setuptools...
  Downloading http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c8-py2.6.egg
  Traceback (most recent call last):
    File "<string>", line 267, in <module>
    File "<string>", line 198, in main
    File "<string>", line 146, in download_setuptools
    File "/usr/local/lib/python2.6/urllib2.py", line 124, in urlopen
      return _opener.open(url, data, timeout)
    File "/usr/local/lib/python2.6/urllib2.py", line 389, in open
      response = meth(req, response)
    File "/usr/local/lib/python2.6/urllib2.py", line 502, in http_response
      'http', request, response, code, msg, hdrs)
    File "/usr/local/lib/python2.6/urllib2.py", line 427, in error
      return self._call_chain(*args)
    File "/usr/local/lib/python2.6/urllib2.py", line 361, in _call_chain
      result = func(*args)
    File "/usr/local/lib/python2.6/urllib2.py", line 510, in http_error_default
      raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
  urllib2.HTTPError: HTTP Error 404: Not Found
  Complete output from command testenv/bin/python2.6 -c "#!python
\"\"\"Bootstrap setuptoo...




" --always-copy -U setuptools:
  Downloading http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c8-py2.6.egg
Traceback (most recent call last):
  File "<string>", line 267, in <module>
  File "<string>", line 198, in main
  File "<string>", line 146, in download_setuptools
  File "/usr/local/lib/python2.6/urllib2.py", line 124, in urlopen
    return _opener.open(url, data, timeout)
  File "/usr/local/lib/python2.6/urllib2.py", line 389, in open
    response = meth(req, response)
  File "/usr/local/lib/python2.6/urllib2.py", line 502, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/local/lib/python2.6/urllib2.py", line 427, in error
    return self._call_chain(*args)
  File "/usr/local/lib/python2.6/urllib2.py", line 361, in _call_chain
    result = func(*args)
  File "/usr/local/lib/python2.6/urllib2.py", line 510, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 404: Not Found
----------------------------------------
...Installing setuptools...done.
Traceback (most recent call last):
  File "/usr/local/bin/virtualenv", line 8, in <module>
    load_entry_point('virtualenv==1.3', 'console_scripts', 'virtualenv')()
  File "/usr/local/lib/python2.6/site-packages/virtualenv-1.3-py2.6.egg/virtualenv.py", line 400, in main
    unzip_setuptools=options.unzip_setuptools)
  File "/usr/local/lib/python2.6/site-packages/virtualenv-1.3-py2.6.egg/virtualenv.py", line 649, in create_environment
    install_setuptools(py_executable, unzip=unzip_setuptools)
  File "/usr/local/lib/python2.6/site-packages/virtualenv-1.3-py2.6.egg/virtualenv.py", line 282, in install_setuptools
    cwd=cwd)
  File "/usr/local/lib/python2.6/site-packages/virtualenv-1.3-py2.6.egg/virtualenv.py", line 461, in call_subprocess
    % (cmd_desc, proc.returncode))
OSError: Command testenv/bin/python2.6 -c "#!python
\"\"\"Bootstrap setuptoo...




" --always-copy -U setuptools failed with error code 1
bash-3.2#

No matter what I do I come up against the same errors above. As a note, I installed setuptools already (from above) and I see the egg:

bash-3.2# ls -lahtr /usr/local/lib/python2.6/site-packages/
total 680
drwxr-xr-x  632 root  wheel    21K Nov 15 23:18 ..
-rw-r--r--    1 root  wheel   320K Nov 16 16:17 setuptools-0.6c9-py2.6.egg
-rw-r--r--    1 root  wheel   1.7K Nov 16 17:10 site.pyc
-rw-r--r--    1 root  wheel   2.3K Nov 16 17:10 site.py
-rw-r--r--    1 root  wheel    29B Nov 16 17:10 setuptools.pth
drwxr-xr-x    9 root  wheel   306B Nov 16 17:12 virtualenv-1.3-py2.6.egg
-rw-r--r--    1 root  wheel   241B Nov 16 17:12 easy-install.pth
drwxr-xr-x    8 root  wheel   272B Nov 16 17:12 .

Has anyone seen this before? anyone have any suggestions? kind of at a point where I don't know what to do next...

Thanks,
Mason

2
Contributors
1
Reply
2
Views
8 Years
Discussion Span
Last Post by woooee
0

Installing setuptools...
Downloading http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c8-py2.6.egg <===== BAD URL - try it yourself
Traceback (most recent call last):
File "<string>", line 267, in <module>
File "<string>", line 198, in main
File "<string>", line 146, in download_setuptools
File "/usr/local/lib/python2.6/urllib2.py", line 124, in urlopen
return _opener.open(url, data, timeout)
File "/usr/local/lib/python2.6/urllib2.py", line 389, in open
response = meth(req, response)
File "/usr/local/lib/python2.6/urllib2.py", line 502, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/local/lib/python2.6/urllib2.py", line 427, in error
return self._call_chain(*args)
File "/usr/local/lib/python2.6/urllib2.py", line 361, in _call_chain
result = func(*args)
File "/usr/local/lib/python2.6/urllib2.py", line 510, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 404: Not Found
*****************************

If appears that the URL to download
setuptools is no longer valid. This page says that you don't have to use setuptools but can just move the files yourself. I haven't used it so I don't know. http://wiki.pylonshq.com/display/pylonscookbook/Using+a+Virtualenv+Sandbox You could also install setuptools yourself.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.