Python Forum
Mac os (M2) "Python is loading libcrypto in an unsafe way"
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mac os (M2) "Python is loading libcrypto in an unsafe way"
#1
Hi,

I have migrated to a mac os 12.6 with Python 3.10.7, and scripts involving ssl and hashing now complain with the error

Error:
/Library/Frameworks/Python.framework/Versions/3.10/Resources/Python.app/Contents/MacOS/Python is loading libcrypto in an unsafe way zsh: abort
I tried to solve it with:

Output:
python3 -m pip cache purge python3 -m pip install --upgrade cryptography python3 -m pip install --upgrade pyopenssl
Unsuccessfully.

But after installing openssl with homebrew, the scripts work if I execute them within the openssl directory:

Output:
cd /opt/homebrew/opt/openssl@3/lib/
So it is a library path related issue.

My question is: how do I tell python to consider loading relevant imports from that directory? I linked to /usr/local/lib but does not work either.

Cheers,
j
Reply


Messages In This Thread
Mac os (M2) "Python is loading libcrypto in an unsafe way" - by jpelayo - Sep-21-2022, 09:11 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Bulk loading of data using python shivamsvmsri 2 898 Sep-28-2023, 09:04 AM
Last Post: shivamsvmsri
  Python C Extension Module loading issue on Cygwin mesibo 0 792 Sep-22-2023, 05:41 AM
Last Post: mesibo
  saving and loading text from the clipboard with python program MaartenRo 2 1,856 Jan-22-2022, 05:04 AM
Last Post: MaartenRo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020