jupyter / docker-demo-images

Demo images for use in try.jupyter.org and tmpnb.org
BSD 3-Clause "New" or "Revised" License
75 stars 132 forks source link

Permission denied when installing kernelspec #104

Closed vaibhavsagar closed 6 years ago

vaibhavsagar commented 6 years ago

I'm trying to update the IHaskell configuration and I'm running into this error:

Exception: error running: /opt/conda/bin/jupyter kernelspec install --user /tmp/tmpThreadId41804289383846930886/has
kell --replace
exit status: 1
stderr: [Errno 13] Permission denied: '/home/jovyan/.local/share/jupyter/kernels/haskell'

I haven't made any changes other than bumping some versions but I can share my modified Dockerfile if that would help.

vaibhavsagar commented 6 years ago

I've worked around this in #105, but if there is a better way I would love to do that instead.

Carreau commented 6 years ago

The error is weird. Let's try to see if we can figure out the permission of /home/jovyan/.local/share/jupyter/kernels/ during build, otherwise I think the USER root permission should be acceptable.

vaibhavsagar commented 6 years ago

As pointed out in the linked PR, the solution was to specify --prefix=$CONDA_DIR.