-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pycryptodome cannot be loaded on M1 macs #226
Comments
Hi! @robin-nitrokey Can you take a look? |
FWIW i'm trying to build the failing dependencies from source, so far i've done:
and
but it still fails after successfully installing these:
|
@sbaier1 Can you please try the following steps to create a minimal reproducible example of this error?
If step 3 fails, please provide the output of step 2, |
fails with the same error:
$ python3 -m venv /tmp/venv
source /tmp/venv/bin/activate
$ pip install pycryptodome
Collecting pycryptodome
Using cached pycryptodome-3.14.1-cp35-abi3-macosx_12_0_arm64.whl
Installing collected packages: pycryptodome
Successfully installed pycryptodome-3.14.1
WARNING: You are using pip version 22.0.4; however, version 22.1.1 is available.
You should consider upgrading via the '/tmp/venv/bin/python3 -m pip install --upgrade pip' command.
$ python3 -m platform
macOS-12.3.1-arm64-arm-64bit
$ python3 -VV
Python 3.9.11 (main, Mar 29 2022, 14:04:34)
[Clang 12.0.0 ] perhaps it could be related but i have some miniconda setup params in my zshrc. |
Interesting. The
|
Interesting indeed, i ran it again with and that fixed the issue. (Your test import works now). It also still built some binaries though:
anyways: applying this same command to my base env and running |
I’m glad that it’s working now. As I don’t see the underlying reason for the problem and it might be a one-time caching issue, I think we can close this issue for now. If you encounter this issue again or if other users experience it too, we can investigate further and update the installation instructions. |
I have tried it on my M1, but I get ERROR: Command errored out with exit status 1: /Users/loreto/opt/miniconda3/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/dr/lzd3czf922qcgj0xpdyg3dc40000gn/T/pip-install-3lhdxoh9/pycryptodome_3d5818659ba54c90872d4993a0d9e451/setup.py'"'"'; __file__='"'"'/private/var/folders/dr/lzd3czf922qcgj0xpdyg3dc40000gn/T/pip-install-3lhdxoh9/pycryptodome_3d5818659ba54c90872d4993a0d9e451/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/dr/lzd3czf922qcgj0xpdyg3dc40000gn/T/pip-record-4rdpmt_6/install-record.txt --single-version-externally-managed --compile --install-headers /Users/loreto/opt/miniconda3/include/python3.9/pycryptodome Check the logs for full command output. |
Same error :( |
1 similar comment
Same error :( |
same error with 3.11 from brew, but works with 3.12 still from brew 🤷♂️ |
The install instructions for macOS don't work on M1 macs. Tried to install the CLI to use with my nitrokey 3
I installed into the homebrew python env (which worked) and then tried running the CLI.
Can't find any general info on this specific shared lib or why it's an x64 binary.
The text was updated successfully, but these errors were encountered: