Install Python Fabric Library on Mac 10.6 (Snow Leopard)
Posted on April 11, 2011 in Python
I've been doing a lot of Python work lately to manage a butt-load of Linux servers and I've been using the Fabric Library to help me connect remotely and securely. I had some problems getting the library and dependencies to install on my Mac laptop so here is what I did. Add a reply if there is an easier way.
> sudo easy_install pip # PIP is recommended for installation > sudo -s # Creates a new sudo shell > export ARCHFLAGS="-arch i386 -arch x86_64" # Need to set some GCC flags > pip install fabric # Get the install on
Props go to these guys and stackoverflow for helping out.
Side note: If you run into this error in the console or log when running your script there is a simple fix. Wrap your env.password with str() (ie str(env.password)) and voila. A better solution may be to create a log handler and ignore and I'll post that solution if I have tome to figure it out.
> No handlers could be found for logger "paramiko.transport"