altair-viz / jupyterlab_voyager

JupyterLab extension visualize data with Voyager
BSD 3-Clause "New" or "Revised" License
298 stars 35 forks source link

Build Error: Cannot find module 'jupyterlab_voyager/package.json' #59

Open robmarkcole opened 5 years ago

robmarkcole commented 5 years ago

As title, apologies for the dump below:

Robins-Air:home-assistant.io robincole$ jupyter labextension install jupyterlab_voyager
> /usr/local/bin/npm pack jupyterlab_voyager
jupyterlab_voyager-0.2.0.tgz

   ╭─────────────────────────────────────╮
   │                                     │
   │   Update available 5.7.1 → 6.4.1    │
   │     Run npm i -g npm to update      │
   │                                     │
   ╰─────────────────────────────────────╯

> node /Users/robincole/anaconda3/lib/python3.6/site-packages/jupyterlab/staging/yarn.js install
yarn install v1.5.1
info No lockfile found.
[1/4] 🔍  Resolving packages...
warning qgrid > css-loader > cssnano > autoprefixer > browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
warning qgrid > css-loader > cssnano > postcss-merge-rules > browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
warning qgrid > css-loader > cssnano > postcss-merge-rules > caniuse-api > browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
warning jupyterlab_voyager > datavoyager > react-file-download@0.3.5: WARNING: This project has been renamed to js-file-download. Use js-file-download instead.
[2/4] 🚚  Fetching packages...
error webpack@4.19.1: The engine "node" is incompatible with this module. Expected version ">=6.11.5".
error An unexpected error occurred: "Found incompatible module".
info If you think this is a bug, please open a bug report with the information provided in "/Users/robincole/anaconda3/share/jupyter/lab/staging/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
> node /Users/robincole/anaconda3/lib/python3.6/site-packages/jupyterlab/staging/yarn.js run build:prod
yarn run v1.5.1
$ webpack --config webpack.prod.config.js
module.js:471
    throw err;
    ^

Error: Cannot find module 'jupyterlab_voyager/package.json'
    at Function.Module._resolveFilename (module.js:469:15)
    at Function.resolve (internal/module.js:27:19)
    at /Users/robincole/anaconda3/share/jupyter/lab/staging/node_modules/@jupyterlab/buildutils/lib/build.js:22:43
    at Array.forEach (native)
    at Object.ensureAssets (/Users/robincole/anaconda3/share/jupyter/lab/staging/node_modules/@jupyterlab/buildutils/lib/build.js:21:22)
    at Object.<anonymous> (/Users/robincole/anaconda3/share/jupyter/lab/staging/webpack.config.js:19:7)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/Users/robincole/anaconda3/share/jupyter/lab/staging/webpack.prod.config.js:5:14)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
error An unexpected error occurred: "Command failed.
Exit code: 1
Command: sh
Arguments: -c webpack --config webpack.prod.config.js
Directory: /Users/robincole/anaconda3/share/jupyter/lab/staging
Output:
".
info If you think this is a bug, please open a bug report with the information provided in "/Users/robincole/anaconda3/share/jupyter/lab/staging/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Robins-Air:home-assistant.io robincole$ jupyter lab
[I 06:37:20.321 LabApp] The port 8888 is already in use, trying another port.
[I 06:37:20.348 LabApp] JupyterLab beta preview extension loaded from /Users/robincole/anaconda3/lib/python3.6/site-packages/jupyterlab
[I 06:37:20.348 LabApp] JupyterLab application directory is /Users/robincole/anaconda3/share/jupyter/lab
[W 06:37:20.496 LabApp] Error loading server extension scriptedforms
    Traceback (most recent call last):
      File "/Users/robincole/anaconda3/lib/python3.6/site-packages/notebook/notebookapp.py", line 1481, in init_server_extensions
        mod = importlib.import_module(modulename)
      File "/Users/robincole/anaconda3/lib/python3.6/importlib/__init__.py", line 126, in import_module
        return _bootstrap._gcd_import(name[level:], package, level)
      File "<frozen importlib._bootstrap>", line 994, in _gcd_import
      File "<frozen importlib._bootstrap>", line 971, in _find_and_load
      File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
    ModuleNotFoundError: No module named 'scriptedforms'
[W 06:37:20.498 LabApp] JupyterLab server extension not enabled, manually loading...
[I 06:37:20.499 LabApp] JupyterLab beta preview extension loaded from /Users/robincole/anaconda3/lib/python3.6/site-packages/jupyterlab
[I 06:37:20.499 LabApp] JupyterLab application directory is /Users/robincole/anaconda3/share/jupyter/lab
[I 06:37:20.633 LabApp] Serving notebooks from local directory: /Users/robincole/Documents/Github/home-assistant.io
[I 06:37:20.633 LabApp] 0 active kernels
[I 06:37:20.633 LabApp] The Jupyter Notebook is running at:
[I 06:37:20.633 LabApp] http://localhost:8889/?token=bea16c0b2e3e7dca836ea1f3b7857a154190896a333c89ca
[I 06:37:20.633 LabApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 06:37:20.638 LabApp]

    Copy/paste this URL into your browser when you connect for the first time,
    to login with a token:
        http://localhost:8889/?token=bea16c0b2e3e7dca836ea1f3b7857a154190896a333c89ca&token=bea16c0b2e3e7dca836ea1f3b7857a154190896a333c89ca
[I 06:37:20.834 LabApp] Accepting one-time-token-authenticated connection from ::1
[W 06:37:23.452 LabApp] Build recommended
[W 06:37:23.452 LabApp] jupyterlab_voyager needs to be included in build
[I 06:37:28.510 LabApp] > node /Users/robincole/anaconda3/lib/python3.6/site-packages/jupyterlab/staging/yarn.js install
jupyterlab_discovery-5.1.3.tgz
jupyterlab-scales-0.2.1.tgz
qgrid-1.1.1.tgz
jupyterlab-datawidgets-5.1.0.tgz
jupyterlab_voyager-0.2.0.tgz
jupyter-leaflet-0.9.0.tgz
jupyter-threejs-1.1.0.tgz

   ╭─────────────────────────────────────╮
   │                                     │
   │   Update available 5.7.1 → 6.4.1    │
   │     Run npm i -g npm to update      │
   │                                     │
   ╰─────────────────────────────────────╯

yarn install v1.5.1
info No lockfile found.
[1/4] 🔍  Resolving packages...
warning qgrid > css-loader > cssnano > autoprefixer > browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
warning qgrid > css-loader > cssnano > postcss-merge-rules > browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
warning qgrid > css-loader > cssnano > postcss-merge-rules > caniuse-api > browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
warning jupyterlab_voyager > datavoyager > react-file-download@0.3.5: WARNING: This project has been renamed to js-file-download. Use js-file-download instead.
[2/4] 🚚  Fetching packages...
error webpack@4.19.1: The engine "node" is incompatible with this module. Expected version ">=6.11.5".
error An unexpected error occurred: "Found incompatible module".
info If you think this is a bug, please open a bug report with the information provided in "/Users/robincole/anaconda3/share/jupyter/lab/staging/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
[I 06:38:33.672 LabApp] > node /Users/robincole/anaconda3/lib/python3.6/site-packages/jupyterlab/staging/yarn.js run build:prod
yarn run v1.5.1
$ webpack --config webpack.prod.config.js
module.js:471
    throw err;
    ^

Error: Cannot find module 'jupyterlab_voyager/package.json'
    at Function.Module._resolveFilename (module.js:469:15)
    at Function.resolve (internal/module.js:27:19)
    at /Users/robincole/anaconda3/share/jupyter/lab/staging/node_modules/@jupyterlab/buildutils/lib/build.js:22:43
    at Array.forEach (native)
    at Object.ensureAssets (/Users/robincole/anaconda3/share/jupyter/lab/staging/node_modules/@jupyterlab/buildutils/lib/build.js:21:22)
    at Object.<anonymous> (/Users/robincole/anaconda3/share/jupyter/lab/staging/webpack.config.js:19:7)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/Users/robincole/anaconda3/share/jupyter/lab/staging/webpack.prod.config.js:5:14)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
error An unexpected error occurred: "Command failed.
Exit code: 1
Command: sh
Arguments: -c webpack --config webpack.prod.config.js
Directory: /Users/robincole/anaconda3/share/jupyter/lab/staging
Output:
".
info If you think this is a bug, please open a bug report with the information provided in "/Users/robincole/anaconda3/share/jupyter/lab/staging/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.