Hello, I am trying to understand why the ipywidgets are not usable in the jupyterlab environment.

So, I am trying to rebuild the ipywidgets using the upstream build system, which use the jupyterlab-packaging module.

This one seems in charge of the javascript  compilation etc...

So at some point it try to build the package and I end up with this error message.

- My first question is how can I be sure that I use only the debian node packages and not some library downloaded from internet.

thanks for you help

Frederic


I: pybuild base:311: python3.13 -m build --skip-dependency-check --no-isolation --wheel --outdir /home/picca/debian/python-team/packages/ipywidgets/.pybuild/cpython3_3.13
* Building wheel...
➤ YN0087: Migrated your project to the latest Yarn version 🚀


➤ YN0000: · Yarn 4.0.2

➤ YN0000: ┌ Resolution step

➤ YN0085: │ + typescript@patch:typescript@npm%3A4.9.5#optional!builtin<compat/typescript>::version=4.9.5&hash=289587, and 2 more.

➤ YN0085: │ - fsevents@patch:fsevents@npm%3A2.3.3#~builtin<compat/fsevents>::version=2.3.3&hash=df0bf1, and 2 more.

➤ YN0000: └ Completed in 7s 60ms

➤ YN0000: ┌ Post-resolution validation

➤ YN0060: │ webpack is listed by your project with version 5.91.0, which doesn't satisfy what istanbul-instrumenter-loader (p1741d) requests (^2.0.0 || ^3.0.0 || ^4.0.0). ➤ YN0002: │ @jupyter-widgets/jupyterlab-manager@workspace:python/jupyterlab_widgets doesn't provide react (p5cbe2), requested by @jupyterlab/settingregistry.

➤ YN0086: │ Some peer dependencies are incorrectly met; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter p-prefixed code.

➤ YN0000: └ Completed

➤ YN0000: ┌ Fetch step

➤ YN0000: └ Completed in 18s 944ms

➤ YN0000: ┌ Link step

➤ YN0000: └ Completed in 10s 990ms

➤ YN0000: · Done with warnings in 37s 452ms

src/manager.ts(19,8): error TS2307: Cannot find module '@jupyter-widgets/base-manager' or its corresponding type declarations.


src/manager.ts(83,38): error TS2339: Property 'comm_target_name' does not exist on type 'LabWidgetManager'. src/manager.ts(87,40): error TS2339: Property 'comm_target_name' does not exist on type 'LabWidgetManager'. src/manager.ts(142,25): error TS2339: Property 'comm_target_name' does not exist on type 'LabWidgetManager'. src/manager.ts(315,16): error TS2551: Property 'handle_comm_open' does not exist on type 'LabWidgetManager'. Did you mean '_handleCommOpen'? src/manager.ts(532,20): error TS2339: Property 'filterExistingModelState' does not exist on type 'WidgetManager'. src/manager.ts(533,18): error TS2339: Property 'set_state' does not exist on type 'WidgetManager'. src/renderer.ts(57,31): error TS2339: Property 'get_model' does not exist on type 'LabWidgetManager'. src/renderer.ts(77,34): error TS2339: Property 'create_view' does not exist on type 'LabWidgetManager'. src/output.ts(120,3): error TS2416: Property 'widget_manager' in type 'OutputModel' is not assignable to the same property in base type 'OutputModel'. Type 'LabWidgetManager' is missing the following properties from type 'IWidgetManager': get_model, has_model, new_widget, new_model, and 2 more. src/output.ts(128,56): error TS2322: Type 'this' is not assignable to type 'DOMWidgetView'.
  Type 'OutputView' is not assignable to type 'DOMWidgetView'.
    Types of property 'model' are incompatible.
      Type 'OutputModel' is not assignable to type 'WidgetModel'.
src/output.ts(168,3): error TS2416: Property 'model' in type 'OutputView' is not assignable to the same property in base type 'OutputView'.
  Type 'OutputModel' is not assignable to type 'WidgetModel'.
    Types of property 'widget_manager' are incompatible.
Type 'LabWidgetManager' is not assignable to type 'IWidgetManager'. src/plugin.ts(546,18): error TS2322: Type 'typeof OutputModel' is not assignable to type 'typeof WidgetModel | typeof WidgetView'.
  Types of construct signatures are incompatible.
Type 'new (attributes?: any, options?: any) => OutputModel' is not assignable to type 'new (attributes?: any, options?: any) => WidgetModel'.
      Type 'OutputModel' is not assignable to type 'WidgetModel'.
src/plugin.ts(546,31): error TS2322: Type 'typeof OutputView' is not assignable to type 'typeof WidgetModel | typeof WidgetView'. Type 'typeof OutputView' is missing the following properties from type 'typeof WidgetModel': _deserialize_state, serializers


Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
    main()
    ~~~~^^
File "/usr/lib/python3/dist-packages/pyproject_hooks/_in_process/_in_process.py", line 373, in main
    json_out["return_val"] = hook(**hook_input["kwargs"])
                             ~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/pyproject_hooks/_in_process/_in_process.py", line 280, in build_wheel
    return _build_backend().build_wheel(
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
        wheel_directory, config_settings, metadata_directory
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
File "/usr/lib/python3/dist-packages/jupyter_packaging/build_api.py", line 22, in build_wheel
    builder()
    ~~~~~~~^^
File "/usr/lib/python3/dist-packages/jupyter_packaging/setupbase.py", line 233, in builder
    run(npm_cmd + ["run", build_cmd], cwd=node_package)
    ~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/jupyter_packaging/setupbase.py", line 297, in run
    return subprocess.check_call(cmd, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/subprocess.py", line 419, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/jlpm', 'run', 'build:prod']' returned non-zero exit status 2.

--
Pkg-javascript-devel mailing list
Pkg-javascript-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

Reply via email to