BYU-PRISM / Seeq

Hybrid (Physics-Informed) Machine Learning
MIT License
45 stars 5 forks source link

Error with UI on launch: NotImplementedError: Widgets cannot be copied; custom implementation required #73

Open jameshiggie opened 1 month ago

jameshiggie commented 1 month ago

Error with UI on launch

File /usr/local/.pyenv/versions/3.8.19/lib/python3.8/copy.py:153, in deepcopy(x, memo, _nil)
    151 copier = getattr(x, "__deepcopy__", None)
    152 if copier is not None:
--> 153     y = copier(memo)
    154 else:
    155     reductor = dispatch_table.get(cls)

File /usr/local/.pyenv/versions/3.8.19/lib/python3.8/site-packages/ipywidgets/widgets/widget.py:512, in Widget.__deepcopy__(self, memo)
    511 def __deepcopy__(self, memo):
--> 512     raise NotImplementedError("Widgets cannot be copied; custom implementation required")

NotImplementedError: Widgets cannot be copied; custom implementation required

image

jameshiggie commented 1 month ago

we found locking ipywidgets to 8.1.0 fixes this problem.

suspected bug linked to https://github.com/jupyter-widgets/ipywidgets/pull/3780

jameshiggie commented 1 month ago

suggest a update to requirements.txt

Line 2: ipywidgets==8.1.0

ysghandi commented 2 weeks ago

We encountered the same issue and updating the ipywidgets==8.1.0 addresses the error.