GIDForums  

Go Back   GIDForums > Computer Programming Forums > Python Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 27-Jun-2009, 06:18
trihaitran trihaitran is offline
New Member
 
Join Date: Aug 2008
Posts: 5
trihaitran is on a distinguished road

Problem installing Pylons on OS X


I am reading chapter two of the Pylons book (http://pylonsbook.com/en/1.0/installing-pylons.html#quick-start-to-installation-for-the-impatient). In the text I am told to run:

Code:
$ python virtualenv.py --no-site-packages env

This is what I got back:

Code:
$ python virtualenv.py --no-site-packages env New python executable in env/bin/python Installing setuptools........... Complete output from command env/bin/python -c "#!python \"\"\"Bootstrap setuptoo... " --always-copy -U setuptools: Traceback (most recent call last): File "<string>", line 270, in <module> File "<string>", line 198, in main File "/Library/Python/2.5/site-packages/setuptools-0.6c9-py2.5.egg/setuptools/__init__.py", line 2, in <module> File "/Library/Python/2.5/site-packages/setuptools-0.6c9-py2.5.egg/setuptools/extension.py", line 1, in <module> File "/Users/haitran/Desktop/env/lib/python2.5/distutils/__init__.py", line 14, in <module> exec open(os.path.join(distutils_path, '__init__.py')).read() IOError: [Errno 2] No such file or directory: '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/__init__.py' ---------------------------------------- ...Installing setuptools...done. Traceback (most recent call last): File "virtualenv.py", line 1230, in <module> main() File "virtualenv.py", line 420, in main unzip_setuptools=options.unzip_setuptools) File "virtualenv.py", line 507, in create_environment install_setuptools(py_executable, unzip=unzip_setuptools) File "virtualenv.py", line 295, in install_setuptools cwd=cwd) File "virtualenv.py", line 481, in call_subprocess % (cmd_desc, proc.returncode)) OSError: Command env/bin/python -c "#!python \"\"\"Bootstrap setuptoo... " --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.
  #2  
Old 28-Jun-2009, 00:51
crystalattice's Avatar
crystalattice crystalattice is offline
Aspiring author
 
Join Date: Apr 2004
Location: Japan (again)
Posts: 1,628
crystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nice

Re: Problem installing Pylons on OS X


I can't say for certain but it looks like it's saying that your OS environment doesn't have Python listed in the expected location.

Have you updated your Python installation or are you using the default that comes with OS X? The version that comes with Macs isn't the latest and Apple doesn't provide Python updates, AFAIK. See the Python site for more info.

Plus, I noticed that some Python programs wouldn't run correctly on my Mac until I updated it. I think the default environment for Macs is slightly different than other OSes. Much of the Python development is done on Linux, so the install location is probably different than Unix-based OSes, like Macs.

I'd recommend upgrading Python and trying again to see if that fixes your problem.
__________________
Start Programming with Python-A beginner's guide to programming and the Python language.
-------------
Common Sense v2.0-Striving to make the world a little bit smarter.
 
 

Recent GIDBlogProblems with the Navy (Chiefs) by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem installing nam 1.13 sagarnatekar Computer Software Forum - Linux 3 22-Jan-2009 20:26
Problem installing ns2.26 in debian4.0r5 seshupriya Computer Software Forum - Linux 1 10-Nov-2008 20:38
OS X Tiger 'make' problem. _Sensible FLTK Forum 1 16-Aug-2008 14:36
Installing problem for linux moin_373 Computer Software Forum - Linux 2 21-Feb-2007 08:26
a significant problem after installing Xp mohammad Computer Software Forum - Windows 10 09-Aug-2005 08:03

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 06:15.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.