An elegant Python interface for visualization on the web platform to interactively generate insights into multidimensional images, point sets, and geometry.
I'm having an issue with itk 5.3.0 which prevents me from using itkwidgets (it fails at import), as there is a check in place which fails because itk attribute __version__ does not exist:
$ import itkwidgets
...
File /opt/homebrew/Caskroom/miniconda/base/envs/ai_med/lib/python3.9/site-packages/itkwidgets/integrations/itk.py:8
6 import itk
7 if not hasattr(itk, '__version__') or version.parse(itk.__version__) < version.parse('5.3.0'):
----> 8 raise RuntimeError('itk 5.3 or newer is required. `pip install itk>=5.3.0`')
9 HAVE_ITK = True
10 except ImportError:
RuntimeError: itk 5.3 or newer is required. `pip install itk>=5.3.0`
Upon investigating, this looks like an itkwidgets issue that seems to break itk.__version__ attribute upon installation.
I'm on macOS 13.2.1 (M1), and thus cannot install itk or itkwidgets through conda.
$ python
Python 3.9.16 | packaged by conda-forge | (main, Feb 1 2023, 21:38:11)
[Clang 14.0.6 ] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import itk
>>> itk.__version__
'5.3.0'
Now let's install itkwidgets (here version 0.32.6):
$ python
Python 3.9.16 | packaged by conda-forge | (main, Feb 1 2023, 21:38:11)
[Clang 14.0.6 ] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import itk
>>> itk.__version__
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'itk' has no attribute '__version__'
Uninstalling itkwidgets through pip uninstall itkwidgets does not solve this at this point.
I've tried installing itkwidgets versions 0.32.6, 0.32.5, 0.32.4 with same results., as well as latest 1.0a24.
Hi,
I'm having an issue with
itk 5.3.0
which prevents me from usingitkwidgets
(it fails at import), as there is a check in place which fails becauseitk
attribute__version__
does not exist:Upon investigating, this looks like an
itkwidgets
issue that seems to breakitk.__version__
attribute upon installation.I'm on macOS 13.2.1 (M1), and thus cannot install
itk
oritkwidgets
throughconda
.Reproducible environment:
Let's try at this point in the terminal:
Now let's install
itkwidgets
(here version0.32.6
):And check again in the Python interpreter:
Uninstalling
itkwidgets
throughpip uninstall itkwidgets
does not solve this at this point.I've tried installing
itkwidgets
versions 0.32.6, 0.32.5, 0.32.4 with same results., as well as latest1.0a24
.