You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With jupyter_ydoc==0.2.0 there seems to be an issue with missing pkg_resources:
lerna ERR! yarn run build:prod stderr:
Traceback (most recent call last):
File "/tmp/build-env-sga8vbqf/bin/jupyter-labextension", line 5, in <module>
from jupyterlab.labextensions import main
File "/tmp/build-env-sga8vbqf/lib/python3.10/site-packages/jupyterlab/labextensions.py", line 37, in <module>
from .labapp import LabApp
File "/tmp/build-env-sga8vbqf/lib/python3.10/site-packages/jupyterlab/labapp.py", line 15, in <module>
from jupyter_server_ydoc.ydoc import JupyterSQLiteYStore
File "/tmp/build-env-sga8vbqf/lib/python3.10/site-packages/jupyter_server_ydoc/__init__.py", line 6, in <module>
from .ydoc import YDocWebSocketHandler
File "/tmp/build-env-sga8vbqf/lib/python3.10/site-packages/jupyter_server_ydoc/ydoc.py", line 11, in <module>
from jupyter_ydoc import ydocs as YDOCS # type: ignore
File "/tmp/build-env-sga8vbqf/lib/python3.10/site-packages/jupyter_ydoc/__init__.py", line 1, in <module>
import pkg_resources
In that case notebook uses hatch as the build backend but triggers commands from JupyterLab to build the extension, which probably explains why it hits the jupyter_ydoc path since there is a top-level import.
Expected behavior
Probably there should not be a dependency on pkg_resources?
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋
I tested it in a conda-forge environment, where setuptools is always installed with python, and I didn't see this issue, thanks for reporting @jtpio.
The Jupyter Releaser failed when releasing v0.2.0, and I had to publish manually. It should be fixed now 👍
Description
With
jupyter_ydoc==0.2.0
there seems to be an issue with missingpkg_resources
:Reproduce
This was noticed in jupyter/notebook#6539 (comment), with this example run: https://github.com/jupyter/notebook/actions/runs/3145280672/jobs/5112365511
In that case
notebook
useshatch
as the build backend but triggers commands from JupyterLab to build the extension, which probably explains why it hits thejupyter_ydoc
path since there is a top-level import.Expected behavior
Probably there should not be a dependency on
pkg_resources
?Context
jupyter/notebook#6539 (comment)
The text was updated successfully, but these errors were encountered: