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 was seeing similar problems with ansible
. The culprit was asn1crypto
, 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 allowed pip
to work without problems.pip install asn1crypto
, which installed 1.2.0
: Found existing installation: asn1crypto 0.24.0
Uninstalling asn1crypto-0.24.0:
Successfully uninstalled asn1crypto-0.24.0
Successfully installed asn1crypto-1.2.0
NOTE: You can check if asn1crypto
is the culprit by running python
in verbose mode, e.g. python -v $(which ansible)
. In my case it crashed while doing some asn1crypto
related imports:
# /usr/local/lib/python2.7/site-packages/asn1crypto/_perf/_big_num_ctypes.pyc matches /usr/local/lib/python2.7/site-packages/asn1crypto/_perf/_big_num_ctypes.py
import asn1crypto._perf._big_num_ctypes # precompiled from /usr/local/lib/python2.7/site-packages/asn1crypto/_perf/_big_num_ctypes.pyc
[1] 59247 abort python -v $(which ansible)
Related: https://github.com/Homebrew/homebrew-core/issues/44996