ipyleaflet
ipyleaflet copied to clipboard
Missing `@lumino/widgets` dependency when installing from AWS SageMaker
I am trying to use ipyleaflet in a notebook on AWS SageMaker, but the JupyterLab doesn't build properly after running jupyter labextension install jupyter-leaflet. The source of this problem seems to be that @lumino/widgets isn't installed beforehand. A simple workaround is provided below.
Steps to reproduce
- Create a notebook instance in AWS SageMaker
- Start the instance
- Open JupyterLab
- Open a new terminal window
- Open a
bashshellsh$ bash - Install
ipyleafletin the desired environment (depends on the kernel you use in your notebook)(base) $ conda activate python3 (python3) $ pip install -U ipyleaflet (python3) $ conda deactivate - Install the lab extensions in SageMaker's
JupyterSystemEnv(it doesn't work to just have them installed in the kernel environment)(base) $ conda activate JupyterSystemEnv (JupyterSystemEnv) $ jupyter labextension install @jupyter-widgets/jupyterlab-manager jupyter-leaflet # this is where the error is ^^^^^^^^^^^^^^^ (JupyterSystemEnv) $ jupyter nbextension enable widgetsnbextension --py --sys-prefix (JupyterSystemEnv) $ conda deactivate
Output:
Config option `kernel_spec_manager_class` not recognized by `InstallLabExtensionApp`.
Building jupyterlab assets (build:prod:minimize)
An error occured.
RuntimeError: JupyterLab failed to build
See the log file for details: /tmp/jupyterlab-debug-zzdr2k4g.log
- Side note: I was able to confirm that JupyterLab builds successfully when installing just
@jupyter-widgets/jupyterlab-manager. I only see theRuntimeError: JupyterLab failed to builderror when I try to installjupyter-leaflet.
From the log file...
The source of the problem seems to be this line from the log file (see below for the whole log file):
ModuleNotFoundError: Module not found: Error: Can't resolve '@lumino/widgets' in '/home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules/jupyter-leaflet/src/layers'
Workaround
A workaround that does just fine for me in the meantime is the following (steps 1-6 from above are the same):
- Install the lab extensions in SageMaker's
JupyterSystemEnv(it doesn't work to just have them installed in the kernel environment)(base) $ conda activate JupyterSystemEnv (JupyterSystemEnv) $ jupyter labextension install @jupyter-widgets/jupyterlab-manager @lumino/widgets jupyter-leaflet (JupyterSystemEnv) $ jupyter nbextension enable widgetsnbextension --py --sys-prefix (JupyterSystemEnv) $ conda deactivate- Note: all I did was add
@lumino/widgetsin between@jupyter-widgets/jupyterlab-managerandjupyter-leaflet
- Note: all I did was add
- Reload JupyterLab (just refresh your browser window)
- Why? The labextension build generates a new javascript bundle that you must reload to get
- Create a new notebook
- Note: make sure the notebook's kernel is the same as the one we installed
ipyleafleton previously (conda_python3in our case)
- Note: make sure the notebook's kernel is the same as the one we installed
- Run the following code in a notebook cell (taken from the docs):
from ipyleaflet import Map, basemaps, basemap_to_tiles m = Map( basemap=basemap_to_tiles(basemaps.NASAGIBS.ModisTerraTrueColorCR, "2017-04-08"), center=(52.204793, 360.121558), zoom=4 ) m- You should see an interactive map in the cell output
The whole log file
The contents of that log file (/tmp/jupyterlab-debug-zzdr2k4g.log):
Yarn configuration loaded.
Node v14.15.4
> /home/ec2-user/anaconda3/envs/JupyterSystemEnv/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 15.3kB lib/manager.js
npm notice 5.3kB lib/output.js
npm notice 7.8kB 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.0.0
npm notice filename: jupyter-widgets-jupyterlab-manager-3.0.0.tgz
npm notice package size: 15.6 kB
npm notice unpacked size: 64.0 kB
npm notice shasum: fa47d03e2e72399ce3af4b86cc29aba2166d5781
npm notice integrity: sha512-9diAvsHHiK/kY[...]cKQSYU/tiXxdQ==
npm notice total files: 16
npm notice
jupyter-widgets-jupyterlab-manager-3.0.0.tgz
Fetching URL: https://registry.yarnpkg.com/@jupyter-widgets%2Fjupyterlab-manager
> /home/ec2-user/anaconda3/envs/JupyterSystemEnv/bin/npm pack @jupyter-widgets/[email protected]
npm notice
npm notice 📦 @jupyter-widgets/[email protected]
npm notice === Tarball Contents ===
npm notice 2.3kB package.json
npm notice 1.5kB LICENSE
npm notice 1.9kB README.md
npm notice 277B lib/index.d.ts
npm notice 380B lib/index.js
npm notice 5.9kB lib/manager.d.ts
npm notice 14.5kB lib/manager.js
npm notice 1.9kB lib/output.d.ts
npm notice 5.2kB lib/output.js
npm notice 830B lib/plugin.d.ts
npm notice 7.8kB lib/plugin.js
npm notice 956B lib/renderer.d.ts
npm notice 3.3kB lib/renderer.js
npm notice 216B lib/semvercache.d.ts
npm notice 862B lib/semvercache.js
npm notice 375B schema/plugin.json
npm notice === Tarball Details ===
npm notice name: @jupyter-widgets/jupyterlab-manager
npm notice version: 1.1.0
npm notice filename: jupyter-widgets-jupyterlab-manager-1.1.0.tgz
npm notice package size: 12.2 kB
npm notice unpacked size: 48.3 kB
npm notice shasum: 6196b9e3df314d488180fb5ed3bfb11df2dfdeaf
npm notice integrity: sha512-2dKdzl43nMvmr[...]53y1/ADuNbzhg==
npm notice total files: 16
npm notice
jupyter-widgets-jupyterlab-manager-1.1.0.tgz
Fetching URL: https://registry.yarnpkg.com/@jupyter-widgets%2Fjupyterlab-manager
> /home/ec2-user/anaconda3/envs/JupyterSystemEnv/bin/npm pack @jupyter-widgets/[email protected]
npm notice
npm notice 📦 @jupyter-widgets/[email protected]
npm notice === Tarball Contents ===
npm notice 2.3kB package.json
npm notice 1.5kB LICENSE
npm notice 1.9kB README.md
npm notice 277B lib/index.d.ts
npm notice 380B lib/index.js
npm notice 5.9kB lib/manager.d.ts
npm notice 14.5kB lib/manager.js
npm notice 1.9kB lib/output.d.ts
npm notice 5.2kB lib/output.js
npm notice 830B lib/plugin.d.ts
npm notice 7.8kB lib/plugin.js
npm notice 956B lib/renderer.d.ts
npm notice 3.3kB lib/renderer.js
npm notice 216B lib/semvercache.d.ts
npm notice 862B lib/semvercache.js
npm notice 375B schema/plugin.json
npm notice === Tarball Details ===
npm notice name: @jupyter-widgets/jupyterlab-manager
npm notice version: 1.1.0
npm notice filename: jupyter-widgets-jupyterlab-manager-1.1.0.tgz
npm notice package size: 12.2 kB
npm notice unpacked size: 48.3 kB
npm notice shasum: 6196b9e3df314d488180fb5ed3bfb11df2dfdeaf
npm notice integrity: sha512-2dKdzl43nMvmr[...]53y1/ADuNbzhg==
npm notice total files: 16
npm notice
jupyter-widgets-jupyterlab-manager-1.1.0.tgz
Incompatible extension:
@jupyter-widgets/jupyterlab-manager
Found compatible version: 1.1.0
> /home/ec2-user/anaconda3/envs/JupyterSystemEnv/bin/npm pack @jupyter-widgets/[email protected]
npm notice
npm notice 📦 @jupyter-widgets/[email protected]
npm notice === Tarball Contents ===
npm notice 2.3kB package.json
npm notice 1.5kB LICENSE
npm notice 1.9kB README.md
npm notice 277B lib/index.d.ts
npm notice 380B lib/index.js
npm notice 5.9kB lib/manager.d.ts
npm notice 14.5kB lib/manager.js
npm notice 1.9kB lib/output.d.ts
npm notice 5.2kB lib/output.js
npm notice 830B lib/plugin.d.ts
npm notice 7.8kB lib/plugin.js
npm notice 956B lib/renderer.d.ts
npm notice 3.3kB lib/renderer.js
npm notice 216B lib/semvercache.d.ts
npm notice 862B lib/semvercache.js
npm notice 375B schema/plugin.json
npm notice === Tarball Details ===
npm notice name: @jupyter-widgets/jupyterlab-manager
npm notice version: 1.1.0
npm notice filename: jupyter-widgets-jupyterlab-manager-1.1.0.tgz
npm notice package size: 12.2 kB
npm notice unpacked size: 48.3 kB
npm notice shasum: 6196b9e3df314d488180fb5ed3bfb11df2dfdeaf
npm notice integrity: sha512-2dKdzl43nMvmr[...]53y1/ADuNbzhg==
npm notice total files: 16
npm notice
jupyter-widgets-jupyterlab-manager-1.1.0.tgz
Yarn configuration loaded.
Node v14.15.4
> /home/ec2-user/anaconda3/envs/JupyterSystemEnv/bin/npm pack jupyter-leaflet
npm notice
npm notice 📦 [email protected]
npm notice === Tarball Contents ===
npm notice 4.9kB src/jupyter-leaflet.css
npm notice 1.8kB dist/f9b7a75b186911a1b04d08f8db305b7a.gif
npm notice 1.5kB src/layers/AntPath.js
npm notice 706B src/controls/AttributionControl.js
npm notice 832B src/layers/AwesomeIcon.js
npm notice 872B src/layers/Circle.js
npm notice 862B src/layers/CircleMarker.js
npm notice 1.2kB src/controls/Control.js
npm notice 649B src/layers/DivIcon.js
npm notice 4.8kB src/controls/DrawControl.js
npm notice 144B src/embed.js
npm notice 398B src/extension.js
npm notice 566B src/layers/FeatureGroup.js
npm notice 701B src/controls/FullScreenControl.js
npm notice 2.1kB src/layers/GeoJSON.js
npm notice 1.1kB src/layers/Heatmap.js
npm notice 688B src/layers/Icon.js
npm notice 1.2kB src/layers/ImageOverlay.js
npm notice 838.8kB dist/index.js
npm notice 565B src/index.js
npm notice 2.5kB src/jupyter-leaflet.js
npm notice 501B src/jupyterlab-plugin.js
npm notice 4.7kB src/layers/Layer.js
npm notice 1.3kB src/layers/LayerGroup.js
npm notice 1.9kB src/controls/LayersControl.js
npm notice 11.9kB src/leaflet-heat.js
npm notice 4.7kB src/leaflet-magnifyingglass.js
npm notice 1.9kB src/leaflet.js
npm notice 2.1kB src/controls/LegendControl.js
npm notice 621B src/layers/LocalTileLayer.js
npm notice 1.9kB src/layers/MagnifyingGlass.js
npm notice 11.7kB src/Map.js
npm notice 3.8kB src/layers/Marker.js
npm notice 1.8kB src/layers/MarkerCluster.js
npm notice 1.9kB src/controls/MeasureControl.js
npm notice 294B src/notebook.js
npm notice 1.0kB src/layers/Path.js
npm notice 572B src/layers/Polygon.js
npm notice 1.9kB src/layers/Polyline.js
npm notice 2.9kB src/layers/Popup.js
npm notice 343B src/projections.js
npm notice 1.1kB src/layers/RasterLayer.js
npm notice 595B src/layers/Rectangle.js
npm notice 677B src/controls/ScaleControl.js
npm notice 2.1kB src/controls/SearchControl.js
npm notice 1.7kB src/controls/SplitMapControl.js
npm notice 1.9kB src/layers/TileLayer.js
npm notice 1.2kB src/utils.js
npm notice 441B src/layers/VectorLayer.js
npm notice 1.1kB src/layers/VectorTileLayer.js
npm notice 1.7kB src/layers/Velocity.js
npm notice 2.4kB src/layers/VideoOverlay.js
npm notice 1.8kB webpack.config.js
npm notice 3.5kB src/controls/WidgetControl.js
npm notice 1.1kB src/layers/WMSLayer.js
npm notice 788B src/controls/ZoomControl.js
npm notice 382B .eslintrc.json
npm notice 2.0kB package.json
npm notice 3.2MB dist/index.js.map
npm notice 356B README.md
npm notice 387B dist/056dcd0b0dea7c78019243311551d64b.png
npm notice 491B dist/07f16cd155661436fe27959eab15c820.png
npm notice 692B dist/0b50583aa1b8ff230b57b92263e47a3e.png
npm notice 165.5kB dist/0f2c10250081cf1bd9a4d2250b80dba6.png
npm notice 1.5kB dist/2273e3d8ad9264b7daa5bdbf8e6b47f8.png
npm notice 462B dist/35ae4b5f1bf198c6d955618b85710d05.png
npm notice 2.5kB dist/401d815dc206b8dc1b17cd0e37695975.png
npm notice 618B dist/44a526eed258222515aa21eaffd14a96.png
npm notice 420B dist/473ee081160a469c95199d70e78f55fa.png
npm notice 1.3kB dist/4f0283c6ce28e888000e978e537a6a56.png
npm notice 3.8kB dist/549b33bab7247b619c0292995f5a906b.png
npm notice 277B dist/592b7360116d244f9dd932b0c0041982.png
npm notice 150B dist/69fbc9c24b3665b801445c9bccc7017d.png
npm notice 3.6kB dist/6a1e950d14904d4b6fb5c9bdc3dfad06.png
npm notice 762B dist/6e8e462555c4b10dbfbc206e8276e6e2.png
npm notice 192B dist/7910c667cb5ddcdcb4ee3278627c85e1.png
npm notice 57.0kB dist/79148a43587cbe5c43d24fa894a78ba3.png
npm notice 279B dist/994ef255f2077b24b0d8975e90e37a33.png
npm notice 535B dist/9e9c77db241e8a58da99bf28694c907d.png
npm notice 696B dist/a6137456ed160d7606981aa57c559898.png
npm notice 397B dist/cfe6f6ffc5b2d6c482c36c68522f0282.png
npm notice 1.5kB dist/d3a5d64a8534322988a4bed1b7dbc8b0.png
npm notice 299B dist/ddb8362e333c8f3225da9d578d00c14c.png
npm notice 1.9kB dist/deac1d4aa2ccf7ed832e4db55bb64e63.png
npm notice 1.0kB dist/e81afdf0b23bc88ea3e6ef3fc2fb65d6.png
npm notice 326B dist/f4b0c949877c5f94158208551a57e29d.png
npm notice 460B dist/fd48ced8485c638cadcea3eaab6d0937.png
npm notice 5.6kB dist/fd5728f2cf777b06b966d05c0c823dc9.svg
npm notice 1.1kB dist/index.js.LICENSE.txt
npm notice === Tarball Details ===
npm notice name: jupyter-leaflet
npm notice version: 0.13.5
npm notice filename: jupyter-leaflet-0.13.5.tgz
npm notice package size: 1.2 MB
npm notice unpacked size: 4.4 MB
npm notice shasum: 497b0884796aed3cbd69b6d3188c31fa48e91244
npm notice integrity: sha512-DkmHM75T4U2hX[...]zewfMSjqrhRWw==
npm notice total files: 89
npm notice
jupyter-leaflet-0.13.5.tgz
Yarn configuration loaded.
Node v14.15.4
Building jupyterlab assets (build:prod:minimize)
> node /home/ec2-user/anaconda3/envs/JupyterSystemEnv/lib/python3.6/site-packages/jupyterlab/staging/yarn.js install --non-interactive
yarn install v1.15.2
[1/5] Validating package.json...
[2/5] Resolving packages...
warning jupyter-leaflet > leaflet.vectorgrid > [email protected]: This module has moved: please install @mapbox/vector-tile instead
warning jupyter-leaflet > leaflet.vectorgrid > vector-tile > [email protected]: This module has moved: please install @mapbox/point-geometry instead
[3/5] Fetching packages...
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[4/5] Linking dependencies...
warning " > @jupyterlab/[email protected]" has unmet peer dependency "codemirror@^5.0.0".
warning "@jupyterlab/git > [email protected]" has unmet peer dependency "codemirror@^5.0.0".
warning "jupyter-leaflet > @jupyter-widgets/base > @lumino/[email protected]" has unmet peer dependency "[email protected]".
[5/5] Building fresh packages...
success Saved lockfile.
Done in 24.43s.
> node /home/ec2-user/anaconda3/envs/JupyterSystemEnv/lib/python3.6/site-packages/jupyterlab/staging/yarn.js yarn-deduplicate -s fewer --fail
yarn run v1.15.2
$ /home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules/.bin/yarn-deduplicate -s fewer --fail
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
> node /home/ec2-user/anaconda3/envs/JupyterSystemEnv/lib/python3.6/site-packages/jupyterlab/staging/yarn.js
yarn install v1.15.2
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[4/5] Linking dependencies...
warning " > @jupyterlab/[email protected]" has unmet peer dependency "codemirror@^5.0.0".
warning "@jupyterlab/git > [email protected]" has unmet peer dependency "codemirror@^5.0.0".
[5/5] Building fresh packages...
success Saved lockfile.
Done in 6.16s.
> node /home/ec2-user/anaconda3/envs/JupyterSystemEnv/lib/python3.6/site-packages/jupyterlab/staging/yarn.js run build:prod:minimize
yarn run v1.15.2
$ ensure-max-old-space webpack --config webpack.prod.minimize.config.js
ModuleNotFoundError: Module not found: Error: Can't resolve '@lumino/widgets' in '/home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules/jupyter-leaflet/src/layers'
at /home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules/webpack/lib/Compilation.js:925:10
at /home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules/webpack/lib/NormalModuleFactory.js:401:22
at /home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules/webpack/lib/NormalModuleFactory.js:130:21
at /home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules/webpack/lib/NormalModuleFactory.js:224:22
at /home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules/neo-async/async.js:2830:7
at /home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules/neo-async/async.js:6877:13
at /home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules/webpack/lib/NormalModuleFactory.js:214:25
at /home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules/enhanced-resolve/lib/Resolver.js:213:14
at /home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules/enhanced-resolve/lib/Resolver.js:285:5
at eval (eval at create (/home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:15:1)
at /home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules/enhanced-resolve/lib/UnsafeCachePlugin.js:44:7
at /home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules/enhanced-resolve/lib/Resolver.js:285:5
at eval (eval at create (/home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:15:1)
at /home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules/enhanced-resolve/lib/Resolver.js:285:5
at eval (eval at create (/home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:27:1)
at /home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules/enhanced-resolve/lib/DescriptionFilePlugin.js:67:43
at /home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules/enhanced-resolve/lib/Resolver.js:285:5
at eval (eval at create (/home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:43:1)
at /home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules/enhanced-resolve/lib/ModuleKindPlugin.js:30:40
at /home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules/enhanced-resolve/lib/Resolver.js:285:5
at eval (eval at create (/home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:15:1)
at /home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules/enhanced-resolve/lib/Resolver.js:285:5
at eval (eval at create (/home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:15:1)
at /home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules/enhanced-resolve/lib/forEachBail.js:30:14
at /home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules/enhanced-resolve/lib/Resolver.js:285:5
at eval (eval at create (/home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:15:1)
at /home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules/enhanced-resolve/lib/UnsafeCachePlugin.js:44:7
at /home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules/enhanced-resolve/lib/Resolver.js:285:5
at eval (eval at create (/home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:15:1)
at /home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules/enhanced-resolve/lib/Resolver.js:285:5
at eval (eval at create (/home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:27:1)
at /home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules/enhanced-resolve/lib/DescriptionFilePlugin.js:67:43
at /home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules/enhanced-resolve/lib/Resolver.js:285:5
at eval (eval at create (/home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:16:1)
at /home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules/enhanced-resolve/lib/RootPlugin.js:37:38
at _next42 (eval at create (/home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:8:1)
resolve '@lumino/widgets' in '/home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules/jupyter-leaflet/src/layers'
Parsed request is a module
using description file: /home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules/jupyter-leaflet/package.json (relative path: ./src/layers)
Field 'browser' doesn't contain a valid alias configuration
resolve as module
/home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules/jupyter-leaflet/src/layers/node_modules doesn't exist or is not a directory
/home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules/jupyter-leaflet/src/node_modules doesn't exist or is not a directory
/home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules/node_modules doesn't exist or is not a directory
/home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/node_modules doesn't exist or is not a directory
/home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/node_modules doesn't exist or is not a directory
/home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/node_modules doesn't exist or is not a directory
/home/ec2-user/anaconda3/envs/JupyterSystemEnv/node_modules doesn't exist or is not a directory
/home/ec2-user/anaconda3/envs/node_modules doesn't exist or is not a directory
/home/ec2-user/anaconda3/node_modules doesn't exist or is not a directory
/home/ec2-user/node_modules doesn't exist or is not a directory
/home/node_modules doesn't exist or is not a directory
/node_modules doesn't exist or is not a directory
looking for modules in /home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules/jupyter-leaflet/node_modules
using description file: /home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules/jupyter-leaflet/package.json (relative path: ./node_modules)
Field 'browser' doesn't contain a valid alias configuration
looking for modules in /home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules
using description file: /home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/package.json (relative path: ./node_modules)
Field 'browser' doesn't contain a valid alias configuration
using description file: /home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules/jupyter-leaflet/package.json (relative path: ./node_modules/@lumino/widgets)
no extension
Field 'browser' doesn't contain a valid alias configuration
using description file: /home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/package.json (relative path: ./node_modules/@lumino/widgets)
no extension
Field 'browser' doesn't contain a valid alias configuration
/home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules/jupyter-leaflet/node_modules/@lumino/widgets doesn't exist
.wasm
Field 'browser' doesn't contain a valid alias configuration
/home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules/@lumino/widgets doesn't exist
.wasm
Field 'browser' doesn't contain a valid alias configuration
/home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules/jupyter-leaflet/node_modules/@lumino/widgets.wasm doesn't exist
.mjs
Field 'browser' doesn't contain a valid alias configuration
/home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules/@lumino/widgets.wasm doesn't exist
.mjs
Field 'browser' doesn't contain a valid alias configuration
/home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules/jupyter-leaflet/node_modules/@lumino/widgets.mjs doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
/home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules/@lumino/widgets.mjs doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
/home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules/jupyter-leaflet/node_modules/@lumino/widgets.js doesn't exist
.json
Field 'browser' doesn't contain a valid alias configuration
/home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules/@lumino/widgets.js doesn't exist
.json
Field 'browser' doesn't contain a valid alias configuration
/home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules/jupyter-leaflet/node_modules/@lumino/widgets.json doesn't exist
/home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules/@lumino/widgets.json doesn't exist
as directory
/home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules/jupyter-leaflet/node_modules/@lumino/widgets doesn't exist
as directory
/home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules/@lumino/widgets doesn't exist
child_process.js:637
throw err;
^
Error: Command failed: /home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules/.bin/webpack --config webpack.prod.minimize.config.js
at checkExecSyncError (child_process.js:616:11)
at Object.execFileSync (child_process.js:634:15)
at Object.<anonymous> (/home/ec2-user/anaconda3/envs/JupyterSystemEnv/share/jupyter/lab/staging/node_modules/@jupyterlab/buildutils/lib/ensure-max-old-space.js:38:17)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:47 {
status: 1,
signal: null,
output: [ null, null, null ],
pid: 6670,
stdout: null,
stderr: null
}
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 "/home/ec2-user/anaconda3/envs/JupyterSystemEnv/lib/python3.6/site-packages/jupyterlab/debuglog.py", line 47, in debug_logging
yield
File "/home/ec2-user/anaconda3/envs/JupyterSystemEnv/lib/python3.6/site-packages/jupyterlab/labextensions.py", line 105, in start
command=command, app_options=app_options)
File "/home/ec2-user/anaconda3/envs/JupyterSystemEnv/lib/python3.6/site-packages/jupyterlab/commands.py", line 459, in build
command=command, clean_staging=clean_staging)
File "/home/ec2-user/anaconda3/envs/JupyterSystemEnv/lib/python3.6/site-packages/jupyterlab/commands.py", line 669, in build
raise RuntimeError(msg)
RuntimeError: JupyterLab failed to build
Exiting application: jupyter