ANTsPy
ANTsPy copied to clipboard
Fail to install ANTsPyx on Mac M1
Describe the bug I use "pip install antspyx" to install antspyx but it gives an error while building Cmake files.
To Reproduce Steps to reproduce the behavior:
- Open a terminal
- type "pip install antspyx"
- See error
Expected behavior Antspyx is successfullt installed
Screenshots
Desktop (please complete the following information):
- OS: [e.g. iOS] MacOS
- Browser [e.g. chrome, safari]
- Version [e.g. 22] Monterey 12.2.1
Smartphone (please complete the following information):
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
Additional context Add any other context about the problem here.
Have you tried installing directly from Github?
git clone https://github.com/ANTsX/ANTsPy
cd ANTsPy
python3 setup.py install
Have you tried installing directly from Github?
git clone https://github.com/ANTsX/ANTsPy cd ANTsPy python3 setup.py install
Yes, I tried that way before, it gave same errors.
That's difficult, then, for us --- neither @stnava nor I have the new M1 chip (although we're hoping to get one soon). Are you able to test installation on a different platform?
That's difficult, then, for us --- neither @stnava nor I have the new M1 chip (although we're hoping to get one soon). Are you able to test installation on a different platform?
Currently I only have one laptop. But I successfully installed antspyx on Google Colab and Linux (a remote GPU)
I believe this will be resolved when we update itk + ants tags - but that may not happen too soon. does "regular" ants compile on the M1?
I believe this will be resolved when we update itk + ants tags - but that may not happen too soon. does "regular" ants compile on the M1?
I guess it could. Since yesterday I used SuperBuild to compile the ANTs on M1
ok - we have not updated the itk/ants tags for antspyx for quite some time. it generally takes me a day or so to update pypi ... don't have that time now. but I pushed updates to the tags just now. you might try to compile from source again ( may need a fresh clone )
ok - we have not updated the itk/ants tags for antspyx for quite some time. it generally takes me a day or so to update pypi ... don't have that time now. but I pushed updates to the tags just now. you might try to compile from source again ( may need a fresh clone )
Sounds good, I will have a try later today. thank you so much
I pushed a bunch of changes to pybind11 as well as various antspyx things .... I had to remove some functionality that is probably not used much anyway as I didn't have time to think through the fixes for those ... might address the comp issues though.
Thanks, @stnava. I'll check out the latest repo for a test drive on some of the stuff I'm working on and let you know if I encounter anything.
I pushed a bunch of changes to pybind11 as well as various antspyx things .... I had to remove some functionality that is probably not used much anyway as I didn't have time to think through the fixes for those ... might address the comp issues though.
Hi @stnava, I have cloned the latest repository and installed the antspyx. It can now install successfully, but some required modules or dependencies will not automatically installed. It should be done manually. Hope this could be solved in the next version.
ok - I just pushed a few fixes minutes ago .... I think this latest push gets us very close to full functionality and probably successful on M1.
ok - I just pushed a few fixes minutes ago .... I think this latest push gets us very close to full functionality and probably successful on M1.
Sounds great. Thanks @stnava .
ok - I just pushed a few fixes minutes ago .... I think this latest push gets us very close to full functionality and probably successful on M1.
Hi @stnava , when I try to import ants, it gives an error. Here is the screenshot:
looks like a PIL issue - maybe reinstall PIL? anyway, I cannot reproduce this one. it may be a couple months or so before we have our own M1 machines on which to test.
looks like a PIL issue - maybe reinstall PIL? anyway, I cannot reproduce this one. it may be a couple months or so before we have our own M1 machines on which to test.
I think it may be the error of conda environment, since I can import ants successfully on virtual environment or without conda.
ok - that symbol _xcb_connect
is not something I've ever seen in connection with ITK or ANTs.
Any update? Having ANTsPy working on M1 would be great for a software we are developing.
Any update? Having ANTsPy working on M1 would be great for a software we are developing.
I am sorry, I tried on two different M1 Macs, it did not work well