You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There seems to be an issue with setting up itk-elastix on an M1 Mac. Running pip install itk-elastix is successful, and I can run import itk in a python script without issue. The problem is that I cannot access methods within itk. For example, from itk import imread fails:
ImportError: cannot import name 'imread' from 'itk' (/Users/test-user/miniconda3/lib/python3.10/site-packages/itk/__init__.py)
The computer is a MacBook Pro with M1 Max running macOS Ventura 13.3. I tried the exact same setup procedure on an Intel-based Mac with same macOS, and could not reproduce the issue. On the Intel-based Mac commands like from itk import imread work just fine. Indeed, calling dir(itk) on the Intel system returns a very long list that includes imread, but with M1 system the same command returns only these:
There seems to be an issue with setting up itk-elastix on an M1 Mac. Running
pip install itk-elastix
is successful, and I can runimport itk
in a python script without issue. The problem is that I cannot access methods within itk. For example,from itk import imread
fails:ImportError: cannot import name 'imread' from 'itk' (/Users/test-user/miniconda3/lib/python3.10/site-packages/itk/__init__.py)
The computer is a MacBook Pro with M1 Max running macOS Ventura 13.3. I tried the exact same setup procedure on an Intel-based Mac with same macOS, and could not reproduce the issue. On the Intel-based Mac commands like
from itk import imread
work just fine. Indeed, callingdir(itk)
on the Intel system returns a very long list that includes imread, but with M1 system the same command returns only these:['builtins', 'cached', 'doc', 'file', 'loader', 'name', 'package', 'path', 'spec']
Please advise if there are some extra steps for setting up itk-elastix for the M1 system. Thank you.
The text was updated successfully, but these errors were encountered: