ricklupton / ipysankeywidget

IPython / Jupyter Sankey diagram widget
MIT License
174 stars 24 forks source link

ipysankeywidget installed via conda under Windows 10, but `jupyter labextension install jupyter-sankey-widget @jupyter-widgets/jupyterlab-manager` fails #70

Closed 1kastner closed 1 year ago

1kastner commented 3 years ago

First of all, thank you very much for sharing this project with the public!

I have installed ipysankeywidget via conda under Windows 10 and as far as I understand, everything should be fine with that step. However, when I tried to run a simple example, Error displaying widget: model not found showed up instead of a visualization. Thus, I ran jupyter labextension install jupyter-sankey-widget @jupyter-widgets/jupyterlab-manager. This, however, fails because of the required fsevents npm package.

This behavior leads to the question: For which versions of JupyterLab have you designed this widget? Is JupyterLab v3 officially currently supported? Is Windows 10 officially currently supported? fsevents seems incompatible with this rather common operating system. Is this a planned and accepted behavior at the current stage of the project? Thank you very much for your input.

If of any interest, here is the output I got when I ran the code:

(MYCONDAENV) PS C:\Users\XXXXXXX\Documents\LDIC2021\ConFlowGen> jupyter labextension install jupyter-sankey-widget @jupyter-widgets/jupyterlab-manager
Config option `kernel_spec_manager_class` not recognized by `InstallLabExtensionApp`.
[W 2021-09-19 17:08:56.629 LabApp] Config option `kernel_spec_manager_class` not recognized by `LabApp`.
Building jupyterlab assets (production, minimized)
An error occurred.
RuntimeError: npm dependencies failed to install
See the log file for details:  C:\Users\XXXXXXX\AppData\Local\Temp\jupyterlab-debug-jx0ma4at.log
(MYCONDAENV) PS C:\Users\XXXXXXX\Documents\LDIC2021\ConFlowGen> type C:\Users\XXXXXXX\AppData\Local\Temp\jupyterlab-debug-jx0ma4at.log
Node v14.17.6

Yarn configuration loaded.
> "C:\Program Files\nodejs\npm.CMD" pack jupyter-sankey-widget
npm notice
npm notice package: jupyter-sankey-widget@0.4.1
npm notice === Tarball Contents ===
npm notice 458B  lib/embed.js
npm notice 847B  lib/extension.js
npm notice 1.5MB dist/index.js
npm notice 183B  lib/index.js
npm notice 379B  lib/labplugin.js
npm notice 7.7kB lib/sankey-widget.js
npm notice 1.1kB package.json
npm notice 170B  README.md
npm notice === Tarball Details ===
npm notice name:          jupyter-sankey-widget
npm notice version:       0.4.1
npm notice filename:      jupyter-sankey-widget-0.4.1.tgz
npm notice package size:  287.5 kB
npm notice unpacked size: 1.5 MB
npm notice shasum:        1ea2b183535d1e0ae8cbb6f820774460894ed5e1
npm notice integrity:     sha512-UdcQG+1KmxvbC[...]Tbzebh1IlQF1A==
npm notice total files:   8
npm notice
jupyter-sankey-widget-0.4.1.tgz

Node v14.17.6

Yarn configuration loaded.
> "C:\Program Files\nodejs\npm.CMD" pack @jupyter-widgets/jupyterlab-manager
npm notice
npm notice package: @jupyter-widgets/jupyterlab-manager@3.0.1
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.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.0.1
npm notice filename:      jupyter-widgets-jupyterlab-manager-3.0.1.tgz
npm notice package size:  15.6 kB
npm notice unpacked size: 64.0 kB
npm notice shasum:        ba70c14282fb8bd3c6560588f4c7b90b2b2b05fb
npm notice integrity:     sha512-yhmakhiAFtKtZ[...]RptG4BvNdS+HA==
npm notice total files:   16
npm notice
jupyter-widgets-jupyterlab-manager-3.0.1.tgz

Fetching URL: https://registry.yarnpkg.com/@jupyter-widgets%2Fjupyterlab-manager
> "C:\Program Files\nodejs\npm.CMD" pack @jupyter-widgets/jupyterlab-manager@3.0.1
npm notice
npm notice package: @jupyter-widgets/jupyterlab-manager@3.0.1
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.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.0.1
npm notice filename:      jupyter-widgets-jupyterlab-manager-3.0.1.tgz
npm notice package size:  15.6 kB
npm notice unpacked size: 64.0 kB
npm notice shasum:        ba70c14282fb8bd3c6560588f4c7b90b2b2b05fb
npm notice integrity:     sha512-yhmakhiAFtKtZ[...]RptG4BvNdS+HA==
npm notice total files:   16
npm notice
jupyter-widgets-jupyterlab-manager-3.0.1.tgz

Node v14.17.6

Yarn configuration loaded.
Building jupyterlab assets (production, minimized)
> node C:\Users\XXXXXXX\Anaconda3\envs\MYCONDAENV\lib\site-packages\jupyterlab\staging\yarn.js install --non-interactive
yarn install v1.21.1
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
error fsevents@2.3.2: The platform "win32" is incompatible with this module.
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

npm dependencies failed to install
Traceback (most recent call last):

  File "C:\Users\XXXXXXX\Anaconda3\envs\MYCONDAENV\lib\site-packages\jupyterlab\debuglog.py", line 48, in debug_logging
    yield

  File "C:\Users\XXXXXXX\Anaconda3\envs\MYCONDAENV\lib\site-packages\jupyterlab\labextensions.py", line 140, in start
    build(clean_staging=self.should_clean,

  File "C:\Users\XXXXXXX\Anaconda3\envs\MYCONDAENV\lib\site-packages\jupyterlab\commands.py", line 482, in build
    return handler.build(name=name, version=version, static_url=static_url,

  File "C:\Users\XXXXXXX\Anaconda3\envs\MYCONDAENV\lib\site-packages\jupyterlab\commands.py", line 688, in build
    raise RuntimeError(msg)

RuntimeError: npm dependencies failed to install

Exiting application: lab
(MYCONDAENV) PS C:\Users\XXXXXXX\Documents\LDIC2021\ConFlowGen>
ricklupton commented 1 year ago

Sorry for the late reply! The jupyter widget code has been updated since then and I think this should work in jupyter-lab now. Please comment if this is still an issue.