#1141208 jupyter-notebook: FTBFS: Error: Cannot find module 'glob-to-regexp'

#1141208#5
Date:
2026-07-01 11:32:24 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202607/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:jupyter-notebook, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
Building extension in .


node:internal/modules/cjs/loader:1517
  const err = new Error(message);
              ^

Error: Cannot find module 'glob-to-regexp'
Require stack:
- /usr/share/nodejs/webpack/lib/optimize/SideEffectsFlagPlugin.js
- /usr/share/nodejs/webpack/lib/WebpackOptionsApply.js
- /usr/share/nodejs/webpack/lib/webpack.js
- /usr/share/nodejs/webpack/lib/index.js
- /<<PKGBUILDDIR>>/node_modules/@jupyterlab/builder/lib/build-labextension.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1517:15)
    at wrapResolveFilename (node:internal/modules/cjs/loader:1071:27)
    at defaultResolveImplForCJSLoading (node:internal/modules/cjs/loader:1095:10)
    at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1122:12)
    at Module._load (node:internal/modules/cjs/loader:1294:5)
    at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)
    at Module.require (node:internal/modules/cjs/loader:1617:12)
    at require (node:internal/modules/helpers:153:16)
    at Object.<anonymous> (/usr/share/nodejs/webpack/lib/optimize/SideEffectsFlagPlugin.js:8:21)
    at Module._compile (node:internal/modules/cjs/loader:1871:14) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/usr/share/nodejs/webpack/lib/optimize/SideEffectsFlagPlugin.js',
    '/usr/share/nodejs/webpack/lib/WebpackOptionsApply.js',
    '/usr/share/nodejs/webpack/lib/webpack.js',
    '/usr/share/nodejs/webpack/lib/index.js',
    '/<<PKGBUILDDIR>>/node_modules/@jupyterlab/builder/lib/build-labextension.js'
  ]
}

Node.js v24.18.0


/usr/lib/python3/dist-packages/jupyterlab/debuglog.py:56: UserWarning: An error occurred.
  warnings.warn("An error occurred.")
/usr/lib/python3/dist-packages/jupyterlab/debuglog.py:57: UserWarning: subprocess.CalledProcessError: Command '['node', '/<<PKGBUILDDIR>>/node_modules/@jupyterlab/builder/lib/build-labextension.js', '--core-path', '/usr/lib/python3/dist-packages/jupyterlab/staging', '/<<PKGBUILDDIR>>/packages/lab-extension']' returned non-zero exit status 1.
  warnings.warn(msg[-1].strip())

/usr/lib/python3/dist-packages/jupyterlab/debuglog.py:58: UserWarning: See the log file for details: /tmp/jupyterlab-debug-v15khlcb.log
  warnings.warn(f"See the log file for details: {log_path!s}")


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/hatchling/build.py", line 58, in build_wheel
    return os.path.basename(next(builder.build(directory=wheel_directory, versions=["standard"])))
                            ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/hatchling/builders/plugin/interface.py", line 149, in build
    build_hook.initialize(version, build_data)
    ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/hatch_jupyter_builder/plugin.py", line 87, in initialize
    raise e
  File "/usr/lib/python3/dist-packages/hatch_jupyter_builder/plugin.py", line 82, in initialize
    build_func(self.target_name, version, **build_kwargs)
    ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/hatch_jupyter_builder/utils.py", line 115, in npm_builder
    run([*npm_cmd, "run", build_cmd], cwd=str(abs_path))
    ~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/hatch_jupyter_builder/utils.py", line 229, 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 1.

