-
Notifications
You must be signed in to change notification settings - Fork 549
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
Is this capable of running on Mac M1 architecture? #36
Comments
+1 experiencing the same issue |
+1 Any updates on this? |
@divdasani @hugoroussel - yes. Updates. I don't really know where to start. I'll open with I AM A HUGE NOOB. I started the process by testing on an Intel laptop with Windows 10. It also failed, so I don't think the problems are isolated to Mac M1 machines. To resolve this on the Windows 10 laptop, I did two things:
Once those changes were applied to the Windows 10 laptop, the install and server startup worked:
This is the full requirements.txt file:
The situation with the Mac M1 was not as clear cut. I made all the changes as explained above for the Windows 10 laptop. However the install failed big time. First, a rust compiler had to be installed. I'm not a rust developer, so I followed these instructions:
The problems continued, but at least they were different problems. The Rust compiler threw errors... regarding itself. TO BE CLEAR, I am not a Rust developer. This is the first time I've done anything with Rust. The pip install started with these error messages:
To get around this, I commented out the code in this file at that line. Then the pip install threw this error:
I commented out the code in this file at that line. At this point, the pip install completed, and I am now able to run the output detecter server. What I had to do was dodgy, to say the least. YMMV. Edit: Note that after installing the python v3.8.10, the command line versions of the python and pip commands changed from:
|
I'm using a Mac M1 mini and am unable to install the requirements.
Successful at getting everything downloaded, changed the requirements.txt file:
transformers==2.9.1
Then installed the requirements with:
pip install -r requirements.txt
The install works up until:
error[E0463]: can't find crate for
core| = note: the
x86_64-apple-darwintarget may not be installed = help: consider downloading the target with
rustup target add x86_64-apple-darwin= help: consider building the standard library from source with
cargo build -Zbuild-std`downloaded the target with:
rustup target add x86_64-apple-darwin
Repeated install of requirements.txt:
pip install -r requirements.txt
Same error as above - tried to build the standard library from source:
cargo build -Zbuild-std
An error was generated:
error: the
-Zflag is only accepted on the nightly channel of Cargo, but this is the
stablechannel
The text was updated successfully, but these errors were encountered: