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.

Fails to install in Windows 10 via pip or `jupyter labextension install`

See original GitHub issue

I’m currently running jupyterlab 3.0.13 on windows 10 (installed via pip).

When installing via pip install lck-jupyterlab-variableinspector the package installs successfully, however does not show up in the extensions list inside of jupyterlab.

Running pip show lck-jupyterlab-variableinspector returns this location:

c:\users\me\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages

I also attempted to navigate to the package directory and run jupyter labextension build. This results in a similar error to the one below.

Attempting to install via jupyter labextension install @lckr/jupyterlab_variableinspector or installing through the jupyterlab web interface will fail on build with the following log:

Node v14.16.0

Yarn configuration loaded.
> "C:\Program Files\nodejs\npm.CMD" pack @lckr/jupyterlab_variableinspector
npm notice 
npm notice package: @lckr/jupyterlab_variableinspector@3.0.9
npm notice === Tarball Contents === 
npm notice 1.5kB LICENSE        
npm notice 0     style/base.css 
npm notice 1.3kB style/index.css
npm notice 21B   style/index.js 
npm notice 2.6kB package.json   
npm notice 4.0kB README.md      
npm notice === Tarball Details === 
npm notice name:          @lckr/jupyterlab_variableinspector         
npm notice version:       3.0.9                                      
npm notice filename:      lckr-jupyterlab_variableinspector-3.0.9.tgz
npm notice package size:  3.9 kB                                     
npm notice unpacked size: 9.5 kB                                     
npm notice shasum:        1c922fa2fd13c5ab0fe365f1a5bad69869887811   
npm notice integrity:     sha512-o0kx+iDORrxaN[...]6qvwpD8dLit3w==   
npm notice total files:   6                                          
npm notice 
lckr-jupyterlab_variableinspector-3.0.9.tgz

Fetching URL: https://registry.yarnpkg.com/@lckr%2Fjupyterlab_variableinspector
> "C:\Program Files\nodejs\npm.CMD" pack @lckr/jupyterlab_variableinspector@3.0.9
npm notice 
npm notice package: @lckr/jupyterlab_variableinspector@3.0.9
npm notice === Tarball Contents === 
npm notice 1.5kB LICENSE        
npm notice 0     style/base.css 
npm notice 1.3kB style/index.css
npm notice 21B   style/index.js 
npm notice 2.6kB package.json   
npm notice 4.0kB README.md      
npm notice === Tarball Details === 
npm notice name:          @lckr/jupyterlab_variableinspector         
npm notice version:       3.0.9                                      
npm notice filename:      lckr-jupyterlab_variableinspector-3.0.9.tgz
npm notice package size:  3.9 kB                                     
npm notice unpacked size: 9.5 kB                                     
npm notice shasum:        1c922fa2fd13c5ab0fe365f1a5bad69869887811   
npm notice integrity:     sha512-o0kx+iDORrxaN[...]6qvwpD8dLit3w==   
npm notice total files:   6                                          
npm notice 
lckr-jupyterlab_variableinspector-3.0.9.tgz

Node v14.16.0

Yarn configuration loaded.
Building jupyterlab assets (production, minimized)
> node C:\Users\me\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\jupyterlab\staging\yarn.js install --non-interactive
yarn install v1.21.1
[1/5] Validating package.json...
[2/5] Resolving packages...
success Already up-to-date.
Done in 0.35s.

> node C:\Users\me\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\jupyterlab\staging\yarn.js yarn-deduplicate -s fewer --fail
yarn run v1.21.1
$ C:\Users\me\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\share\jupyter\lab\staging\node_modules\.bin\yarn-deduplicate -s fewer --fail
Done in 0.25s.

> node C:\Users\me\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\jupyterlab\staging\yarn.js run build:prod:minimize
yarn run v1.21.1
$ webpack --config webpack.prod.minimize.config.js
assets by status 10.1 MiB [cached] 115 assets
orphan modules 4.72 MiB [orphan] 1253 modules
runtime modules 104 KiB 14 modules
built modules 13.4 MiB (javascript) 4.47 KiB (consume-shared) 4.43 KiB (share-init) [built]
  modules by path ./node_modules/ 13.3 MiB
    cacheable modules 13.3 MiB 973 modules
    3 modules
  consume-shared-module modules 4.47 KiB
    modules by path consume shared module (default) @jupyterlab/ 3.53 KiB 41 modules
    modules by path consume shared module (default) @lumino/ 588 bytes 14 modules
  provide-module modules 4.43 KiB 108 modules
  modules by path ./build/ 23.4 KiB
    ./build/bootstrap.js 3.78 KiB [built] [code generated]
    ./build/index.out.js + 1 modules 19.6 KiB [built] [code generated]
  4 modules

