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

Define all requirements required in setup.py file for jupyter server extension #991

Open
grallewellyn opened this issue Apr 17, 2024 · 0 comments
Assignees

Comments

@grallewellyn
Copy link
Collaborator

We also think it might be that jupyter server extension isn't installing all of its requirements: MAAP-Project/jupyter-server-extension#4 namely xmltodict

Right now I am testing adding in all these requirements to the setup.py of jupyter server extension, but if I add in the packages as

jupyter_packaging==0.12.3
jupyter_server==2.13.0
nbformat==5.10.3
notebook==7.1.2
pytest==8.1.1
PyYAML==6.0.1
Requests==2.31.0
setuptools==68.2.2
tornado==6.4
xmltodict==0.13.0

The build fails with

Type Error: The "path" argument must be of type string or an instance of Buffer or URL. Received undefined
#30 124.3     at Object.mkdir (node:fs:1359:10)
#30 124.3     at /opt/conda/envs/r/lib/python3.10/site-packages/jupyterlab/staging/yarn.js:314:6147
#30 124.3     at new Promise (<anonymous>)
#30 124.3     at $t.mkdirPromise (/opt/conda/envs/r/lib/python3.10/site-packages/jupyterlab/staging/yarn.js:314:6115)
#30 124.3     at Rt.setup (/opt/conda/envs/r/lib/python3.10/site-packages/jupyterlab/staging/yarn.js:426:1556)
#30 124.3     at Rt.find (/opt/conda/envs/r/lib/python3.10/site-packages/jupyterlab/staging/yarn.js:426:720)
#30 124.3     at ou.execute (/opt/conda/envs/r/lib/python3.10/site-packages/jupyterlab/staging/yarn.js:453:512)
#30 124.3     at async ou.validateAndExecute (/opt/conda/envs/r/lib/python3.10/site-packages/jupyterlab/staging/yarn.js:345:664)
#30 124.3     at async Un.run (/opt/conda/envs/r/lib/python3.10/site-packages/jupyterlab/staging/yarn.js:359:2057)
#30 124.3     at async Un.runExit (/opt/conda/envs/r/lib/python3.10/site-packages/jupyterlab/staging/yarn.js:359:2241)
#30 124.3 
#30 ERROR: process "conda run -n r /bin/bash -c jupyter lab build &&     jupyter lab clean &&     jlpm cache clean &&     npm cache clean --force &&     rm -rf $HOME/.node-gyp &&     rm -rf $HOME/.local" did not complete successfully: exit code: 1

Unpinning the versions is a successful build, but fails with Error: Failed to run the workspace: "Server 'jupyter' in container 'ws/s3fs' not available." when launching in the ADE which means jupyter_server needs to be pinned to 2.12.5

Potentially try adding: git+https://github.com/MAAP-Project/[email protected]#egg=maapPy to install_requires for jupyter server extension

Related to: #965

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

1 participant