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: 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