Article From:

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

import M2Crypto

File “/usr/local/lib/python2.7/dist-packages/M2Crypto/”, 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/”, line 15, in <module>

from M2Crypto import BIO, m2, util

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

from M2Crypto import m2, six, util

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

from M2Crypto.m2crypto import *

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

_m2crypto = swig_import_helper()

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

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

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

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

Answer 0:

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 *