Version/Environment (if relevant):
This applies to any Domino version when using older "Domino Analytics Distributions" environments that were released prior to Domino version 5.0.
Issue:
When adding domino-code-assist to requirements.txt, if you are using Jupyter with an old "Domino Analytics Distributions" compute environment, like the Ubuntu18_DAD_Py3.8_R4.0-20210709_noCUDA from Domino 4.5, the Workspace IDE will fail with an error in the User log No module named 'jupyter_server.contents'
like:
2023-09-14T17:51:14.204Z: Traceback (most recent call last):
2023-09-14T17:51:14.204Z: File "/opt/conda/lib/python3.8/site-packages/notebook/traittypes.py", line 232, in _resolve_classes
2023-09-14T17:51:14.204Z: klass = self._resolve_string(klass)
2023-09-14T17:51:14.204Z: File "/opt/conda/lib/python3.8/site-packages/traitlets/traitlets.py", line 2009, in _resolve_string
2023-09-14T17:51:14.204Z: return import_item(string)
2023-09-14T17:51:14.204Z: File "/opt/conda/lib/python3.8/site-packages/traitlets/utils/importstring.py", line 30, in import_item
2023-09-14T17:51:14.204Z: module = __import__(package, fromlist=[obj])
2023-09-14T17:51:14.204Z: ModuleNotFoundError: No module named 'jupyter_server.contents'
Other IDEs like VScode, R and JupyterLab are not impacted by this.
Root Cause:
There is a problem in the underlying libraries. It is due to nuances or defects in the chain of dependencies across the many version changes of various libraries since 2021.
Resolution:
To resolve the problem add a new library to your project's requirements.txt. Add traitlets<5.10.0
above (prior to) domino-code-assist
then save and launch an entirely new workspace (rather than restart).
Comments
0 comments
Please sign in to leave a comment.