Skip to content
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

Unable to install autopy on Mac ARM64 M1 #88

Open
pawel345 opened this issue Jan 12, 2022 · 1 comment
Open

Unable to install autopy on Mac ARM64 M1 #88

pawel345 opened this issue Jan 12, 2022 · 1 comment

Comments

@pawel345
Copy link

After installing the AutoPy (pip install autopy), when I try to use it in my code I got following errors:

File "/Users/pawellewicki/git/FX/venvARM/lib/python3.8/site-packages/autopy/init.py", line 6, in
from . import alert, bitmap, color, key, mouse, screen
ImportError: dlopen(/Users/pawellewicki/git/FX/venvARM/lib/python3.8/site-packages/autopy/alert.cpython-38-darwin.so, 0x0002): tried: '/Users/pawellewicki/git/FX/venvARM/lib/python3.8/site-packages/autopy/alert.cpython-38-darwin.so' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/local/lib/alert.cpython-38-darwin.so' (no such file), '/usr/lib/alert.cpython-38-darwin.so' (no such file)

@Existance29
Copy link

Existance29 commented Mar 10, 2023

I have experienced this with the opencv-python library. It seems like your command line is running it on intel architecture, but the package is meant for ARM64.

Im not sure what your running it from, but I would recommend running your program from terminal first. The command
arch
should return ARM64. If not, you should disable rosetta mode in your terminal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants