microsoft / Oryx

Build your repo automatically.
Other
768 stars 176 forks source link

Oryx install of JupyterLab extension results in incorrect file locations #1815

Open ddrinka opened 1 year ago

ddrinka commented 1 year ago

Bug Report

Oryx is being run automatically by GitHub CodeSpaces on a requirements.txt file for a python workspace.

Installing the extension manually works find:

$ /opt/python/3.10.4/bin/python3.10 -m pip install --user jupyter-bokeh
$ jupyter-labextension list
JupyterLab v3.5.2
/home/codespace/.local/share/jupyter/labextensions
        @bokeh/jupyter_bokeh v3.0.5 enabled OK (python, jupyter_bokeh)

$ pip show -f jupyter-bokeh
...
Files:
  ../../../etc/jupyter/nbconfig/notebook.d/jupyter_bokeh.json

$ locate jupyter_bokeh.json
/home/codespace/.local/etc/jupyter/nbconfig/notebook.d/jupyter_bokeh.json
/home/codespace/.local/lib/python3.10/site-packages/etc/jupyter/nbconfig/notebook.d/jupyter_bokeh.json

Installing the extension using the command Oryx generates does not work:

$ /opt/python/3.10.4/bin/python3.10 -m pip install --cache-dir /usr/local/share/pip-cache --prefer-binary jupyter-bokeh --target=/home/codespace/.local/lib/python3.10/site-packages --upgrade
$ jupyter-labextension list
JupyterLab v3.5.2
/home/codespace/.local/share/jupyter/labextensions

$ pip show -f jupyter-bokeh
...
Files:
  ../../etc/jupyter/nbconfig/notebook.d/jupyter_bokeh.json

$ locate jupyter_bokeh.json
/home/codespace/.local/lib/python3.10/site-packages/etc/jupyter/nbconfig/notebook.d/jupyter_bokeh.json
william-msft commented 1 year ago

Hi @ddrinka thank you for reaching out. May you share the sample application you are using? Also may you please share the full Oryx logs?

ddrinka commented 1 year ago

I've created a public repro: https://github.com/ddrinka/OryxPipRepro

Here's the pre-build: https://github.com/ddrinka/OryxPipRepro/actions/runs/3943266877/jobs/6747908165

Here are the logs after connecting to the CodeSpace: build.log oryx-build-commands.txt