Python crashing on MacOS 10.15 Beta (19A582a) with “/usr/lib/libcrypto.dylib”

前端 未结 13 524
星月不相逢
星月不相逢 2020-12-12 15:47

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

相关标签:
13条回答
  • 2020-12-12 16:28

    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:

    1. rm -r /usr/local/lib/python2.7/site-packages/asn1crypto*. This allowed pip to work without problems.
    2. 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

    0 讨论(0)
提交回复
热议问题