pyca / pyopenssl

A Python wrapper around the OpenSSL library
https://pyopenssl.org/
Apache License 2.0
886 stars 422 forks source link

Add support for running natively on apple silicon arm64 #1118

Closed ghost closed 2 years ago

ghost commented 2 years ago

When trying to run the snowflake library (snowflake-connector-python) natively on an apple silicon computer via miniforge3 (https://github.com/conda-forge/miniforge) I get this error:

MemoryError: Cannot allocate write+execute memory for ffi.callback(). You might be running on a system that prevents this. For more information, see https://cffi.readthedocs.io/en/latest/using.html#callbacks

The error seems to be related to the pyopenssl libary. Would be really good to get this library running natively also :)

alex commented 2 years ago

We do support Apple Sillicon, we're not sure why some users get this error message. Closing as a duplicate of https://github.com/pyca/pyopenssl/issues/873, which may contain some help.