LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   having trouble getting Fabric to work (https://www.linuxquestions.org/questions/linux-newbie-8/having-trouble-getting-fabric-to-work-4175547360/)

RayLui20 07-06-2015 03:00 PM

having trouble getting Fabric to work
 
so I have this new server running on centos6.6 that I am trying to get fabric to work. In the past, I have another server that I installed fabric on, and it has worked for me since. I do not remember it giving me a problem in the past. Not sure if this is related to my pip-install

# fab --version
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/fabric/network.py", line 24, in <module>
import ssh
File "/usr/lib/python2.6/site-packages/ssh/__init__.py", line 62, in <module>
from transport import SecurityOptions, Transport
File "/usr/lib/python2.6/site-packages/ssh/transport.py", line 33, in <module>
from ssh import util
File "/usr/lib/python2.6/site-packages/ssh/util.py", line 33, in <module>
from ssh.common import *
File "/usr/lib/python2.6/site-packages/ssh/common.py", line 98, in <module>
from Crypto import Random
ImportError: cannot import name Random

There was a problem importing our SSH library (see traceback above).
Please make sure all dependencies are installed and importable.

I am running out of ideas.

The server is running with
Python 2.6.6
I believe I installed

paramiko.1.7.6-1
pycrypto-on-pypi
gcc libffi-devel python-devel openssl-devel

sorry if this doesn't make sense, will provide more information if need to

dijetlo 07-09-2015 12:26 PM

Hi Ray

The most likely answer to your question is you have the wrong crypto module loaded.

Quote:

pycrypto-on-pypi
I might try this one.


All times are GMT -5. The time now is 08:29 AM.