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

Jupyter interaction with ROOT #106

Open
tomeichlersmith opened this issue Dec 10, 2024 · 0 comments
Open

Jupyter interaction with ROOT #106

tomeichlersmith opened this issue Dec 10, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@tomeichlersmith
Copy link
Member

Describe the bug
If a person attempts to open Jupyter from within an ldmx image (dev or pro), they are prevented because the directories we add to specific jupyter environment variables are not write-able.

Error:

OSError: [Errno 30] Read-only filesystem: '/usr/local/etc/notebook:'

Location where this is set:

docker/Dockerfile

Lines 226 to 227 in 1c729e2

ENV JUPYTER_PATH=${ROOTSYS}/etc/notebook:${JUPYTER_PATH}
ENV JUPYTER_CONFIG_DIR=${ROOTSYS}/etc/notebook:${JUPYTER_CONFIG_DIR}

To Reproduce
Steps to reproduce the behavior:

  1. denv init ldmx/dev:latest
  2. denv python3 -m pip install jupyterlab
  3. denv jupyter lab
  4. See error

Expected behavior
We can avoid this error by not setting these environment variables.
A workaround is to edit the file at <denv workspace>/.profile to unset these variables.

denv true # make sure profile is copied over
cat >> .profile <<PROF
# unset errorneously set variables that should not be used since ROOT
# is installed in a read-only location
unset JUPYTER_CONFIG_DIR
unset JUPYTER_PATH
PROF

What tag of the container are you using? What application are you using to run the container?
Both of these are answered by denv config print.

denv_workspace="/export/scratch/users/eichl008"
denv_name="eichl008"
denv_image="ldmx/pro:v4.0.1"
denv_mounts=""
denv_shell="/bin/bash -i"
denv_network="true"
apptainer version 1.3.5-1.el8
@tomeichlersmith tomeichlersmith added the bug Something isn't working label Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant