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 prefer a combination of @bixel, @Juro Oravec & @honkaboy answers:
This way, at least in theory, when updating openssl the dylibs will always point to the latest versions.
/usr/local/opt/openssl
is actually a link to/usr/local/Cellar/openssl/Cellar/openssl/1.0.2t
(the version of openssl installed by brew).The reason the issue happens is actually explained by brew:
Trying to run
brew link openssl
:So, basically you need to link them manually.
I was seeing similar problems with
ansible
. The culprit wasasn1crypto
, and the problem has been already fixed.My solution was to manually remove it and reinstall it with
pip
:rm -r /usr/local/lib/python2.7/site-packages/asn1crypto*
. This allowedpip
to work without problems.pip install asn1crypto
, which installed1.2.0
:NOTE: You can check if
asn1crypto
is the culprit by runningpython
in verbose mode, e.g.python -v $(which ansible)
. In my case it crashed while doing someasn1crypto
related imports:Related: https://github.com/Homebrew/homebrew-core/issues/44996
If you're using Kevlar from DevMate, upgrade to 4.3.1, which "Fixed macOS Catalina crash caused by version of libcrypto.dylib".
Looks like it was a Homebrew issue. I did
brew reinstall python3
and it worked.