-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[BUG] Unable to build on an M1 Mac: No matching distribution found for clvm-rs #994
Comments
I'm pretty sure that only Python 3.9 is aware of the M1 ARM issues. Can you try it on 3.9 and report back? |
I upgraded to Python 3.9 via Brew and the issue persists. See log with version data:
|
Thanks for trying 3.9 as our M1 is stuck in a reboot loop but this is a good reason to fix that. I'll dig into this shortly. |
Thanks. For anyone hit with this issue, I did manage to plot on an M1 Mac with the Parallels preview release with Ubuntu 20.04. No problems there. |
I'm pretty sure I know what's going on but it's going to require an M1 CI runner. I ordered one overnight so should have a solution in the next couple of days. |
Great. Interesting to see how this performs natively on macOS vs the virtualized Ubuntu. |
I have hand rolled clvm-rs==0.1.3 and put it on our pypi simple clone. RC2 just built fine for me on M1 and so did pre-release RC3. I will be automating building both clvm-rs and an Apple Silicon native installer shortly. Once you confirm it builds for you I will close this. |
Issues building the GUI though. |
I can confirm it builds now! 👍 But note that this is only after an upgrade to Python 3.9 from Brew. So maybe add that into either the installation instructions or then to the installer itself. For those struggling with this issue in the meanwhile, just do the upgrade manually:
|
Hold that. The build goes through, but there's an issue when running
Not much of a Python guy, but looks like it could do with some mismatch of the two installed versions (default and from Brew). From what I understand the virtual environment should handle this, but maybe it picks the wrong one. Did |
I tested it a different way so didn't see the bls issue. I'll chase it in the AM. Could be a problem using the universal builds instead of just building for intel and m1. |
Ahha... Could be. Also didn't have Rosetta installed, since I reset the whole shebang. I'll try adding that and see if it runs through that automagically. Ideally should be all native, obviously, but to get it running would be another step forward. |
The universal builds we're doing on python 3.9 should run natively on arm64 but clearly it's not getting packaged right. I'll switch to just making an intel and an arm64 version now that I know we can create an arm64/M1 only installer |
Assuming the installers build correctly - here is one more issue dealt with: #1062 |
Great, but I suppose this won't help with the issue with |
Update - first the bad news. The cross compile method we were hoping would work doesn't due to our reliance on things like gmp and libsodium. Also, we can't get our M1 into the CI flow to automate building these. Better news - it looks like we can get our M1 able to build chia-blockchain and all of the dependencies natively - though by hand. I'll pull a dmg together in a few days but it requires a lot of small changes. |
I've successfully installed on M1 (but beware of #1189). Right now RC5 will build from |
I can confirm the build, activation and plotting now run on my M1 Mac Mini environment. Thanks for your efforts! The only snag was that the installer does not install some needed brew packages, leading to the following errors:
and
Installing both packages manually fixed the issue:
|
Totally forgot to statically link those as that gets done automatically on CI. I'll replace that wheel tonight so you don't need the dependencies. Thanks! |
I fixed both chiavdf and blspy. You should be able to |
Removed libsodium and gmp. Then installed, activated and started a plot without issues. Perfect. |
On an M1 (ARM64) I cannot build the development version because of this error in install:
This is very similar to the issue #980 with the same error on Raspberry Pi, where it was caused by a 32 bit installation. I tried a few older betas, another version of Python3 from Brew, to no avail.
How to reproduce on a Mac with M1 ARM CPU:
Here is a full log of the installer until the error:
The text was updated successfully, but these errors were encountered: