question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Using JupyterLab extensions with TLJH JupyterLab Build suggested

See original GitHub issue

Hello I am not sure where to go with this now, tried enabling a couple extensions but received a Jupyterlab build error

Build Recommended
JupyterLab build is suggested:
@jupyterlab/plotly-extension needs to be included in build

After an attempting build I get this error:

Build Failed
Build failed with 500, please run 'jupyter lab build' on the server for full output

I tried to different build methods with the following errors

jupyterlab build

Message: 'Error in rmtree'
Arguments: ()
An error occured.
FileExistsError: [Errno 17] File exists: '/opt/tljh/user/share/jupyter/lab/staging'
See the log file for details:  /tmp/jupyterlab-debug-xcu1cdjw.log

/opt/tljh/user/share/jupyter/lab/staging$
build  index.js  linked_packages  node_modules  package.json  templates  webpack.config.js  webpack.prod.config.js  yarn.js  yarn.lock

[LabBuildApp] Building in /opt/tljh/user/share/jupyter/lab
[LabBuildApp] Node v12.8.1

[LabBuildApp] Building jupyterlab assets (build:prod:minimize)
[LabBuildApp] Traceback (most recent call last):

[LabBuildApp]   File "/opt/tljh/user/lib/python3.6/site-packages/jupyterlab/debuglog.py", line 47, in debug_logging
    yield

[LabBuildApp]   File "/opt/tljh/user/lib/python3.6/site-packages/jupyterlab/labapp.py", line 96, in start
    core_config=self.core_config)

[LabBuildApp]   File "/opt/tljh/user/lib/python3.6/site-packages/jupyterlab/commands.py", line 378, in build
    command=command, clean_staging=clean_staging)

[LabBuildApp]   File "/opt/tljh/user/lib/python3.6/site-packages/jupyterlab/commands.py", line 564, in build
    clean=clean_staging

[LabBuildApp]   File "/opt/tljh/user/lib/python3.6/site-packages/jupyterlab/commands.py", line 1010, in _populate_staging
    os.makedirs(staging)

[LabBuildApp]   File "/opt/tljh/user/lib/python3.6/os.py", line 220, in makedirs
    mkdir(name, mode)

[LabBuildApp] FileExistsError: [Errno 17] File exists: '/opt/tljh/user/share/jupyter/lab/staging'

[LabBuildApp] Exiting application: JupyterLab

**jupyterlab-build**
output
Message: 'Error in rmtree'
Arguments: ()
An error occured.
FileExistsError: [Errno 17] File exists: '/opt/tljh/user/share/jupyter/lab/staging'
See the log file for details:  /tmp/jupyterlab-debug-3onmje93.log

LabBuildApp] Building in /opt/tljh/user/share/jupyter/lab
[LabBuildApp] Node v12.8.1

[LabBuildApp] Building jupyterlab assets (build:prod:minimize)
[LabBuildApp] Traceback (most recent call last):

[LabBuildApp]   File "/opt/tljh/user/lib/python3.6/site-packages/jupyterlab/debuglog.py", line 47, in debug_logging
    yield

[LabBuildApp]   File "/opt/tljh/user/lib/python3.6/site-packages/jupyterlab/labapp.py", line 96, in start
    core_config=self.core_config)

[LabBuildApp]   File "/opt/tljh/user/lib/python3.6/site-packages/jupyterlab/commands.py", line 378, in build
    command=command, clean_staging=clean_staging)

[LabBuildApp]   File "/opt/tljh/user/lib/python3.6/site-packages/jupyterlab/commands.py", line 564, in build
    clean=clean_staging

[LabBuildApp]   File "/opt/tljh/user/lib/python3.6/site-packages/jupyterlab/commands.py", line 1010, in _populate_staging
    os.makedirs(staging)

[LabBuildApp]   File "/opt/tljh/user/lib/python3.6/os.py", line 220, in makedirs
    mkdir(name, mode)

[LabBuildApp] FileExistsError: [Errno 17] File exists: '/opt/tljh/user/share/jupyter/lab/staging'

[LabBuildApp] Exiting application: JupyterLab
(base) jupyter-bryana@rstudio-ubuntu-s-1vcpu-2gb-sfo2-01:/tmp$ cat /tmp/jupyterlab-debug-3onmje93.log
[LabBuildApp] Building in /opt/tljh/user/share/jupyter/lab
[LabBuildApp] Node v12.8.1

[LabBuildApp] Building jupyterlab assets (build:prod:minimize)
[LabBuildApp] Traceback (most recent call last):

[LabBuildApp]   File "/opt/tljh/user/lib/python3.6/site-packages/jupyterlab/debuglog.py", line 47, in debug_logging
    yield

[LabBuildApp]   File "/opt/tljh/user/lib/python3.6/site-packages/jupyterlab/labapp.py", line 96, in start
    core_config=self.core_config)

[LabBuildApp]   File "/opt/tljh/user/lib/python3.6/site-packages/jupyterlab/commands.py", line 378, in build
    command=command, clean_staging=clean_staging)

[LabBuildApp]   File "/opt/tljh/user/lib/python3.6/site-packages/jupyterlab/commands.py", line 564, in build
    clean=clean_staging

[LabBuildApp]   File "/opt/tljh/user/lib/python3.6/site-packages/jupyterlab/commands.py", line 1010, in _populate_staging
    os.makedirs(staging)

[LabBuildApp]   File "/opt/tljh/user/lib/python3.6/os.py", line 220, in makedirs
    mkdir(name, mode)

[LabBuildApp] FileExistsError: [Errno 17] File exists: '/opt/tljh/user/share/jupyter/lab/staging'

[LabBuildApp] Exiting application: JupyterLab

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
consideRatiocommented, Aug 16, 2022

@timhuff note that jupyter lab build is only relevant for jupyterlab 2 or jupyterlab 2 specific extensions you have installed. JupyterLab 3+ doesn’t need that.

1reaction
consideRatiocommented, Oct 25, 2021

Indeed sudo -E need to be used to make changes about this, so perhaps sudo -E jupyter lab build ?

I’ll close this as a bit too outdated at this point to keep tracking in this issue. I see no concrete action point to take with regards to changing content in docs or TLJH itself at this point.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Enabling Jupyter Notebook extensions - The Littlest JupyterHub
This can be completed using the terminal in the JupyterHub (or via SSH-ing into your VM and using this terminal). Enabling extensions via...
Read more >
Extensions — JupyterLab 3.6.0a5 documentation
The Extension Manager in JupyterLab and the jupyter labextension install command can install source extension packages from npm. Installing a source extension ......
Read more >
Customizing the JupyterHub environment (TLJH)
You can run tljh-config in two ways: From inside a terminal in JupyterHub while logged in as an admin user. This method is...
Read more >
jupyter lab - JupyterLab User Settings File - Stack Overflow
Running jupyter-lab --generate-config should generate a config file in /home/<USER>/.jupyter/jupyter_notebook_config.py.
Read more >
Yuvi Panda
This will disable the link-share labextension, both in JupyterLab and RetroLab. You can find the name of the extension, as well as its ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found