WARNING in ./node_modules/vega-lite/build/src/index.js 5:0-30
Should not import the named export 'version' (reexported as 'version') from default-exporting module (only default export is available soon)
 @ consume shared module (default) vega-lite@^4.0.2 (strict) (fallback: ./node_modules/vega-lite/build/src/index.js)
 @ ./node_modules/vega-embed/build/vega-embed.module.js 6:0-44 189:15-29
 @ consume shared module (default) vega-embed@^6.2.1 (strict) (fallback: ./node_modules/vega-embed/build/vega-embed.module.js)
 @ ./node_modules/@jupyterlab/vega5-extension/lib/index.js 166:28-48
 @ consume shared module (default) @jupyterlab/vega5-extension@~3.0.6 (strict) (fallback: ./node_modules/@jupyterlab/vega5-extension/lib/index.js)
 @ ./build/index.out.js 171:16-54
 @ ./build/bootstrap.js

ERROR in resolving fallback for shared module @lckr/jupyterlab_variableinspector
Module not found: Error: Can't resolve '@lckr/jupyterlab_variableinspector' in 'C:\Users\me\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\share\jupyter\lab\staging\build'
resolve '@lckr/jupyterlab_variableinspector' in 'C:\Users\me\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\share\jupyter\lab\staging\build'
  Parsed request is a module
  using description file: C:\Users\me\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\share\jupyter\lab\staging\build\package.json (relative path: .)
    Field 'browser' doesn't contain a valid alias configuration
    resolve as module
      C:\Users\me\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\share\jupyter\lab\staging\build\node_modules doesn't exist or is not a directory
      looking for modules in C:\Users\me\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\share\jupyter\lab\staging\node_modules
        single file module
          using description file: C:\Users\me\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\share\jupyter\lab\staging\package.json (relative path: ./node_modules/@lckr/jupyterlab_variableinspector)
            no extension
              Field 'browser' doesn't contain a valid alias configuration
              C:\Users\me\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\share\jupyter\lab\staging\node_modules\@lckr\jupyterlab_variableinspector is not a file
            .js
              Field 'browser' doesn't contain a valid alias configuration
              C:\Users\me\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\share\jupyter\lab\staging\node_modules\@lckr\jupyterlab_variableinspector.js doesn't exist
            .json
              Field 'browser' doesn't contain a valid alias configuration
              C:\Users\me\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\share\jupyter\lab\staging\node_modules\@lckr\jupyterlab_variableinspector.json doesn't exist
            .wasm
              Field 'browser' doesn't contain a valid alias configuration
              C:\Users\me\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\share\jupyter\lab\staging\node_modules\@lckr\jupyterlab_variableinspector.wasm doesn't exist
        existing directory C:\Users\me\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\share\jupyter\lab\staging\node_modules\@lckr\jupyterlab_variableinspector
          using description file: C:\Users\me\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\share\jupyter\lab\staging\node_modules\@lckr\jupyterlab_variableinspector\package.json (relative path: .)
            using description file: C:\Users\me\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\share\jupyter\lab\staging\package.json (relative path: ./node_modules/@lckr/jupyterlab_variableinspector)
              no extension
                Field 'browser' doesn't contain a valid alias configuration
                C:\Users\me\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\share\jupyter\lab\staging\node_modules\@lckr\jupyterlab_variableinspector is not a file
              .js
                Field 'browser' doesn't contain a valid alias configuration
                C:\Users\me\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\share\jupyter\lab\staging\node_modules\@lckr\jupyterlab_variableinspector.js doesn't exist
              .json
                Field 'browser' doesn't contain a valid alias configuration
                C:\Users\me\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\share\jupyter\lab\staging\node_modules\@lckr\jupyterlab_variableinspector.json doesn't exist
              .wasm
                Field 'browser' doesn't contain a valid alias configuration
                C:\Users\me\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\share\jupyter\lab\staging\node_modules\@lckr\jupyterlab_variableinspector.wasm doesn't exist
              as directory
                existing directory C:\Users\me\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\share\jupyter\lab\staging\node_modules\@lckr\jupyterlab_variableinspector
                  using description file: C:\Users\me\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\share\jupyter\lab\staging\node_modules\@lckr\jupyterlab_variableinspector\package.json (relative path: .)
                    use ./lib/index.js from main in package.json
                      using description file: C:\Users\me\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\share\jupyter\lab\staging\node_modules\@lckr\jupyterlab_variableinspector\package.json (relative path: ./lib/index.js)
                        no extension
                          Field 'browser' doesn't contain a valid alias configuration
                          C:\Users\me\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\share\jupyter\lab\staging\node_modules\@lckr\jupyterlab_variableinspector\lib\index.js doesn't exist
                        .js
                          Field 'browser' doesn't contain a valid alias configuration
                          C:\Users\me\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\share\jupyter\lab\staging\node_modules\@lckr\jupyterlab_variableinspector\lib\index.js.js doesn't exist
                        .json
                          Field 'browser' doesn't contain a valid alias configuration
                          C:\Users\me\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\share\jupyter\lab\staging\node_modules\@lckr\jupyterlab_variableinspector\lib\index.js.json doesn't exist
                        .wasm
                          Field 'browser' doesn't contain a valid alias configuration
                          C:\Users\me\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\share\jupyter\lab\staging\node_modules\@lckr\jupyterlab_variableinspector\lib\index.js.wasm doesn't exist
                        as directory
                          C:\Users\me\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\share\jupyter\lab\staging\node_modules\@lckr\jupyterlab_variableinspector\lib\index.js doesn't exist
                    using path: C:\Users\me\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\share\jupyter\lab\staging\node_modules\@lckr\jupyterlab_variableinspector\index
                      using description file: C:\Users\me\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\share\jupyter\lab\staging\node_modules\@lckr\jupyterlab_variableinspector\package.json (relative path: ./index)
                        no extension
                          Field 'browser' doesn't contain a valid alias configuration
                          C:\Users\me\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\share\jupyter\lab\staging\node_modules\@lckr\jupyterlab_variableinspector\index doesn't exist
                        .js
                          Field 'browser' doesn't contain a valid alias configuration
                          C:\Users\me\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\share\jupyter\lab\staging\node_modules\@lckr\jupyterlab_variableinspector\index.js doesn't exist
                        .json
                          Field 'browser' doesn't contain a valid alias configuration
                          C:\Users\me\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\share\jupyter\lab\staging\node_modules\@lckr\jupyterlab_variableinspector\index.json doesn't exist
                        .wasm
                          Field 'browser' doesn't contain a valid alias configuration
                          C:\Users\me\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\share\jupyter\lab\staging\node_modules\@lckr\jupyterlab_variableinspector\index.wasm doesn't exist
      C:\Users\me\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\share\jupyter\lab\node_modules doesn't exist or is not a directory
      C:\Users\me\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\share\jupyter\node_modules doesn't exist or is not a directory
      C:\Users\me\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\share\node_modules doesn't exist or is not a directory
      C:\Users\me\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\node_modules doesn't exist or is not a directory
      C:\Users\me\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\node_modules doesn't exist or is not a directory
      C:\Users\me\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\node_modules doesn't exist or is not a directory
      C:\Users\me\AppData\Local\Packages\node_modules doesn't exist or is not a directory
      C:\Users\me\AppData\Local\node_modules doesn't exist or is not a directory
      C:\Users\me\AppData\node_modules doesn't exist or is not a directory
      looking for modules in C:\Users\me\node_modules
        single file module
          No description file found in C:\Users\me\node_modules\@lckr or above
          no extension
            Field 'browser' doesn't contain a valid alias configuration
            C:\Users\me\node_modules\@lckr\jupyterlab_variableinspector doesn't exist
          .js
            Field 'browser' doesn't contain a valid alias configuration
            C:\Users\me\node_modules\@lckr\jupyterlab_variableinspector.js doesn't exist
          .json
            Field 'browser' doesn't contain a valid alias configuration
            C:\Users\me\node_modules\@lckr\jupyterlab_variableinspector.json doesn't exist
          .wasm
            Field 'browser' doesn't contain a valid alias configuration
            C:\Users\me\node_modules\@lckr\jupyterlab_variableinspector.wasm doesn't exist
        C:\Users\me\node_modules\@lckr\jupyterlab_variableinspector doesn't exist
      C:\Users\node_modules doesn't exist or is not a directory
      C:\node_modules doesn't exist or is not a directory

