Hi, Fabric definitely runs as a normal user just fine, in fact I'm pretty sure that is the way almost everybody uses it :) If you've not used any Python based software under your non-root user account, it's possible that you installed it (Python) in such a way that it is owned by root.
It sounds like you have an idea about which aspects of your system are not set up right to run Python as a normal user, so I'd keep going down that road and see what's up. Best, Jeff On Sat, Oct 30, 2010 at 10:42 PM, Yungwei Chen <yung...@resolvity.com> wrote: > 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 > -- Jeff Forcier Unix sysadmin; Python/Ruby developer http://bitprophet.org _______________________________________________ Fab-user mailing list Fab-user@nongnu.org http://lists.nongnu.org/mailman/listinfo/fab-user