-
Notifications
You must be signed in to change notification settings - Fork 2.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
Gradio and M1 macbook #1940
Comments
EDIT: oh, on another conda env with python3.10 it just works. i don't understand why but am closing this issue. |
Same issue using pip. A HUGE bummer I have to use conda vs pip on gradio. Is this really true? |
Hi @noahgift ! I'm on an M1 and I can install gradio from pip. Can you post the error you're getting? |
|
Also verified it fails on 3.9
|
@noahgift This is similar to the original error @keunwoochoi posted and it's the one in this thread but I'm not sure what the best fix is. This is what works for me - I do create a fresh env with conda but install via pip: conda create -n test2 python=3.10 pip -y
pip install gradio |
@freddyaboulton I was not able to replicate that fix, and preferably a non conda install would be ideal. I believe the issue is that gradio needs to link to an
|
The issue is still there for MacOS with M1 System Info Are there any stable solutions to this problem? |
what worked for me is installing miniconda and placing it in a directory named opt don't know why. |
Gradio finally worked on M1 after uninstalling pycryptodome through pip and installing it back from conda. Looks like when we install gradio from pip, it installs the pip version of pycryptodome which doesn't have M1 bindings.
|
Thanks for the info @steysie! @aliabid94 I think we should just remove the encryption module in 4.0 since it's rarely ever used |
Thanks so much, it works on my m1 mac |
Sadly, in Sonoma, on my M1 it fails. Preparing metadata (setup.py) ... error × python setup.py egg_info did not run successfully. |
Describe the bug
Hi!
Related to #1369, I also can't run Gradio on my M1 Macbook.
Unlike the answer #1369, It doesn't seem to be about
transformers
library.Here's the error message I get.
Macbook M1, miniforge, python3.9. it's coming from
gradio/encryptor
, line 2,Anyone having the same issue?
Is there an existing issue for this?
Reproduction
import gradio as gr
Screenshot
No response
Logs
System Info
Severity
blocking upgrade to latest gradio version
The text was updated successfully, but these errors were encountered: