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

Error when install on arm macOS #2218

Closed
pUmpKin-Co opened this issue Aug 20, 2022 · 8 comments
Closed

Error when install on arm macOS #2218

pUmpKin-Co opened this issue Aug 20, 2022 · 8 comments
Assignees

Comments

@pUmpKin-Co
Copy link

Environment
Plateform: Apple M1 Pro
OS: macOs 12.5.1
Pytorch Version: 1.12.0 (Support MPS)

Error:
Same error when install using mim or build from source
RuntimeError: Error compiling objects for extension

The whole error message is too long to creat the issue -_-!

@HAOCHENYE
Copy link
Collaborator

Hi, thanks for your feedback, would you mind packing your full error message into a zip file and attaching it to this issue? It could help us to locate the issue.

@pUmpKin-Co
Copy link
Author

Hi, thanks for your feedback, would you mind packing your full error message into a zip file and attaching it to this issue? It could help us to locate the issue.

Thanks for your reply. I have upload the error message.
errormessage.zip

@HAOCHENYE
Copy link
Collaborator

It seems the real error is 2022-08-21T14:42:13,282 /Users/pumpkin/PycharmProjects/Code/mmcv/mmcv/ops/csrc/common/mps/MPSLibrary.mm:2:10: fatal error: 'c10/util/CallOnce.h' file not found
Hi, have you check the mps is avaliable for your pytorch: https://pytorch.org/docs/stable/notes/mps.html?

@pUmpKin-Co
Copy link
Author

Yes. The screen-shot provided blow:

image

@HAOCHENYE
Copy link
Collaborator

HAOCHENYE commented Aug 21, 2022

Hi~ mmcv-full will use the newest header files in Pytorch, which have not been released in Pytorch 1.12. You can install the pre-release pytorch version by conda install pytorch torchvision -c pytorch-nightly

@pUmpKin-Co
Copy link
Author

Thank you for your kind and patient answer! The problem has been fixed!

@atin-ghosh
Copy link

atin-ghosh commented Aug 22, 2022

Hi @pUmpKin-Co , I am getting the exact same error but I am unable to fix even after installing PyTorch-nightly.
I am using CC=clang CXX=clang++ CFLAGS='-stdlib=libc++' MMCV_WITH_OPS=1 pip install -e .

Can you please help? let me know what exactly you did to fix this.

@pUmpKin-Co
Copy link
Author

Hi @pUmpKin-Co , I am getting the exact same error but I am unable to fix even after installing PyTorch-nightly. I am using CC=clang CXX=clang++ CFLAGS='-stdlib=libc++' MMCV_WITH_OPS=1 pip install -e .

Can you please help? let me know what exactly you did to fix this.

Hello~.
Actually, I first installed pytorch-nightly:
conda install pytorch torchvision torchaudio -c pytorch-nightly,
Then, I install openmim:
pip install openmim,
Finally, using mim to install mmcv-full:
mim install mmcv-full.
Then, everything done.
I did not try build from source. If you have no special needs, try installing with mim!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants