Discussion:
[Fab-user] How to install fabric on mac 10.9
David
2014-04-02 07:55:13 UTC
Permalink
Hi, Dear all:

I try to install fabric on my mac 10.9.2, But I got failed. The steps are as follows:

Follows the steps on the page:http://docs.fabfile.org/en/1.8/installation.html
***@firstMBP:~# pip install fabric
Requirement already satisfied (use --upgrade to upgrade): fabric in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Fabric-1.8.3-py2.7.egg
Requirement already satisfied (use --upgrade to upgrade): paramiko>=1.10,<1.13 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from fabric)
Requirement already satisfied (use --upgrade to upgrade): pycrypto>=2.1,!=2.4 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from paramiko>=1.10, <1.13->fabric)
Requirement already satisfied (use --upgrade to upgrade): ecdsa in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from paramiko>=1.10,<1.13->fabric)
Cleaning up…
3. ***@firstMBP:~# fab
bash: fab: command not found

I have no idea about how to install fabric on mac 10.9.2, Do you have any idea?

Thanks a lot

David
Rahul Menon
2014-04-02 15:24:00 UTC
Permalink
Looks like you dont have fab in your path.

You may need to have PYTHONPATH to your profile.

Rahul
Post by David
http://docs.fabfile.org/en/1.8/installation.html
Requirement already satisfied (use --upgrade to upgrade): fabric in
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Fabric-1.8.3-py2.7.egg
paramiko>=1.10,<1.13 in
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
(from fabric)
pycrypto>=2.1,!=2.4 in
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
(from paramiko>=1.10, <1.13->fabric)
Requirement already satisfied (use --upgrade to upgrade): ecdsa in
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages
(from paramiko>=1.10,<1.13->fabric)
Cleaning up...
bash: fab: command not found
I have no idea about how to install fabric on mac 10.9.2, Do you have any idea?
Thanks a lot
David
_______________________________________________
Fab-user mailing list
https://lists.nongnu.org/mailman/listinfo/fab-user
David
2014-04-03 03:49:19 UTC
Permalink
~$ which python
/usr/local/bin/python
***@firstMBP:~$ echo $PATH
/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/local/sbin:~/bin:/Users/david/.rvm/gems/ruby-2.0.0-p247/bin:/Users/david/.rvm/gems/ruby-2.0.0-***@global/bin:/Users/david/.rvm/rubies/ruby-2.0.0-p247/bin:/Users/david/.rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/david/Applications/adt-bundle-mac-x86_64-20131030/sdk/platform-tools:/Users/david/Applications/adt-bundle-mac-x86_64-20131030/sdk/tools:~/Library/Python/2.7/bin/


It seems that /usr/local/bin is in my path
Hi Carlton,
Thanks for your response quickly. :)
~$ which python
/usr/local/bin/python
~$ which fab
~$
It seems that the fabric does not successfully to installed on my mac.
~$ sudo easy_install pip
Searching for pip
Best match: pip 1.4.1
Processing pip-1.4.1-py2.7.egg
Removing pip 1.0.2 from easy-install.pth file
Adding pip 1.4.1 to easy-install.pth file
Installing pip script to /Library/Frameworks/Python.framework/Versions/2.7/bin
Installing pip-2.7 script to /Library/Frameworks/Python.framework/Versions/2.7/bin
Using /Library/Python/2.7/site-packages/pip-1.4.1-py2.7.egg
Processing dependencies for pip
Finished processing dependencies for pip
~$ sudo pip install fabric
Requirement already satisfied (use --upgrade to upgrade): fabric in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Fabric-1.8.3-py2.7.egg
Requirement already satisfied (use --upgrade to upgrade): paramiko>=1.10,<1.13 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from fabric)
Requirement already satisfied (use --upgrade to upgrade): pycrypto>=2.1,!=2.4 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from paramiko>=1.10,<1.13->fabric)
Requirement already satisfied (use --upgrade to upgrade): ecdsa in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from paramiko>=1.10,<1.13->fabric)
Cleaning up...
~$ fab
-bash: fab: command not found
~$ which fab
~$
Post by David
bash: fab: command not found
What’s your PATH? — Where’s fabric installed to?
I was going to say have a look in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages but on my system (10.9 as well) it’s /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages — perhaps there’s something there.
For a couple of major versions now I’ve been using “sudo easy_install pip” then “sudo pip install fabric” to bootstrap this[*].
~ $ which fab
/usr/local/bin/fab
~ $ which pip
/usr/local/bin/pip
Hopefully that helps somehow

Regards,
Carlton
[*] The other two I go for globally is virtualenv and virtualenvwrapper. The other time I need easy_install is for readline (when wanting to use IPython) — but I do this from within the virtualenv[**].
[**] Should be able to forget a lot of this soon.
Robin Kåveland Hansen
2014-04-03 07:17:55 UTC
Permalink
If I recall correctly, the location where pip installs executables on OSX changed in 10.9 or it was a brew update.

Can you find the fab executable in /usr/local/share/python ?

