Closed darrennoble closed 3 years ago
I can't import the system cryptography on my (non-M1) machine actually, so it may just be that Apple is shipping a semi-broken copy. You should try creating a new virtualenv and installing cryptography in that, but be aware you'll need to compile cryptography and cffi yourself and linker challenges may exist depending upon the way your environment is configured.
So I couldn't get fabric to work with Mac OS' built in python2 due to this, but I found out that you can get python2 from the nix package manager (python2 is not available via python.org, brew, or macports for arm/m1). I was then able to install pip and then cryptography. (I had libffi installed from brew and cffi/cryptography was able to use that). Thanks for the help!
I'm trying to run fabric on my M1 mac with python 2.7 (it's needed for work until we finish porting to go) and I get cryptography errors with openssl. I installed open ssl via brew (
brew install openssl@1.1
) although it appears to be using an openssl that shipped with Mac OS and a cryptography that shipped with Mac OS located at/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python
When I run
fab
I get this runtime error in cryptography:Is this a problem with my environment or is there a problem with the cryptography that ships with Mac OS's python2 or something else? I tried updating cryptography via
pip install -U cryptography
but it tells me it's up to date:I'm running Python 2.7.16 that came with Mac OS 11.4 and the cryptography that shipped with it.
output of
pip freeze
:Has anyone else come across this problem or have an ideas on how to fix it?