linux - python fabric error 'module' object has no attribute 'HAVE_DECL_MPZ_POWM_SEC' -


i getting following error when run fabric

(env)[root@server-124 env]# fab traceback (most recent call last):   file "/usr/bin/fab", line 9, in <module>     load_entry_point('fabric==1.8.3', 'console_scripts', 'fab')()   file "/usr/lib/python2.6/site-packages/pkg_resources.py", line 299, in load_entry_point     return get_distribution(dist).load_entry_point(group, name)   file "/usr/lib/python2.6/site-packages/pkg_resources.py", line 2229, in load_entry_point     return ep.load()   file "/usr/lib/python2.6/site-packages/pkg_resources.py", line 1948, in load     entry = __import__(self.module_name, globals(),globals(), ['__name__'])   file "/usr/lib/python2.6/site-packages/fabric/main.py", line 19, in <module>     fabric import api, state, colors   file "/usr/lib/python2.6/site-packages/fabric/api.py", line 9, in <module>     fabric.context_managers import (cd, hide, settings, show, path, prefix,   file "/usr/lib/python2.6/site-packages/fabric/context_managers.py", line 42, in <module>     fabric.state import output, win32, connections, env   file "/usr/lib/python2.6/site-packages/fabric/state.py", line 9, in <module>     fabric.network import hostconnectioncache, ssh   file "/usr/lib/python2.6/site-packages/fabric/network.py", line 24, in <module>     import paramiko ssh   file "/usr/lib/python2.6/site-packages/paramiko/__init__.py", line 31, in <module>     transport import securityoptions, transport   file "/usr/lib/python2.6/site-packages/paramiko/transport.py", line 33, in <module>     paramiko import util   file "/usr/lib/python2.6/site-packages/paramiko/util.py", line 33, in <module>     paramiko.common import *   file "/usr/lib/python2.6/site-packages/paramiko/common.py", line 98, in <module>     crypto import random   file "/usr/lib64/python2.6/site-packages/crypto/random/__init__.py", line 29, in <module>     crypto.random import _userfriendlyrng   file "/usr/lib64/python2.6/site-packages/crypto/random/_userfriendlyrng.py", line 38, in <module>     crypto.random.fortuna import fortunaaccumulator   file "/usr/lib64/python2.6/site-packages/crypto/random/fortuna/fortunaaccumulator.py", line 39, in <module>     import fortunagenerator   file "/usr/lib64/python2.6/site-packages/crypto/random/fortuna/fortunagenerator.py", line 34, in <module>     crypto.util.number import ceil_shift, exact_log2, exact_div   file "/usr/lib64/python2.6/site-packages/crypto/util/number.py", line 56, in <module>     if _fastmath not none , not _fastmath.have_decl_mpz_powm_sec: attributeerror: 'module' object has no attribute 'have_decl_mpz_powm_sec' 

i have referred other post says "so you'reusing newer version of pycrypto older version of _fastmath." installed gmp-devel

i using virtualenv , centos 6, python 2.6

please help.

this fixed me:

pip install pycrypto==2.3 

i didn't uninstall python-crypto because other packages needed depended on it. ran pip command above , worked :)


Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -