[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: |
Sat, 30 Oct 2010 22:42:55 -0400 |
One question: If fabric 0.9.2 is installed properly, I should be able to run
fab as a regular user with sudo permission, correct?
In my case, that's not happening because Fabric and its dependencies are not
available to a regular user with sudo permission. A environment variable,
PYTHONPATH, must be set properly. Plus, appropriate permissions of the folders
defined in PYTHONPATH must be granted to the regular 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