" docker build dockerfile运行' python manage.py makemigrations' get'未定义的符号:SSLv2_method'"
Traceback(最近一次通话): 文件" manage.py",第10行,in execute_from_command_line(sys.argv中) 文件" /usr/local/lib/python2.7/dist-packages/django/core/management/ init .py", 第353行,在execute_from_command_line中 utility.execute() 文件" /usr/local/lib/python2.7/dist-packages/django/core/management/ init .py", 第327行,执行中 django.setup()
apps.populate(settings.INSTALLED_APPS)
File "/usr/local/lib/python2.7/dist-packages/django/apps/registry.py",
line 115, in populate
app_config.ready()
File "/usr/local/lib/python2.7/dist-packages/django/contrib/admin/apps.py",
line 22, in ready
self.module.autodiscover()
File "/usr/local/lib/python2.7/dist-packages/django/contrib/admin/__init__.py",
line 26, in autodiscover
autodiscover_modules('admin', register_to=site)
File "/usr/local/lib/python2.7/dist-packages/django/utils/module_loading.py",
line 50, in autodiscover_modules
import_module('%s.%s' % (app_config.name, module_to_search))
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/goldbox-backend/goldbox_p2p/admin.py", line 28, in <module>
from goldbox_common.crypto import ReportCrypto
File "/goldbox-backend/goldbox_common/crypto.py", line 5, in <module>
from M2Crypto import RSA,BIO,EVP
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, 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: SSLv2_method
我该如何解决? 感谢〜