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

Function not found in ITK module #232

Closed
nkrah opened this issue Sep 11, 2023 · 1 comment
Closed

Function not found in ITK module #232

nkrah opened this issue Sep 11, 2023 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@nkrah
Copy link
Collaborator

nkrah commented Sep 11, 2023

I am getting:
module 'itk' has no attribute 'ChangeInformationImageFilter'
when trying to run test015_iec_phantom_1.py.

I do not seem to be the first one with this issue in ITK:
https://discourse.itk.org/t/changeinformationimagefilter-missing-from-pip-installed-itk-5-3rc4post3/5375

In short:

  1. Uninstall ITK
  2. Manually remove all traces of ITK from your python environment
  3. re-install ITK

For me, this was:

pip uninstall itk
rm -r /Users/nkrah/.virtualenvs/opengate/lib/python3.9/site-packages/itk*
pip install --upgrade --pre itk

Maybe that helps others.
@tbaudier : Is that an issue normal users (i.e., those who install opengate via pip) might encounter? If so, any way to catch that error or make the user aware?

nkrah added a commit that referenced this issue Nov 17, 2023
Add documentation about an ITK related issue (#232)
@nkrah nkrah closed this as completed Nov 17, 2023
@nkrah
Copy link
Collaborator Author

nkrah commented Nov 17, 2023

documented in developer guide

@nkrah nkrah added the documentation Improvements or additions to documentation label Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant