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

ITK / numpy errors on master #25

Open
finetjul opened this issue Jun 29, 2021 · 1 comment
Open

ITK / numpy errors on master #25

finetjul opened this issue Jun 29, 2021 · 1 comment
Assignees

Comments

@finetjul
Copy link
Member

With itk 5.2, I got the following errors:

python server.py --port 8181 --no-browser
Traceback (most recent call last):
  File "server.py", line 11, in <module>
    from hello_world import AlgorithmApi
  File "C:\Work\ParaViewGlance\paraview-glance-py\server\hello_world.py", line 2, in <module>
    import itk
  File "C:\Work\ParaViewGlance\paraview-glance-py\env\lib\site-packages\itk\__init__.py", line 28, in <module>
    from itk.support.extras import *
  File "C:\Work\ParaViewGlance\paraview-glance-py\env\lib\site-packages\itk\support\extras.py", line 25, in <module>
    from numpy.typing import ArrayLike
  File "C:\Work\ParaViewGlance\paraview-glance-py\env\lib\site-packages\numpy\typing\__init__.py", line 315, in <module>
    from ._shape import _Shape, _ShapeLike
  File "C:\Work\ParaViewGlance\paraview-glance-py\env\lib\site-packages\numpy\typing\_shape.py", line 15, in <module>
    _ShapeLike = Union[SupportsIndex, Sequence[SupportsIndex]]
  File "C:\work\Python\Python374\lib\typing.py", line 254, in inner
    return func(*args, **kwds)
  File "C:\work\Python\Python374\lib\typing.py", line 629, in __getitem__
    params = tuple(_type_check(p, msg) for p in params)
  File "C:\work\Python\Python374\lib\typing.py", line 629, in <genexpr>
    params = tuple(_type_check(p, msg) for p in params)
  File "C:\work\Python\Python374\lib\typing.py", line 142, in _type_check
    raise TypeError(f"{msg} Got {arg!r:.100}.")
TypeError: Parameters to generic types must be types. Got NotImplemented.
@finetjul
Copy link
Member Author

Actually, it is due to the dependency of itk 5.03b that installs itk modules >= 5.03 (and in this case 5.2 which seems to be the issue).

Upgrading to itk 5.1.0 fixes the error

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