fab-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Fab-user] fabric on os x


From: Kurt Spindler
Subject: Re: [Fab-user] fabric on os x
Date: Wed, 30 Jul 2014 21:58:26 -0700

Do a `which fab`, and edit/view that file. Note that the first line of the script is (for me at least)

#!/usr/bin/python

Now do a `which python`, and I'm willing to guess yours points to somewhere else (possibly /usr/local/bin/python).

Change that she-bang line to whatever the output of `which python`, and that should probably fix it. Alternatively, you can change the line to `#!/usr/bin/env python`.

Cheers,
Kurt




On Wed, Jul 30, 2014 at 7:05 AM, David Salib <address@hidden> wrote:
Hello,

I can't get fabric to work on os x.

I installed it using :

$ pip install fabric

paramiko is at the latest version :

$ pip show paramiko
---
Name: paramiko
Version: 1.14.0
Location: /Library/Python/2.7/site-packages
Requires: pycrypto, ecdsa

yet this happens when I try to run a simple hello world :
-- fabfile.py
def hello():
    print ('hello world')
--

$ fab hello
Traceback (most recent call last):
  File "/usr/local/bin/fab", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py",
line 2603, in <module>
    working_set.require(__requires__)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py",
line 666, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py",
line 565, in resolve
    raise DistributionNotFound(req)  # XXX put more info here
pkg_resources.DistributionNotFound: paramiko>=1.10

I'm pretty new to python so my setup might be erroneous, but I did see
this https://github.com/fabric/fabric/commit/e82aaf4dee89c62b3a629af5d0157a8fe64bedf0
and wondered if it might be related.

Regards,

--
David Salib

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]