1

As the title suggests I am having issues running python-bitcoinlib example code. When I first run I get a permission denied message. I run it as root and I get the following:

WARNING: /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/Resources/Python.app/Contents/MacOS/Python is loading libcrypto in an unsafe way
[1]    32672 abort      python3 ./spend-p2pkh-txout.py

I uninstalled libssl with brew and reinstalled and I still running into the same issue. Is anyone else encountering this error?

SomethingsGottaGive
  • 1,646
  • 6
  • 26
  • 49

1 Answers1

0

As per this gist (which links to this SO question), it seems "unsafe" means the library files are not in /usr/local/lib.

To fix this, you can just link them there:

sudo ln -s /opt/homebrew/opt/openssl/lib/libcrypto.1.1.dylib /usr/local/lib/
sudo ln -s /opt/homebrew/opt/openssl/lib/libssl.1.1.dylib /usr/local/lib/
mbirth
  • 372
  • 2
  • 8