jupyterlab-toc
jupyterlab-toc copied to clipboard
Dependecies issues during installation
Hi,
I installed JupyterLab and the first thing I tried to do is install your extension. But I am not able to do that due to the following errors.
npm notice
npm notice 📦 @jupyterlab/[email protected]
npm notice === Tarball Contents ===
npm notice 2.1kB package.json
npm notice 1.5kB LICENSE
npm notice 1.2kB README.md
npm notice 304B lib/extension.d.ts
npm notice 3.3kB lib/extension.js
npm notice 1.6kB lib/generators.d.ts
npm notice 12.4kB lib/generators.js
npm notice 81B lib/index.d.ts
npm notice 373B lib/index.js
npm notice 2.1kB lib/registry.d.ts
npm notice 1.3kB lib/registry.js
npm notice 3.2kB lib/toc.d.ts
npm notice 4.9kB lib/toc.js
npm notice 1.6kB style/index.css
npm notice 625B style/list-dark.svg
npm notice 625B style/list-light.svg
npm notice === Tarball Details ===
npm notice name: @jupyterlab/toc
npm notice version: 0.4.0
npm notice filename: jupyterlab-toc-0.4.0.tgz
npm notice package size: 9.9 kB
npm notice unpacked size: 37.1 kB
npm notice shasum: 197db58e4a9f8d5ca776800cd6b6c5eaf09adeae
npm notice integrity: sha512-6n2CWkkHvPePS[...]Cm1wY959ZU86Q==
npm notice total files: 16
npm notice
jupyterlab-toc-0.4.0.tgz
Errored, use --debug for full output:
ValueError:
"@jupyterlab/[email protected]" is not compatible with the current JupyterLab
Conflicting Dependencies:
JupyterLab Extension Package
>=0.15.4-0 <0.16.0-0 >=0.18.0-0 <0.19.0-0 @jupyterlab/application
>=0.15.4-0 <0.16.0-0 >=0.18.0-0 <0.19.0-0 @jupyterlab/apputils
>=1.0.6-0 <2.0.0-0 >=2.1.0-0 <3.0.0-0 @jupyterlab/coreutils
>=0.15.4-0 <0.16.0-0 >=0.18.0-0 <0.19.0-0 @jupyterlab/docmanager
>=0.15.4-0 <0.16.0-0 >=0.18.0-0 <0.19.0-0 @jupyterlab/fileeditor
>=0.15.4-0 <0.16.0-0 >=0.18.0-0 <0.19.0-0 @jupyterlab/notebook
>=0.15.4-0 <0.16.0-0 >=0.18.0-0 <0.19.0-0 @jupyterlab/rendermime
I am not sure if that is related to any recent update at JL
Thanks
Hi @rtmatx, it looks like the version of JupyterLab you are using is an older one (0.31?). The most recent release of @jupyterlab/toc
is for JupyterLab v0.34. I recommend either updating your JupyterLab, or downgrading @jupyterlab/toc
to v0.1.0 (jupyter labextension install [email protected]
).
Hi. Thanks for your quick comment. That helped. But I am receiving new error. Not sure if it is related to this extension though. Have you noticed these errors before
jupyterlab-toc-0.4.0.tgz
> node /home/rmulpuri/anaconda/envs/temp/lib/python3.6/site-packages/jupyterlab/staging/yarn.js install
yarn install v1.9.4
info No lockfile found.
[1/4] Resolving packages...
warning css-loader > cssnano > autoprefixer > [email protected]: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
warning css-loader > cssnano > postcss-merge-rules > [email protected]: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
warning css-loader > cssnano > postcss-merge-rules > caniuse-api > [email protected]: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
[2/4] Fetching packages...
[-------------------------------------------------------------------------------------------------------------------------------------------------------------------------] 0/822(node:48003) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
error An unexpected error occurred: "https://registry.yarnpkg.com/@jupyterlab/services/-/services-3.1.4.tgz: ENOENT: no such file or directory, open '/home/rmulpuri/.cache/yarn/v2/npm-@jupyterlab/services-3.1.4-d807ab60a689bc9dafa31536cf4f9e1afb73c441/.yarn-tarball.tgz'".
info If you think this is a bug, please open a bug report with the information provided in "/home/rmulpuri/anaconda/envs/temp/share/jupyter/lab/staging/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
> node /home/rmulpuri/anaconda/envs/temp/lib/python3.6/site-packages/jupyterlab/staging/yarn.js run build
yarn run v1.9.4
$ webpack
/bin/sh: webpack: command not found
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Hello! Currently running into a very similar error:
root@6e15fdbb6cbf:/scripts# jupyter labextension install @jupyterlab/toc Building jupyterlab assets An error occured. RuntimeError: npm dependencies failed to install See the log file for details: /tmp/jupyterlab-debug-s477h0h7.log
The log file is empty. My current version of jupyterlab is 1.0.0 (it was 1.1.3, but I downgraded based on advice found elsewhere on the internet, to no avail).
Do you have any suggestions? Thank you so much