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

Error when loading pythreejs #57

Closed
jhoydis opened this issue Feb 20, 2023 · 2 comments · Fixed by #59
Closed

Error when loading pythreejs #57

jhoydis opened this issue Feb 20, 2023 · 2 comments · Fixed by #59

Comments

@jhoydis
Copy link

jhoydis commented Feb 20, 2023

It seems that pythreejs (v4.2.1) does not load anymore due to a missing attribute in ipydatawidgets (4.3.3).

File ".../lib/python3.8/site-packages/ipydatawidgets/ndarray/union.py", line 59, in subclass_init
  cls._instance_inits.append(self.instance_init)
AttributeError: type object 'DataImage' has no attribute '_instance_inits'

When I force the version of ipydatawidgets to 4.3.2 the error disappears.

@gattia
Copy link

gattia commented Feb 25, 2023

Same issue is occurring for itkwidgets:

InsightSoftwareConsortium/itkwidgets#621
InsightSoftwareConsortium/itkwidgets#615

Forcing to <4.3.3 fixes the error.

@vidartf
Copy link
Owner

vidartf commented Jun 11, 2023

Sorry for taking so long to get back on this. The "fix" in 4.3.3 was to add compatibility with latest traitlets. I should have made it backwards compatible. A fix is in #59 now, and I hope to cut a new patch release with it later today.

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

Successfully merging a pull request may close this issue.

3 participants