Closed henhen724 closed 2 years ago
Hi @henhen724 ,
Thank you for your message. GitHub actions doesn't still have Apple M1 runners, so we cannot build wheels and push them to PyPI. Setup instead tries to compile wheels as needed.
Do you have developer tools installed on your Mac command line?
xcode-select --install
If you don't have them, please try installing them, and run pip install again. Let me know if that helps.
Also, can you @henhen724 try installing Anaconda Python distribution, and running Anaconda provided pip
for install?
Python that comes pre-packaged with OS (that I see you are using) should be kept for OS jobs, and it's usually not optimized heavily for numerical workloads, and it might be missing something we need for wheel builds...
Let me know if that helps.
Also if anyone finds free builds for CI on Apple ARM, please let me know. I don't find any at the moment, and their integration to CI would enable us to directly ship wheels for Apple ARM architecture (in addition to current Intel's x86 architectures)
Good news, anaconda's pip worked for me.
Also, bitrise seems to have a CI for Apple M1: https://www.bitrise.io/why/technologies/virtualized-m1-environment and they have free option that would probably work for this size of library: https://www.bitrise.io/pricing.
Btw, I already had command lines tools installed.
When I run
pip install ARC-Alkali-Rydberg-Calculator
I got the following error:Running the command with sudo -H resulted in the exact same error.
If you read it, you will see it is not a permissions issue. The problem is that wheels.py is trying to create the same numpy egg twice. I briefly looked at your setup.py, but I could not see what was causing the issue. The only thing that raised my suspicion is the option for the setup function:
setup_requires=["oldest-supported-numpy"].
This may be an issue with setuptools, however I am not familiar with that package and I would have no idea how to reproduce the error, aside from using your package.Here are my system details: Operating System: macOS Monterey Version 12.3
Hardware Overview: Model Name: MacBook Pro Model Identifier: MacBookPro18,1 Chip: Apple M1 Pro (<= Note: I am running on Apple Silicon. I don't know if that is related to the problem.) Total Number of Cores: 10 (8 performance and 2 efficiency) Memory: 16 GB System Firmware Version: 7459.101.2 OS Loader Version: 7459.101.2 Serial Number (system): K99XW6P90X Hardware UUID: 5769BFFA-F4D8-553F-82F2-ED2EC8E82255 Provisioning UDID: 00006000-001C40320AA3801E Activation Lock Status: Enabled