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

Method visibility issue with Apple M1 install #231

Closed
artoews opened this issue Jun 30, 2023 · 1 comment
Closed

Method visibility issue with Apple M1 install #231

artoews opened this issue Jun 30, 2023 · 1 comment

Comments

@artoews
Copy link

artoews commented Jun 30, 2023

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:

['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.

@m-albert
Copy link

@artoews Have a look at this issue: #136

itk-elastix==0.14.2 doesn't have the problem.

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