|
From: | Steve Steiner (listsin) |
Subject: | Re: [Fab-user] Collecting output when using Fabric directly in python |
Date: | Sun, 16 Aug 2009 23:03:46 -0400 |
On Aug 16, 2009, at 6:46 PM, Yann Malet wrote: Hello Steve, I think you mean: # fab quickstart I get: (~/work/fabric_factory)# fab quickstart /Library/Python/2.6/site-packages/pycrypto-2.0.1-py2.6-macosx-10.6-universal.egg/Crypto/Hash/SHA.py:6: DeprecationWarning: the sha module is deprecated; use the hashlib module instead import warnings /Library/Python/2.6/site-packages/pycrypto-2.0.1-py2.6-macosx-10.6-universal.egg/Crypto/Hash/MD5.py:6: DeprecationWarning: the md5 module is deprecated; use hashlib instead import warnings [localhost] run: virtualenv ve [localhost] run: . ve/bin/activate; easy_install pip [localhost] run: . ve/bin/activate; pip install -r requirements.txt [localhost] run: ln -s /Users/ssteiner/work/fabric_factory/src/project /Users/ssteiner/work/fabric_factory/ve/lib/python2.6/site-packages/project Fatal error: local() encountered an error (return code 1) while executing 'ln -s /Users/ssteiner/work/fabric_factory/src/project /Users/ssteiner/work/fabric_factory/ve/lib/python2.6/site-packages/project' Aborting. ------------------------- The reason, for me, is that you've hard-coded "python2.6" in the path in the project_linkage() function. My default virtualenv is not python2.6. Sorry, I've not got time right now to submit a patch but the other thing I changed, to make sure that the script didn't try to create the virtualenv again was: def bootstrap(): """ Create a virtual env called ve and install pip """ if not os.path.exists("./ve"): local('virtualenv ve') local('. ve/bin/activate; easy_install pip') else: print "No need to create virtualenv, 've' already exists" I didn't mess around with the rest of it. Please let me know when you've got a new version up. Sounds like a great idea! Thanks, S aka/ssteiner aka/steve steiner |
[Prev in Thread] | Current Thread | [Next in Thread] |