InsightSoftwareConsortium / itkwidgets

An elegant Python interface for visualization on the web platform to interactively generate insights into multidimensional images, point sets, and geometry.
https://itkwidgets.readthedocs.io/
Apache License 2.0
579 stars 83 forks source link

Failed to import 'itkwidgets' #615

Closed donny8 closed 1 year ago

donny8 commented 1 year ago

Hello I tried from itkwidgets import view , but error occurred as follows.

" AttributeError: type object 'DataImage' has no attribute '_instance_inits' "

image

Using pip freeze, I checked my itkwidgets version is 0.25.2.

image

I am currently using VisualStudioCode, and still cannot import the package on the JupyterLab also. Is there any idea how to fix it?

Thanks

donny8 commented 1 year ago

https://github.com/InsightSoftwareConsortium/itkwidgets/issues/613#issuecomment-1436113213 Following the comment, I re-installed the package using the command pip install 'itkwidgets[all]>=1.0a16' , and then suddenly the error is solved. Thank you