ERROR Backend subprocess exited when trying to invoke build_wheel
E: pybuild pybuild:485: build: plugin pyproject failed with: exit code=1: python3.13 -m build --skip-dependency-check --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13
I: pybuild plugin_pyproject:142: Building wheel for python3.14 with "build" module
I: pybuild base:385: python3.14 -m build --skip-dependency-check --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14
* Building wheel...
INFO:hatch_jupyter_builder.utils:Running jupyter-builder
INFO:hatch_jupyter_builder.utils:Building with hatch_jupyter_builder.npm_builder
INFO:hatch_jupyter_builder.utils:With kwargs: {'build_cmd': 'build:prod', 'editable_build_cmd': 'build', 'source_dir': 'packages', 'build_dir': 'notebook/static', 'npm': 'jlpm'}
INFO:hatch_jupyter_builder.utils:Installing build dependencies with npm.  This may take a while...
INFO:hatch_jupyter_builder.utils:> /usr/bin/jlpm install
INFO:hatch_jupyter_builder.utils:> /usr/bin/jlpm run build:prod


# packages/application


# packages/console-extension


# packages/docmanager-extension


# packages/terminal-extension


# packages/ui-components


# packages/application-extension


# packages/documentsearch-extension


# packages/help-extension


# packages/lab-extension

Building extension in .


node:internal/modules/cjs/loader:1517
  const err = new Error(message);
              ^

Error: Cannot find module 'glob-to-regexp'
Require stack:
- /usr/share/nodejs/webpack/lib/optimize/SideEffectsFlagPlugin.js
- /usr/share/nodejs/webpack/lib/WebpackOptionsApply.js
- /usr/share/nodejs/webpack/lib/webpack.js
- /usr/share/nodejs/webpack/lib/index.js
- /<<PKGBUILDDIR>>/node_modules/@jupyterlab/builder/lib/build-labextension.js
    at Module._resolveFilename (node:internal/modules/cjs/loader:1517:15)
    at wrapResolveFilename (node:internal/modules/cjs/loader:1071:27)
    at defaultResolveImplForCJSLoading (node:internal/modules/cjs/loader:1095:10)
    at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1122:12)
    at Module._load (node:internal/modules/cjs/loader:1294:5)
    at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)
    at Module.require (node:internal/modules/cjs/loader:1617:12)
    at require (node:internal/modules/helpers:153:16)
    at Object.<anonymous> (/usr/share/nodejs/webpack/lib/optimize/SideEffectsFlagPlugin.js:8:21)
    at Module._compile (node:internal/modules/cjs/loader:1871:14) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/usr/share/nodejs/webpack/lib/optimize/SideEffectsFlagPlugin.js',
    '/usr/share/nodejs/webpack/lib/WebpackOptionsApply.js',
    '/usr/share/nodejs/webpack/lib/webpack.js',
    '/usr/share/nodejs/webpack/lib/index.js',
    '/<<PKGBUILDDIR>>/node_modules/@jupyterlab/builder/lib/build-labextension.js'
  ]
}

Node.js v24.18.0


/usr/lib/python3/dist-packages/jupyterlab/debuglog.py:56: UserWarning: An error occurred.
  warnings.warn("An error occurred.")
/usr/lib/python3/dist-packages/jupyterlab/debuglog.py:57: UserWarning: subprocess.CalledProcessError: Command '['node', '/<<PKGBUILDDIR>>/node_modules/@jupyterlab/builder/lib/build-labextension.js', '--core-path', '/usr/lib/python3/dist-packages/jupyterlab/staging', '/<<PKGBUILDDIR>>/packages/lab-extension']' returned non-zero exit status 1.
  warnings.warn(msg[-1].strip())

