Python 3 in macOS Catalina: Fixing the abort trap

At some point in the beta program of macOS Catalina Homebrew’s python 3 broke and only ended up showing an “Abort trap: 6” for every command that involved using it. This included pip3 and other tools that were previously downloaded and worked as expected.

After a bit of searching I found hints that there was an issue with some OpenSSL libraries. Using the current openssl package, Homebrew has openssl@1.1, there’s a simple fix (exact command might differ once the package gets updated) for the problem:

ln -s /usr/local/Cellar/openssl@1.1/1.1.1d/lib/libcrypto.dylib /usr/local/lib/libcrypto.dylib
ln -s /usr/local/Cellar/openssl@1.1/1.1.1d/lib/libssl.dylib /usr/local/lib/libssl.dylib

This will take care of it until openssl gets updated and the symlinks eventually break. I’m sure I’ll have to get back here to remind myself on how this gets fixed in the future.