Article From:https://segmentfault.com/q/1010000012153368
Question:

Importing m2crypto has the following questions. How can I solve it?
File “/opt/Empire/lib/common/encryption.py”, line 26, in <module>

import M2Crypto

File “/usr/local/lib/python2.7/dist-packages/M2Crypto/__init__.py”, line 26, in <module>

from M2Crypto import (ASN1, AuthCookie, BIO, BN, DH, DSA, EVP, Engine, Err,

File “/usr/local/lib/python2.7/dist-packages/M2Crypto/ASN1.py”, line 15, in <module>

from M2Crypto import BIO, m2, util

File “/usr/local/lib/python2.7/dist-packages/M2Crypto/BIO.py”, line 10, in <module>

from M2Crypto import m2, six, util

File “/usr/local/lib/python2.7/dist-packages/M2Crypto/m2.py”, line 30, in <module>

from M2Crypto.m2crypto import *

File “/usr/local/lib/python2.7/dist-packages/M2Crypto/m2crypto.py”, line 26, in <module>

_m2crypto = swig_import_helper()

File “/usr/local/lib/python2.7/dist-packages/M2Crypto/m2crypto.py”, line 22, in swig_import_helper

_mod = imp.load_module('_m2crypto', fp, pathname, description)

ImportError: /usr/local/lib/python2.7/dist-packages/M2Crypto/_m2crypto.so: undefined symbol: sslv3_method

m2cryptoThe version is 0.27.0, the system is Debian8, and the OpenSSL version is 1.1.0g.

Answer 0:

Debian:
pip uninstall M2crypto
apt install python-m2crypto -y

Link of this Article: M2crypto library import problem?

Leave a Reply

Your email address will not be published. Required fields are marked *