--
Vennlig hilsen,
Robin KÃ¥veland Hansen,
Knowit
Post by David
~$ which python
/usr/local/bin/python
It seems that /usr/local/bin is in my path
Hi Carlton,
Thanks for your response quickly. :)
~$ which python
/usr/local/bin/python
~$ which fab
~$
It seems that the fabric does not successfully to installed on my mac.
~$ sudo easy_install pip
Searching for pip
Best match: pip 1.4.1
Processing pip-1.4.1-py2.7.egg
Removing pip 1.0.2 from easy-install.pth file
Adding pip 1.4.1 to easy-install.pth file
Installing pip script to /Library/Frameworks/Python.framework/Versions/2.7/bin
Installing pip-2.7 script to /Library/Frameworks/Python.framework/Versions/2.7/bin
Using /Library/Python/2.7/site-packages/pip-1.4.1-py2.7.egg
Processing dependencies for pip
Finished processing dependencies for pip
~$ sudo pip install fabric
Requirement already satisfied (use --upgrade to upgrade): fabric in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Fabric-1.8.3-py2.7.egg
Requirement already satisfied (use --upgrade to upgrade): paramiko>=1.10,<1.13 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from fabric)
Requirement already satisfied (use --upgrade to upgrade): pycrypto>=2.1,!=2.4 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from paramiko>=1.10,<1.13->fabric)
Requirement already satisfied (use --upgrade to upgrade): ecdsa in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from paramiko>=1.10,<1.13->fabric)
Cleaning up...
~$ fab
-bash: fab: command not found
~$ which fab
~$
Post by David
bash: fab: command not found
What’s your PATH? — Where’s fabric installed to?
I was going to say have a look in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages but on my system (10.9 as well) it’s /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages — perhaps there’s something there.
For a couple of major versions now I’ve been using “sudo easy_install pip” then “sudo pip install fabric” to bootstrap this[*].
~ $ which fab
/usr/local/bin/fab
~ $ which pip
/usr/local/bin/pip
Hopefully that helps somehow

Regards,
Carlton
[*] The other two I go for globally is virtualenv and virtualenvwrapper. The other time I need easy_install is for readline (when wanting to use IPython) — but I do this from within the virtualenv[**].
[**] Should be able to forget a lot of this soon.
_______________________________________________
Fab-user mailing list
https://lists.nongnu.org/mailman/listinfo/fab-user
David
2014-04-03 07:35:55 UTC
Permalink
Hi Robin

I can not find python and fab executable in /usr/local/share directory.

My share directory looks like:

***@firstMBP:/usr/local/share$ pwd
/usr/local/share
***@firstMBP:/usr/local/share$ ll
total 88
drwxrwxr-x 18 24561 admin 612 2 19 14:28 .
drwxrwxr-x 17 root admin 578 2 19 14:22 ..
drwxr-xr-x 14 david admin 476 2 19 14:28 aclocal
lrwxr-xr-x 1 david admin 44 2 19 14:28 aclocal-1.14 -> ../Cellar/automake/1.14.1/share/aclocal-1.14
lrwxr-xr-x 1 david admin 38 12 10 12:42 autoconf -> ../Cellar/autoconf/2.69/share/autoconf
lrwxr-xr-x 1 david admin 45 2 19 14:28 automake-1.14 -> ../Cellar/automake/1.14.1/share/automake-1.14
lrwxr-xr-x 1 david admin 45 12 10 12:44 common-lisp -> ../Cellar/libgpg-error/1.12/share/common-lisp
drwxr-xr-x 5 david admin 170 2 19 14:28 doc
lrwxr-xr-x 1 david admin 35 12 10 12:42 emacs -> ../Cellar/autoconf/2.69/share/emacs
lrwxr-xr-x 1 david admin 37 12 10 16:25 gcc-4.6.4 -> ../Cellar/gcc46/4.6.4/share/gcc-4.6.4
lrwxr-xr-x 1 david admin 36 12 10 12:33 git-core -> ../Cellar/git/1.8.5.1/share/git-core
lrwxr-xr-x 1 david admin 35 12 10 12:33 git-gui -> ../Cellar/git/1.8.5.1/share/git-gui
lrwxr-xr-x 1 david admin 32 12 10 12:33 gitk -> ../Cellar/git/1.8.5.1/share/gitk
lrwxr-xr-x 1 david admin 34 12 10 12:33 gitweb -> ../Cellar/git/1.8.5.1/share/gitweb
drwxr-xr-x 4 root admin 136 12 30 12:32 info
lrwxr-xr-x 1 david admin 37 12 10 12:42 libtool -> ../Cellar/libtool/2.4.2/share/libtool
drwxrwxr-x 7 24561 admin 238 4 3 12:04 man
drwxr-xr-x 3 david admin 102 12 10 12:33 zsh
Post by Robin KÃ¥veland Hansen
If I recall correctly, the location where pip installs executables on OSX changed in 10.9 or it was a brew update.
Can you find the fab executable in /usr/local/share/python ?
--
Vennlig hilsen,
Robin KÃ¥veland Hansen,
Knowit
Post by David
~$ which python
/usr/local/bin/python
It seems that /usr/local/bin is in my path
Hi Carlton,
Thanks for your response quickly. :)
~$ which python
/usr/local/bin/python
~$ which fab
~$
It seems that the fabric does not successfully to installed on my mac.
~$ sudo easy_install pip
Searching for pip
Best match: pip 1.4.1
Processing pip-1.4.1-py2.7.egg
Removing pip 1.0.2 from easy-install.pth file
Adding pip 1.4.1 to easy-install.pth file
Installing pip script to /Library/Frameworks/Python.framework/Versions/2.7/bin
Installing pip-2.7 script to /Library/Frameworks/Python.framework/Versions/2.7/bin
Using /Library/Python/2.7/site-packages/pip-1.4.1-py2.7.egg
Processing dependencies for pip
Finished processing dependencies for pip
~$ sudo pip install fabric
Requirement already satisfied (use --upgrade to upgrade): fabric in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Fabric-1.8.3-py2.7.egg
Requirement already satisfied (use --upgrade to upgrade): paramiko>=1.10,<1.13 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from fabric)
Requirement already satisfied (use --upgrade to upgrade): pycrypto>=2.1,!=2.4 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from paramiko>=1.10,<1.13->fabric)
Requirement already satisfied (use --upgrade to upgrade): ecdsa in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from paramiko>=1.10,<1.13->fabric)
Cleaning up...
~$ fab
-bash: fab: command not found
~$ which fab
~$
Post by David
bash: fab: command not found
What’s your PATH? — Where’s fabric installed to?
I was going to say have a look in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages but on my system (10.9 as well) it’s /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages — perhaps there’s something there.
For a couple of major versions now I’ve been using “sudo easy_install pip” then “sudo pip install fabric” to bootstrap this[*].
~ $ which fab
/usr/local/bin/fab
~ $ which pip
/usr/local/bin/pip
Hopefully that helps somehow

Regards,
Carlton
[*] The other two I go for globally is virtualenv and virtualenvwrapper. The other time I need easy_install is for readline (when wanting to use IPython) — but I do this from within the virtualenv[**].
[**] Should be able to forget a lot of this soon.
_______________________________________________
Fab-user mailing list
https://lists.nongnu.org/mailman/listinfo/fab-user
David
2014-04-03 08:43:03 UTC
Permalink
hI, Dear all:

I perform these steps:

sudo find / | grep “fab”
I found fab executable is on "/Library/Frameworks/Python.framework/Versions/2.7/bin”
Put the fab executable into PATH
***@firstMBP:~$ fab
Fatal error: Couldn't find any fabfiles!
Remember that -f can be used to specify fabfile path, and use -h for help.
Aborting.

It works.

Thans a lot
Post by Robin KÃ¥veland Hansen
If I recall correctly, the location where pip installs executables on OSX changed in 10.9 or it was a brew update.
Can you find the fab executable in /usr/local/share/python ?
--
Vennlig hilsen,
Robin KÃ¥veland Hansen,
Knowit
Post by David
~$ which python
/usr/local/bin/python
It seems that /usr/local/bin is in my path
Hi Carlton,
Thanks for your response quickly. :)
~$ which python
/usr/local/bin/python
~$ which fab
~$
It seems that the fabric does not successfully to installed on my mac.
~$ sudo easy_install pip
Searching for pip
Best match: pip 1.4.1
Processing pip-1.4.1-py2.7.egg
Removing pip 1.0.2 from easy-install.pth file
Adding pip 1.4.1 to easy-install.pth file
Installing pip script to /Library/Frameworks/Python.framework/Versions/2.7/bin
Installing pip-2.7 script to /Library/Frameworks/Python.framework/Versions/2.7/bin
Using /Library/Python/2.7/site-packages/pip-1.4.1-py2.7.egg
Processing dependencies for pip
Finished processing dependencies for pip
~$ sudo pip install fabric
Requirement already satisfied (use --upgrade to upgrade): fabric in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/Fabric-1.8.3-py2.7.egg
Requirement already satisfied (use --upgrade to upgrade): paramiko>=1.10,<1.13 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from fabric)
Requirement already satisfied (use --upgrade to upgrade): pycrypto>=2.1,!=2.4 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from paramiko>=1.10,<1.13->fabric)
Requirement already satisfied (use --upgrade to upgrade): ecdsa in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from paramiko>=1.10,<1.13->fabric)
Cleaning up...
~$ fab
-bash: fab: command not found
~$ which fab
~$
Post by David
bash: fab: command not found
What’s your PATH? — Where’s fabric installed to?
I was going to say have a look in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages but on my system (10.9 as well) it’s /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages — perhaps there’s something there.
For a couple of major versions now I’ve been using “sudo easy_install pip” then “sudo pip install fabric” to bootstrap this[*].
~ $ which fab
/usr/local/bin/fab
~ $ which pip
/usr/local/bin/pip
Hopefully that helps somehow

Regards,
Carlton
[*] The other two I go for globally is virtualenv and virtualenvwrapper. The other time I need easy_install is for readline (when wanting to use IPython) — but I do this from within the virtualenv[**].
[**] Should be able to forget a lot of this soon.
_______________________________________________
Fab-user mailing list
https://lists.nongnu.org/mailman/listinfo/fab-user
Loading...