「泊塢窗構建dockerfile時運行 '蟒蛇manage.py makemigrations' 得到「未定義符號:SSLv2_method' 「ubuntu14.04,M2Crypto == 0.25.1,OpenSSL的(1.0.1f-1ubuntu2.22)運行的Django得到了一個未定義符號:SSLv2_method
回溯(最近通話最後一個): 文件 」manage.py「,10號線,在 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/ 初始化 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
我怎樣才能解決這個問題? 謝謝〜
它看起來像M2Crypto正在導入'SSLv2_method'。去年大多數情況下都是從OpenSSL中刪除(大約18個月前)。您應該嘗試將M2Crypto更新爲[現代版](https://pypi.python.org/pypi/M2Crypto)。另請參閱[OpenSSL SSLv2_method丟失](https://www.google.com/search?q=OpenSSL+SSLv2_method+site%3Astackoverflow.com)。 – jww