the-littlest-jupyterhub
the-littlest-jupyterhub copied to clipboard
Error during update TLJH, after delete conda package.
Bug description
Hello,
I had an old version of TLJH (from 2019). For mistake I've installed conda version of jupyter on TLJH.
Then I removed jupyter packages from conda, and tried to install TLJH with comand:
curl -L https://tljh.jupyter.org/bootstrap.py | sudo -E python3
at the end of installation I got an error:
subprocess.CalledProcessError: Command '['/opt/tljh/user/bin/jupyter', 'labextension', 'install', '@jupyterlab/hub-extension', '@jupyter-widgets/jupyterlab-manager']' returned non-zero exit status 1.
I installed new version of jupyterlab (0.3.5) and install jupyterlab/hub-extension v0.12.0. It seem's that all work fine. But I can'r update tljh with curl -L https://tljh.jupyter.org/bootstrap.py | sudo -E python3. Are you planning to update jupyterlab version in future, and remove installation of @jupyter-widgets/jupyterlab-manager. It seems it include in jupyterlab_widgets now.
Big thank's for your project
Expected behaviour
Actual behaviour
How to reproduce
- conda install -c conda-forge conda remove jupyter-resource-usage jupyter_client jupyter_console jupyter_core jupyter_server jupyter_telemetry jupyterhub jupyterhub-base jupyterhub-singleuser jupyterlab_pygments jupyterlab_widgets
- conda remove jupyter-resource-usage jupyter_client jupyter_console jupyter_core jupyter_server jupyter_telemetry jupyterhub jupyterhub-base jupyterhub-singleuser jupyterlab_pygments jupyterlab_widgets
- pip install jupyter==1.0.0
- curl -L https://tljh.jupyter.org/bootstrap.py | sudo -E python3
- See error
Your personal set up
- OS:
- Version(s):
I also got error here: (base) root@srv-jupyter:/home/sidorov_p# jupyterhub --version
(base) root@srv-jupyter:/home/sidorov_p# pip freeze |grep alembic
alembic==1.8.0
(base) root@srv-jupyter:/home/sidorov_p# which jupyter
/opt/tljh/user/bin/jupyter
(base) root@srv-jupyter:/home/sidorov_p# which jupyterhub
/opt/tljh/user/bin/jupyterhub
(base) root@srv-jupyter:/home/sidorov_p# jupyter --version
Selected Jupyter core packages...
IPython : 7.34.0
ipykernel : 6.10.0
ipywidgets : 7.4.2
jupyter_client : 7.2.0
jupyter_core : 4.10.0
jupyter_server : 1.18.0
jupyterlab : 0.35.4
nbclient : 0.6.4
nbconvert : 6.5.0
nbformat : 5.4.0
notebook : 5.7.8
qtconsole : 5.3.1
traitlets : 5.3.0
Full environment
(base) root@srv-jupyter:/home/sidorov_p# conda list
# packages in environment at /opt/tljh/user:
#
# Name Version Build Channel
_libgcc_mutex 0.1 conda_forge conda-forge
_openmp_mutex 4.5 2_gnu conda-forge
alembic 1.8.0 <pip>
anyio 3.6.1 <pip>
argon2-cffi 21.3.0 <pip>
argon2-cffi-bindings 21.2.0 <pip>
async-generator 1.10 <pip>
attrs 21.4.0 <pip>
Babel 2.10.3 <pip>
backcall 0.2.0 <pip>
beautifulsoup4 4.11.1 <pip>
bleach 5.0.0 <pip>
brotlipy 0.7.0 py37h27cfd23_1003.conda
ca-certificates 2022.6.15 ha878542_0 conda-forge
certifi 2022.5.18.1 <pip>
certifi 2022.6.15 py37h89c1867_0 conda-forge
certipy 0.1.3 <pip>
cffi 1.15.0 py37hd667e15_1.conda
charset-normalizer 2.0.12 <pip>
charset-normalizer 2.0.4 pyhd3eb1b0_0.conda
conda 4.5.8 py37_0.conda
conda-env 2.6.0 1 conda-forge
conda-package-handling 1.8.1 py37h7f8727e_0.conda
cryptography 37.0.1 py37h9ce1e76_0.conda
cryptography 37.0.2 <pip>
debugpy 1.6.0 <pip>
decorator 5.1.1 <pip>
defusedxml 0.7.1 <pip>
entrypoints 0.4 <pip>
fastjsonschema 2.15.3 <pip>
greenlet 1.1.2 <pip>
idna 3.3 pyhd3eb1b0_0.conda
importlib-metadata 4.11.4 <pip>
importlib-resources 5.8.0 <pip>
ipykernel 6.10.0 <pip>
ipython 7.34.0 <pip>
ipython-genutils 0.2.0 <pip>
ipywidgets 7.4.2 <pip>
jedi 0.18.1 <pip>
Jinja2 3.1.2 <pip>
json5 0.9.8 <pip>
jsonschema 4.6.0 <pip>
jupyter 1.0.0 <pip>
jupyter-client 7.2.0 <pip>
jupyter-console 6.4.4 <pip>
jupyter-contrib-core 0.3.3 <pip>
jupyter-contrib-nbextensions 0.5.1 <pip>
jupyter-core 4.10.0 <pip>
jupyter-highlight-selected-word 0.2.0 <pip>
jupyter-latex-envs 1.4.6 <pip>
jupyter-nbextensions-configurator 0.4.1 <pip>
jupyter-server 1.18.0 <pip>
jupyter-telemetry 0.1.0 <pip>
jupyterhub 1.0.0 <pip>
jupyterlab 0.35.4 <pip>
jupyterlab-pygments 0.2.2 <pip>
jupyterlab-server 0.2.0 <pip>
jupyterlab-widgets 1.1.0 <pip>
ld_impl_linux-64 2.38 h1181459_1.conda
libffi 3.4.2 h7f98852_5 conda-forge
libgcc-ng 12.1.0 h8d9b700_16 conda-forge
libgomp 12.1.0 h8d9b700_16 conda-forge
libnsl 2.0.0 h7f98852_0 conda-forge
libstdcxx-ng 11.2.0 h1234567_1.conda
libzlib 1.2.12 h166bdaf_1 conda-forge
lxml 4.9.0 <pip>
Mako 1.2.0 <pip>
MarkupSafe 2.1.1 <pip>
matplotlib-inline 0.1.3 <pip>
mistune 0.8.4 <pip>
nbclassic 0.3.7 <pip>
nbclient 0.6.4 <pip>
nbconvert 6.5.0 <pip>
nbformat 5.4.0 <pip>
nbgitpuller 0.6.1 <pip>
nbresuse 0.3.0 <pip>
ncurses 6.3 h7f8727e_2.conda
nest-asyncio 1.5.5 <pip>
notebook 5.7.8 <pip>
notebook-shim 0.1.0 <pip>
nteract-on-jupyter 2.0.7 <pip>
oauthlib 3.2.0 <pip>
openssl 3.0.4 h166bdaf_0 conda-forge
packaging 21.3 <pip>
pamela 1.0.0 <pip>
pandocfilters 1.5.0 <pip>
parso 0.8.3 <pip>
pexpect 4.8.0 <pip>
pickleshare 0.7.5 <pip>
pip 21.2.2 py37h06a4308_0.conda
prometheus-client 0.14.1 <pip>
prompt-toolkit 3.0.29 <pip>
psutil 5.9.1 <pip>
ptyprocess 0.7.0 <pip>
pycosat 0.6.3 py37h27cfd23_0.conda
pycparser 2.21 pyhd3eb1b0_0.conda
Pygments 2.12.0 <pip>
pyopenssl 22.0.0 pyhd3eb1b0_0.conda
pyparsing 3.0.9 <pip>
pyrsistent 0.18.1 <pip>
pysocks 1.7.1 py37_1.conda
python 3.7.12 hf930737_100_cpython conda-forge
python-dateutil 2.8.2 <pip>
python-json-logger 2.0.2 <pip>
python_abi 3.7 2_cp37m conda-forge
pytz 2022.1 <pip>
PyYAML 6.0 <pip>
pyzmq 23.2.0 <pip>
qtconsole 5.3.1 <pip>
QtPy 2.1.0 <pip>
readline 8.1.2 h7f8727e_1.conda
requests 2.28.0 <pip>
requests 2.27.1 pyhd3eb1b0_0.conda
ruamel.yaml 0.17.21 <pip>
ruamel.yaml.clib 0.2.6 <pip>
ruamel_yaml 0.15.100 py37h27cfd23_0.conda
Send2Trash 1.8.0 <pip>
setuptools 61.2.0 py37h06a4308_0.conda
six 1.16.0 <pip>
sniffio 1.2.0 <pip>
soupsieve 2.3.2.post1 <pip>
SQLAlchemy 1.4.37 <pip>
sqlite 3.38.3 hc218d9a_0.conda
terminado 0.13.3 <pip>
tinycss2 1.1.1 <pip>
tk 8.6.12 h1ccaba5_0.conda
tornado 5.1.1 <pip>
tqdm 4.64.0 py37h06a4308_0.conda
traitlets 5.3.0 <pip>
typing_extensions 4.2.0 <pip>
urllib3 1.26.9 py37h06a4308_0.conda
wcwidth 0.2.5 <pip>
webencodings 0.5.1 <pip>
websocket-client 1.3.3 <pip>
wheel 0.37.1 pyhd3eb1b0_0.conda
widgetsnbextension 3.4.2 <pip>
xz 5.2.5 h7f8727e_1.conda
yaml 0.2.5 h7b6447c_0.conda
zipp 3.8.0 <pip>
zlib 1.2.12 h166bdaf_1 conda-forge
Configuration
# jupyterhub_config.py
Logs
Please update conda by running
$ conda update -n base -c defaults conda
Setting up JupyterHub...
Ran /opt/tljh/user/bin/jupyter labextension install @jupyterlab/hub-extension @jupyter-widgets/jupyterlab-manager with exit code 1
Node v12.20.1
> /usr/local/bin/npm pack @jupyterlab/hub-extension
npm notice
npm notice 📦 @jupyterlab/[email protected]
npm notice === Tarball Contents ===
npm notice 453B style/index.css
npm notice 5.1kB lib/index.js
npm notice 437B style/index.js
npm notice 1.4kB package.json
npm notice 613B schema/plugin.json
npm notice 4.0kB lib/index.js.map
npm notice 280B README.md
npm notice 437B lib/index.d.ts
npm notice === Tarball Details ===
npm notice name: @jupyterlab/hub-extension
npm notice version: 3.4.3
npm notice filename: jupyterlab-hub-extension-3.4.3.tgz
npm notice package size: 4.0 kB
npm notice unpacked size: 12.7 kB
npm notice shasum: 86d249cb5e0d6b89bb1830da01c2a54d492a2d5d
npm notice integrity: sha512-0ljIDkc+LFIkk[...]1iOaF3YMO7ajg==
npm notice total files: 8
npm notice
jupyterlab-hub-extension-3.4.3.tgz
Incompatible extension:
"@jupyterlab/[email protected]" is not compatible with the current JupyterLab
Conflicting Dependencies:
JupyterLab Extension Package
>=0.19.1 <0.20.0 >=3.4.3 <4.0.0 @jupyterlab/application
>=0.19.1 <0.20.0 >=3.4.3 <4.0.0 @jupyterlab/apputils
>=2.2.1 <3.0.0 >=5.4.3 <6.0.0 @jupyterlab/coreutils
>=3.2.1 <4.0.0 >=6.4.3 <7.0.0 @jupyterlab/services
Found compatible version: 0.12.0
> /usr/local/bin/npm pack @jupyterlab/[email protected]
npm WARN deprecated @jupyterlab/[email protected]: 1.0.0
npm notice
npm notice 📦 @jupyterlab/[email protected]
npm notice === Tarball Contents ===
npm notice 908B package.json
npm notice 1.5kB LICENSE
npm notice 1.5kB README.md
npm notice 351B lib/index.d.ts
npm notice 2.6kB lib/index.js
npm notice === Tarball Details ===
npm notice name: @jupyterlab/hub-extension
npm notice version: 0.12.0
npm notice filename: jupyterlab-hub-extension-0.12.0.tgz
npm notice package size: 3.0 kB
npm notice unpacked size: 6.9 kB
npm notice shasum: 2928622d6b5dfd67b859948f08bf0cf8c55f5717
npm notice integrity: sha512-3iR402o7GNcyn[...]jCq3H+ROnFhkg==
npm notice total files: 5
npm notice
jupyterlab-hub-extension-0.12.0.tgz
Node v12.20.1
> /usr/local/bin/npm pack @jupyter-widgets/jupyterlab-manager
npm notice
npm notice 📦 @jupyter-widgets/[email protected]
npm notice === Tarball Contents ===
npm notice 14.5kB LICENSE
npm notice 380B lib/index.js
npm notice 12.1kB lib/manager.js
npm notice 5.3kB lib/output.js
npm notice 7.9kB lib/plugin.js
npm notice 3.3kB lib/renderer.js
npm notice 862B lib/semvercache.js
npm notice 3.3kB package.json
npm notice 375B schema/plugin.json
npm notice 2.8kB README.md
npm notice 277B lib/index.d.ts
npm notice 5.9kB lib/manager.d.ts
npm notice 1.9kB lib/output.d.ts
npm notice 828B lib/plugin.d.ts
npm notice 960B lib/renderer.d.ts
npm notice 216B lib/semvercache.d.ts
npm notice === Tarball Details ===
npm notice name: @jupyter-widgets/jupyterlab-manager
npm notice version: 3.1.1
npm notice filename: jupyter-widgets-jupyterlab-manager-3.1.1.tgz
npm notice package size: 14.8 kB
npm notice unpacked size: 60.8 kB
npm notice shasum: 9d6fda01fed9909fda049975289396e506d65916
npm notice integrity: sha512-whjFC46lteMtF[...]YXCem3NxeNUwA==
npm notice total files: 16
npm notice
jupyter-widgets-jupyterlab-manager-3.1.1.tgz
Errored, use --debug for full output:
ValueError: "@jupyter-widgets/jupyterlab-manager" is not a valid extension:
schemaDir is empty: "./schema"
Traceback (most recent call last):
File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/opt/tljh/hub/lib/python3.6/site-packages/tljh/installer.py", line 482, in <module>
main()
File "/opt/tljh/hub/lib/python3.6/site-packages/tljh/installer.py", line 470, in main
ensure_jupyterlab_extensions()
File "/opt/tljh/hub/lib/python3.6/site-packages/tljh/installer.py", line 179, in ensure_jupyterlab_extensions
] + extensions)
File "/opt/tljh/hub/lib/python3.6/site-packages/tljh/utils.py", line 28, in run_subprocess
raise subprocess.CalledProcessError(cmd=cmd, returncode=proc.returncode)
subprocess.CalledProcessError: Command '['/opt/tljh/user/bin/jupyter', 'labextension', 'install', '@jupyterlab/hub-extension', '@jupyter-widgets/jupyterlab-manager']' returned non-zero exit status 1.
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! :wave:
Welcome to the Jupyter community! :tada: