By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,100 Members | 2,495 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,100 IT Pros & Developers. It's quick & easy.

Problem installing Pylons on OS X

P: 7
I am reading chapter two of the Pylons book. In the text I am told to run:

Expand|Select|Wrap|Line Numbers
  1. $ python virtualenv.py --no-site-packages env
This is what I got back:

Expand|Select|Wrap|Line Numbers
  1. $ python virtualenv.py --no-site-packages env
  2. New python executable in env/bin/python
  3. Installing setuptools...........
  4.   Complete output from command env/bin/python -c "#!python
  5. \"\"\"Bootstrap setuptoo...
  6.  
  7.  
  8.  
  9.  
  10. " --always-copy -U setuptools:
  11.   Traceback (most recent call last):
  12.   File "<string>", line 270, in <module>
  13.   File "<string>", line 198, in main
  14.   File "/Library/Python/2.5/site-packages/setuptools-0.6c9-py2.5.egg/setuptools/__init__.py", line 2, in <module>
  15.   File "/Library/Python/2.5/site-packages/setuptools-0.6c9-py2.5.egg/setuptools/extension.py", line 1, in <module>
  16.   File "/Users/haitran/Desktop/env/lib/python2.5/distutils/__init__.py", line 14, in <module>
  17.     exec open(os.path.join(distutils_path, '__init__.py')).read()
  18. IOError: [Errno 2] No such file or directory: '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/__init__.py'
  19. ----------------------------------------
  20. ...Installing setuptools...done.
  21. Traceback (most recent call last):
  22.   File "virtualenv.py", line 1230, in <module>
  23.     main()
  24.   File "virtualenv.py", line 420, in main
  25.     unzip_setuptools=options.unzip_setuptools)
  26.   File "virtualenv.py", line 507, in create_environment
  27.     install_setuptools(py_executable, unzip=unzip_setuptools)
  28.   File "virtualenv.py", line 295, in install_setuptools
  29.     cwd=cwd)
  30.   File "virtualenv.py", line 481, in call_subprocess
  31.     % (cmd_desc, proc.returncode))
  32. OSError: Command env/bin/python -c "#!python
  33. \"\"\"Bootstrap setuptoo...
  34.  
  35.  
  36.  
  37.  
  38. " --always-copy -U setuptools failed with error code 1
What does this mean? I know this must be an easy problem since it's the first thing in the book, but this makes no sense to me. I am running Python 2.5.1 on Mac OS 10.5.7.
Jun 27 '09 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.