Python在MacOS 10.15 Beta(19A582a)上使用"/usr/lib/libcrypto.dylib"崩溃了; [英] Python crashing on MacOS 10.15 Beta (19A582a) with "/usr/lib/libcrypto.dylib"
问题描述
我使用新的macOS Catalina运行了Django项目,并且运行良好.
我安装了oh_my_zsh,然后尝试运行它因以下错误而崩溃的同一项目.我卸载了oh_my_zsh并再次尝试,但没有成功.
Path: /usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/Resources/Python.app/Contents/MacOS/Python
Identifier: Python
Version: 3.7.4 (3.7.4)
Code Type: X86-64 (Native)
Parent Process: Python [7526]
Responsible: Terminal [7510]
User ID: 501
Date/Time: 2019-10-07 20:59:20.675 +0530
OS Version: Mac OS X 10.15 (19A582a)
Report Version: 12
Anonymous UUID: CB7F20F6-96C0-4F63-9EC5-AFF3E0989687
Time Awake Since Boot: 3000 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Application Specific Information:
/usr/lib/libcrypto.dylib
abort() called
Invalid dylib load. Clients should not load the unversioned libcrypto dylib as it does not have a stable ABI.
我刚遇到相同的问题,手动链接周围的东西有点不舒服.
我能够简单地解决问题
- 通过自制软件安装openssl:
brew install openssl
- 通过DYLD_LIBRARY_PATH从openssl指向动态库:
export DYLD_LIBRARY_PATH=/usr/local/opt/openssl/lib:$DYLD_LIBRARY_PATH
我刚刚将该行添加到了我的.zshrc中.
根据此问题,DYLD_FALLBACK_LIBRARY_PATH
的使用可能优于DYLD_LIBRARY_PATH
.>
如下面的评论中所述,此应该是公认的答案.只需重新安装cryptography
软件包即可.
I ran my Django project with new macOS Catalina and was running fine.
I installed oh_my_zsh then I tried to run the same project it is crashing with the following errors. I uninstalled oh_my_zsh and tried again but it did not worked.
Path: /usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/Resources/Python.app/Contents/MacOS/Python
Identifier: Python
Version: 3.7.4 (3.7.4)
Code Type: X86-64 (Native)
Parent Process: Python [7526]
Responsible: Terminal [7510]
User ID: 501
Date/Time: 2019-10-07 20:59:20.675 +0530
OS Version: Mac OS X 10.15 (19A582a)
Report Version: 12
Anonymous UUID: CB7F20F6-96C0-4F63-9EC5-AFF3E0989687
Time Awake Since Boot: 3000 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Application Specific Information:
/usr/lib/libcrypto.dylib
abort() called
Invalid dylib load. Clients should not load the unversioned libcrypto dylib as it does not have a stable ABI.
I just came across the same problem and felt a bit uncomfortable to manually link things around.
I was able to solve the problem by simply
- Installing openssl via homebrew:
brew install openssl
- Pointing towards the dynamic libraries from openssl via DYLD_LIBRARY_PATH:
export DYLD_LIBRARY_PATH=/usr/local/opt/openssl/lib:$DYLD_LIBRARY_PATH
I've just added that line to my .zshrc.
Edit: According to this question, the usage of DYLD_FALLBACK_LIBRARY_PATH
might be preferable over DYLD_LIBRARY_PATH
.
Edit 2: As mentioned in a comment below, this should probably be the accepted answer. Simply reinstall the cryptography
package.
这篇关于Python在MacOS 10.15 Beta(19A582a)上使用"/usr/lib/libcrypto.dylib"崩溃了;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!