Fixing a pip3 crash error after a Mac Catalina update
Problem
I have fatal error when running pip3 after Mac Catalina update in my mac. This made it impossible to install, update, or delete using pip.
pip3 install objection
[1] 66557 abort pip3 install objection
Details crash log.
Process: python3.7 [8546]
Path: /usr/local/Cellar/salt/2019.2.1/libexec/bin/python3.7
Identifier: python3.7
Version: 0
Code Type: X86-64 (Native)
Parent Process: python3.7 [8537]
Responsible: python3.7 [8537]
..snip...
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff671c847a __pthread_kill + 10
1 libsystem_pthread.dylib 0x00007fff67289707 pthread_kill + 384
2 libsystem_c.dylib 0x00007fff67150a08 abort + 120
3 libcrypto.dylib 0x00007fff64ae6804 __report_load + 352
....
https://i.giphy.com/Rkis28kMJd1aE.gif |
Solution?
I found the same issue as me in the github. It appears to be a problem with the asn1crypto
package on python3, which can be resolved by deleting.
https://github.com/Homebrew/homebrew-core/issues/44996
asn1crypto
package is in python3 site-package directory
ll /usr/local/lib/python3.7/site-packages/asn1crypto
total 1048
-rw-r--r-- 1 hahwul admin 209B 5 6 2019 __init__.py
drwxr-xr-x 27 hahwul admin 864B 5 6 2019 __pycache__
-rw-r--r-- 1 hahwul admin 9.2K 5 6 2019 _elliptic_curve.py
-rw-r--r-- 1 hahwul admin 967B 5 6 2019 _errors.py
-rw-r--r-- 1 hahwul admin 738B 5 6 2019 _ffi.py
-rw-r--r-- 1 hahwul admin 4.6K 5 6 2019 _inet.py
-rw-r--r-- 1 hahwul admin 4.5K 5 6 2019 _int.py
-rw-r--r-- 1 hahwul admin 8.4K 5 6 2019 _iri.py
-rw-r--r-- 1 hahwul admin 4.4K 5 6 2019 _ordereddict.py
drwxr-xr-x 5 hahwul admin 160B 5 6 2019 _perf
-rw-r--r-- 1 hahwul admin 4.9K 5 6 2019 _teletex_codec.py
-rw-r--r-- 1 hahwul admin 939B 5 6 2019 _types.py
-rw-r--r-- 1 hahwul admin 33K 5 6 2019 algos.py
-rw-r--r-- 1 hahwul admin 25K 5 6 2019 cms.py
-rw-r--r-- 1 hahwul admin 154K 5 6 2019 core.py
-rw-r--r-- 1 hahwul admin 16K 5 6 2019 crl.py
-rw-r--r-- 1 hahwul admin 2.1K 5 6 2019 csr.py
-rw-r--r-- 1 hahwul admin 34K 5 6 2019 keys.py
-rw-r--r-- 1 hahwul admin 17K 5 6 2019 ocsp.py
-rw-r--r-- 1 hahwul admin 8.9K 5 6 2019 parser.py
-rw-r--r-- 1 hahwul admin 2.2K 5 6 2019 pdf.py
-rw-r--r-- 1 hahwul admin 6.0K 5 6 2019 pem.py
-rw-r--r-- 1 hahwul admin 4.5K 5 6 2019 pkcs12.py
-rw-r--r-- 1 hahwul admin 7.6K 5 6 2019 tsp.py
-rw-r--r-- 1 hahwul admin 18K 5 6 2019 util.py
-rw-r--r-- 1 hahwul admin 154B 5 6 2019 version.py
-rw-r--r-- 1 hahwul admin 90K 5 6 2019 x509.py
Remove asn1crypto
rm -rf /usr/local/lib/python3.7/site-packages/asn1crypto
It’s work? right!
pip3 install objection
Collecting objection
Downloading https://files.pythonhosted.org/packages/b3/12/aba1cee91a1183f51eafefec5ae71040159dbb0fbf04d2603dbb1f362e6a/objection-1.8.3.tar.gz (221kB)
|████████████████████████████████| 225kB 255kB/s
Requirement already satisfied: frida in /usr/local/lib/python3.7/site-pa