webpack 5.31.0 compiled with 1 error and 1 warning in 21178 ms

asset index.css 16.1 KiB [compared for emit] (name: index)
asset index.js 0 bytes [compared for emit] [minimized] (name: index)
Entrypoint index 16.1 KiB = index.css 16.1 KiB index.js 0 bytes
./node_modules/@jupyterlab/theme-dark-extension/style/index.css 50 bytes [built] [code generated]
css ./node_modules/css-loader/dist/cjs.js!./node_modules/@jupyterlab/theme-dark-extension/style/variables.css 15.3 KiB [code generated]
css ./node_modules/css-loader/dist/cjs.js!./node_modules/@jupyterlab/theme-dark-extension/style/base.css 472 bytes [code generated]
css ./node_modules/css-loader/dist/cjs.js!./node_modules/@jupyterlab/theme-dark-extension/style/index.css 342 bytes [code generated]
webpack 5.31.0 compiled successfully in 926 ms

asset index.css 15 KiB [compared for emit] (name: index)
asset index.js 0 bytes [compared for emit] [minimized] (name: index)
Entrypoint index 15 KiB = index.css 15 KiB index.js 0 bytes
./node_modules/@jupyterlab/theme-light-extension/style/index.css 50 bytes [built] [code generated]
css ./node_modules/css-loader/dist/cjs.js!./node_modules/@jupyterlab/theme-light-extension/style/variables.css 14.2 KiB [code generated]
css ./node_modules/css-loader/dist/cjs.js!./node_modules/@jupyterlab/theme-light-extension/style/base.css 472 bytes [code generated]
css ./node_modules/css-loader/dist/cjs.js!./node_modules/@jupyterlab/theme-light-extension/style/index.css 342 bytes [code generated]
webpack 5.31.0 compiled successfully in 1063 ms
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