/usr/lib/python3/dist-packages/jupyterlab/debuglog.py:58: UserWarning: See the log file for details: /tmp/jupyterlab-debug-ggnh68s1.log
  warnings.warn(f"See the log file for details: {log_path!s}")


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/hatchling/build.py", line 58, in build_wheel
    return os.path.basename(next(builder.build(directory=wheel_directory, versions=["standard"])))
                            ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/hatchling/builders/plugin/interface.py", line 149, in build
    build_hook.initialize(version, build_data)
    ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/hatch_jupyter_builder/plugin.py", line 87, in initialize
    raise e
  File "/usr/lib/python3/dist-packages/hatch_jupyter_builder/plugin.py", line 82, in initialize
    build_func(self.target_name, version, **build_kwargs)
    ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/hatch_jupyter_builder/utils.py", line 115, in npm_builder
    run([*npm_cmd, "run", build_cmd], cwd=str(abs_path))
    ~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/hatch_jupyter_builder/utils.py", line 229, in run
    return subprocess.check_call(cmd, **kwargs)
           ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
  File "/usr/lib/python3.14/subprocess.py", line 420, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/bin/jlpm', 'run', 'build:prod']' returned non-zero exit status 1.

ERROR Backend subprocess exited when trying to invoke build_wheel
E: pybuild pybuild:485: build: plugin pyproject failed with: exit code=1: python3.14 -m build --skip-dependency-check --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14
dh_auto_build: error: pybuild --build -i python{version} -p "3.13 3.14" --parallel=2 returned exit code 13
make[1]: *** [debian/rules:21: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:13: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------

#1141208#26
Date:
2026-07-01 20:39:26 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
node-webpack, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1141212@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Xavier Guimard <yadd@debian.org> (supplier of updated node-webpack package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Wed, 01 Jul 2026 22:14:20 +0200
Source: node-webpack
Architecture: source
Version: 5.108.0+dfsg1+~cs14.7.20-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org>
Changed-By: Xavier Guimard <yadd@debian.org>
Closes: 1141212
Changes:
 node-webpack (5.108.0+dfsg1+~cs14.7.20-1) unstable; urgency=medium
 .
   * Team upload
 .
   [ Bastien Roucariès ]
   * New upstream version 5.108.0+dfsg1+~cs14.7.20 (Closes: #1141212)
   * Drop acorn-import-attributes
Checksums-Sha1:
 b4caa652570d50b48bd518b7607b13da2ebee48f 4984 node-webpack_5.108.0+dfsg1+~cs14.7.20-1.dsc
 b19a7846df37bbe2d8bd4f8ee4a4c9e761d430c3 52876 node-webpack_5.108.0+dfsg1+~cs14.7.20.orig-discoveryjs-json-ext.tar.xz
 15e1157fccb786b31edde5d1e22d85d66d6bd4fd 5744 node-webpack_5.108.0+dfsg1+~cs14.7.20.orig-fastest-levenshtein.tar.xz
 4d84892f502dc3b8d202c164b42caa1b75d83796 210056 node-webpack_5.108.0+dfsg1+~cs14.7.20.orig-terser-webpack-plugin.tar.xz
 8232e46a93be6cbda154aa5afa2cb3c837982cfd 279508 node-webpack_5.108.0+dfsg1+~cs14.7.20.orig-webpack-cli.tar.xz
 1f004b6606705f27e7e8deab71e91180c4ed7d7d 4344032 node-webpack_5.108.0+dfsg1+~cs14.7.20.orig.tar.xz
 e5255bc2c01c85680fdc486937fac4aefbc42d5e 30524 node-webpack_5.108.0+dfsg1+~cs14.7.20-1.debian.tar.xz
Checksums-Sha256:
 5e3f90caeb858e913bf7665da86f7f2ca7b4bf29567149c1821880028f89b682 4984 node-webpack_5.108.0+dfsg1+~cs14.7.20-1.dsc
 13c3bb1dd6f0daa2d361844284871cde8fe10ea7a81558ef5a243238e10d74c1 52876 node-webpack_5.108.0+dfsg1+~cs14.7.20.orig-discoveryjs-json-ext.tar.xz
 23d65dd323028491a556a7dc5ac1270c94eb5f31fc62eb1d69f07275a82e3f25 5744 node-webpack_5.108.0+dfsg1+~cs14.7.20.orig-fastest-levenshtein.tar.xz
 0eadef1ed0a21638b206e85fb84c5a0f742012927d4330423b719ce39fdadc24 210056 node-webpack_5.108.0+dfsg1+~cs14.7.20.orig-terser-webpack-plugin.tar.xz
 ce1db58534c8f8131a347714fccd0a616a1dd901d8c64aa4dde536f968ba6317 279508 node-webpack_5.108.0+dfsg1+~cs14.7.20.orig-webpack-cli.tar.xz
 503238930bceb6eda81e1efd7db92bdd9ec3c62995a6b88781bfa120ee36f1f2 4344032 node-webpack_5.108.0+dfsg1+~cs14.7.20.orig.tar.xz
 550ee3367c949cb4c850aeef1f09bb441d8a9f25b1b689162045b04e4b3f8e21 30524 node-webpack_5.108.0+dfsg1+~cs14.7.20-1.debian.tar.xz
Files:
 f014ca2badcdee277e539fac6e938897 4984 javascript optional node-webpack_5.108.0+dfsg1+~cs14.7.20-1.dsc
 ceb8f0f496c0520684906ebc0fa2ee76 52876 javascript optional node-webpack_5.108.0+dfsg1+~cs14.7.20.orig-discoveryjs-json-ext.tar.xz
 342a850652bb99cf7df90884a86b8593 5744 javascript optional node-webpack_5.108.0+dfsg1+~cs14.7.20.orig-fastest-levenshtein.tar.xz
 6b3ca169444c0863413364c523d13f19 210056 javascript optional node-webpack_5.108.0+dfsg1+~cs14.7.20.orig-terser-webpack-plugin.tar.xz
 717fdd57b62fdc0040f858cf11eb3278 279508 javascript optional node-webpack_5.108.0+dfsg1+~cs14.7.20.orig-webpack-cli.tar.xz
 7057af02b6203ac8d5e8fc388bc565f2 4344032 javascript optional node-webpack_5.108.0+dfsg1+~cs14.7.20.orig.tar.xz
 3fe8205383bd0ec68d15ed38e7d03f76 30524 javascript optional node-webpack_5.108.0+dfsg1+~cs14.7.20-1.debian.tar.xz
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEAN/li4tVV3nRAF7J9tdMp8mZ7ukFAmpFdbcACgkQ9tdMp8mZ
7um3qhAAlsEJjUF/EP9aSEf96oESP7mS/TgTlVvy0EGWHPrKoNgZUVQME17pA2C8
ekLsmXwELFxBwZoIFxqVPaDZ1Ft6sTinKYCUiGYzYSLmLGNUOx3tNlX1t4CY3sTk
L4aV2P1fCjVqMcVAONOkL2briEkk04n+k4AzWZTsRC8617u5ALQ0v7mt8x5p/Ig4
7NSwvqTACJreVAdMnvMhRMqXPcEu0yC9imZQasLEp6bfJB9eVmpKLGb980+yUC1s
+wU+0AWgFC2rzkij0tqf1QF/URGR7YvG++RX/KjoLszQub5RsQZ6yHV8eP/0TxtJ
DWTdWFXFn2e2OlWAHXOsc+9bJipAm87VpgYoUy0idFJbWAwFPXblXMCFIPaDsz7H
tNSWmPmb3lMDzksCJWk/xAO0Hg1CS6f8xfyppJbO06jJ8SNXyK9kn41H4CyM46q/
3N0Dke+bcUk/+KzA3ULXmQuxe1bKlA5KfCaZxNKoW8Z/IKKTJwcuBKGrd5WstX26
R7rvqtDq83F8NRtTNdohFJm7iuIxF845gRujiN48E4A4PhiCO/0GJkrt1u/fV3Rz
Jcnp1HMQvsS0nXauXv9JEvh7cGsNnkpnegyW6uTqlngIUeqYQSg30Oa6bnct+Ikn
HubeIXGUwzuEil7P+R4rJ9QPYl91lzwcnit1lJfq/DVRCURE2aM=
=0VpM
-----END PGP SIGNATURE-----