[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fab-user] RE: run fab as a user with sudo permission
From: |
Yungwei Chen |
Subject: |
[Fab-user] RE: run fab as a user with sudo permission |
Date: |
Mon, 8 Nov 2010 13:36:06 -0500 |
The following commands works for me:
chgrp fabric -R /usr/lib/python2.6/site-packages/
chmod 0775 /usr/lib/python2.6/site-packages/ -R
To be exact, print out sys.path and make sure each folder in sys.path is
accessible for the non-root user.
-----Original Message-----
From: address@hidden [mailto:address@hidden On Behalf Of Yungwei Chen
Sent: Wednesday, October 27, 2010 3:32 PM
To: address@hidden
Subject: [Fab-user] run fab as a user with sudo permission
Hi,
I have been using root to run fab commands without problems.
Now I want to be able to run the same as a user with sudo permissions.
However, doing that gives me the following error. How can I fix it? Thanks.
Traceback (most recent call last):
File "/usr/bin/fab", line 5, in <module>
from pkg_resources import load_entry_point
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 2655, in
<module>
working_set.require(__requires__)
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 648, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 546, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: Fabric==0.9.2
_______________________________________________
Fab-user mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/fab-user