JupyterLab failed to build
Traceback (most recent call last):

  File "C:\Users\me\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\jupyterlab\debuglog.py", line 47, in debug_logging
    yield

  File "C:\Users\me\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\jupyterlab\labextensions.py", line 133, in start
    build(clean_staging=self.should_clean,

  File "C:\Users\me\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\jupyterlab\commands.py", line 469, in build
    return handler.build(name=name, version=version, static_url=static_url,

  File "C:\Users\me\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\jupyterlab\commands.py", line 678, in build
    raise RuntimeError(msg)

RuntimeError: JupyterLab failed to build

Exiting application: lab

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:15

github_iconTop GitHub Comments

2reactions
realmarianocommented, May 31, 2021

I solved it by following @GabZech suggestion by @leopoletti and @bytedynamic https://github.com/lckr/jupyterlab-variableInspector/issues/183#issuecomment-806579896

Hello,

I am under Windows 7 and I was facing this issue: the problem is path lenght which is limited to 260 caracters 
 in windows 7.
Since the temp directory is located in a long path (C:\users\username\AppData\Local\Temp\etc....) and the  
 directory is quite long (lckr-jupyterlab-variableinspector) you easely rich the limit.

The work around was to download the tar.gz file on a short path and create the wheel in that path and 
the build went fine.
I hope it will help.

Thanks. I have solved the problem following your advice. Here is my solution:

Step 1: Download the tar.gz (https://github.com/lckr/jupyterlab-variableInspector/archive/refs/tags/v3.0.6.tar.gz) file from release page to a short path, ie “C:\mypy”, and rename the tar.gz file to a short file name, ie “vi.tar.gz” (not necessary maybe)

Step 2: run CMD, type the following code:

cd /d C:\mypy\ pip install vi.tar.gz

Done.

I tyed it in a clean environment (all other details like in https://github.com/lckr/jupyterlab-variableInspector/issues/207#issuecomment-829000140).

Would be great if someone can reproduce and confirm that this solves the problem.

If so, I do not really understand why the length of the path would be a trouble here, since win10 64 should be able to manage it. Perhaps something in jupyterlab or variable inspector extension is trimming the path for some reason?

2reactions
GabZechcommented, May 21, 2021

Mine was also failing at the build, this fixed it for me: https://github.com/lckr/jupyterlab-variableInspector/issues/183#issuecomment-806579896

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix errors occurring on installation of Jupyter Notebook
I'reached this post after failing to install notebook on a 32-bit ... Go to Windows Shell with admin mode (Win+X and you get...
Read more >
Installation — JupyterLab 3.6.0b0 documentation
If installing using pip install --user , you must add the user-level bin directory to your PATH environment variable in order to launch...
Read more >
Error while running 'jupyter-lab' or 'jupyter lab' on Windows ...
As mentioned in this link about how to install Jupyterlab with pip, I ran into some problems. The installation went fine as far...
Read more >
Jupyter Notebook - kepler.gl
$ pip install keplergl · $ jupyter nbextension install --py --sys-prefix keplergl # can be skipped for notebook 5.3 and above · $...
Read more >
jupyterlab-git - PyPI
pip install --upgrade jupyterlab jupyterlab-git ... install # Link your development version of the extension with JupyterLab jupyter labextension develop .
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