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

Cant import Viewer #621

Closed
gattia opened this issue Feb 25, 2023 · 4 comments
Closed

Cant import Viewer #621

gattia opened this issue Feb 25, 2023 · 4 comments

Comments

@gattia
Copy link

gattia commented Feb 25, 2023

Seems to be the same problem as #615
However, updating to the latest alpha just produces other errors:

File "/dataNAS/people/aagatti/miniconda/envs/generative_anatomy/lib/python3.9/site-packages/pyfocusr/focusr.py", line 5, in <module>
    from itkwidgets import Viewer
  File "/dataNAS/people/aagatti/miniconda/envs/generative_anatomy/lib/python3.9/site-packages/itkwidgets/__init__.py", line 4, in <module>
    register_default_codecs()
  File "/dataNAS/people/aagatti/miniconda/envs/generative_anatomy/lib/python3.9/site-packages/imjoy_rpc/utils.py", line 347, in register_default_codecs
    api.registerCodec(
  File "/dataNAS/people/aagatti/miniconda/envs/generative_anatomy/lib/python3.9/site-packages/imjoy_rpc/werkzeug/local.py", line 349, in __getattr__
    return getattr(self._get_current_object(), name)
  File "/dataNAS/people/aagatti/miniconda/envs/generative_anatomy/lib/python3.9/site-packages/imjoy_rpc/__init__.py", line 48, in __getattr__
    return _rpc_context.api[attr]
KeyError: 'registerCodec'

I tried reverting back to an old itkwidgets (0.32.5) and that failed too. I had github actions running tests 2 weeks ago that are now failing.

2 weeks ago:
https://github.com/gattia/pyfocusr/actions/runs/4152699476/jobs/7183836252
Today:
https://github.com/gattia/pyfocusr/actions/runs/4267422214/jobs/7429010153

Looks like ipydatawidgets released a new version last week and it has broken something in the itkwidgets pipeline... https://pypi.org/project/ipydatawidgets/#history

if install ipywidgets<4.3.3 things work. I will report to ipywidgets too.

@thewtex
Copy link
Member

thewtex commented Feb 26, 2023

@gattia thanks for the information! If ipydatawidgets is downgraded to 4.3.2, does the issue still occur?

@gattia
Copy link
Author

gattia commented Feb 26, 2023

Yep, 4.3.2 works as expected.

Happy to close if this is considered a problem with ipydatawidgets. But might be good to change requirements to <4.3.3 at least for now.

@thewtex
Copy link
Member

thewtex commented Feb 27, 2023

@gattia 👍 adding constraint in #624.

@thewtex
Copy link
Member

thewtex commented Mar 3, 2023

Pin released in 0.32.6

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