coderanger / pychef

Python library to interact with the Chef server API
Other
195 stars 129 forks source link

Crash on macOS 10.15 Catalina due to libcrypto loading #88

Open piger opened 4 years ago

piger commented 4 years ago

Loading the unversioned libcrypto library will crash the Python process on macOS 10.15 Catalina: https://github.com/coderanger/pychef/blob/216cbb25579975bd3a4233641aa8a5ff5fff2168/chef/rsa.py#L6-L9

The crash dialog shows:

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.
mishanius commented 4 years ago

Hi as a "quick and dirty" fix you can do the following: brew install openssl and change the CDLL(find_library('crypto')) to CDLL('/usr/local/Cellar/openssl@1.1/1.1.1d/lib/libssl.1.1.dylib')