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: fab-user-bounces+yungwei=resolvity....@nongnu.org 
[mailto:fab-user-bounces+yungwei=resolvity....@nongnu.org] On Behalf Of Yungwei 
Chen
Sent: Wednesday, October 27, 2010 3:32 PM
To: fab-user@nongnu.org
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
Fab-user@nongnu.org
http://lists.nongnu.org/mailman/listinfo/fab-user

_______________________________________________
Fab-user mailing list
Fab-user@nongnu.org
http://lists.nongnu.org/mailman/listinfo/fab-user

Reply via email to