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

Installation and running error on M2 Mac #28

Open
hoominchu opened this issue Aug 28, 2023 · 2 comments
Open

Installation and running error on M2 Mac #28

hoominchu opened this issue Aug 28, 2023 · 2 comments

Comments

@hoominchu
Copy link

I am trying to install the repo and get it running on my M2 Mac but get the following error.

OSError: dlopen(/opt/homebrew/anaconda3/lib/python3.11/site-packages/torchaudio/lib/libtorchaudio.so, 0x0006): Symbol not found: __ZN2at8internal15invoke_parallelExxxRKNSt3__18functionIFvxxEEE Referenced from: <F096D2C3-ADC0-3EF4-ACF6-E3075A1DF8EE> /opt/homebrew/anaconda3/lib/python3.11/site-packages/torchaudio/lib/libtorchaudio.so Expected in: <F444C1C4-7CAA-34AA-AA17-B5ED7975BD31> /opt/homebrew/anaconda3/lib/python3.11/site-packages/torch/lib/libtorch_cpu.dylib

I have tried both webapp and command line options but receiving the same error.

While trying to look for a solution, I came across this SO post which is sorta related and might help.
https://stackoverflow.com/questions/73370909/m1-mac-returns-oserror-library-not-loaded

Posting it here in case someone found a solution already.

@microboym
Copy link
Contributor

Years of experience has taught me that anaconda won't work with home-brew. It't strongly recommended to install miniconda from the official installation package, and separate the entire development environment from home-brew. That is, while the programs and cask installed by brew (like YouTube-dl) uses the python@3 at /opt/homebrew/opt/python@3.11/libexec/bin, the interpreter that you directly use in your project is located in ~/miniconda3/envs/<ENV>/bin/python.

In a word, my suggestion for you is to delete your anaconda installation by brew uninstall, than install miniconda with the installer. Then you may create an env with python (v3.8 works for me) pytorch>=2.0.1(which supports mps) and torchaudio.

@hoominchu
Copy link
Author

Thanks, will try that and let you know!

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