You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I am trying to build a jupyterlab-extension in my system. I have followed developers guild. Particularly the steps mentioned under Jupyter Lab Extension
However, I am getting below error everytime × Failed to buildjupyterlab-optuna @ file:///Users/ayush.goyal/Desktop/releases/AIPlatform-3.11/optuna-dashboard/jupyterlab├─▶ The build backend returned an error ╰─▶ Call tohatchling.build.build_editable` failed (exit status: 1)
[stdout]
➤ YN0000: ┌ Resolution step
➤ YN0002: │ @jupyterlab/services@npm:7.4.4 doesn't provide react (p7017d), requested by @jupyterlab/settingregistry
➤ YN0002: │ jupyterlab-optuna@workspace:. doesn't provide webpack (p7497c), requested by source-map-loader
➤ YN0002: │ jupyterlab-optuna@workspace:. doesn't provide webpack (p3b3e4), requested by style-loader
➤ YN0002: │ molstar@npm:4.18.0 [12e3b] doesn't provide fp-ts (pcb476), requested by io-ts
➤ YN0002: │ ngl@npm:2.4.0 doesn't provide react (p8268a), requested by molstar
➤ YN0002: │ ngl@npm:2.4.0 doesn't provide react-dom (pe4ac3), requested by molstar
➤ YN0002: │ notistack@npm:3.0.2 [c3e4f] doesn't provide csstype (pc5d68), requested by goober
➤ YN0000: │ 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 0s 517ms
➤ YN0000: ┌ Link step
➤ YN0000: │ ESM support for PnP uses the experimental loader API and is therefore experimental
➤ YN0000: └ Completed
➤ YN0000: Done with warnings in 0s 873ms
Type Error: Cannot read properties of undefined (reading
'/Users/ayush.goyal/Desktop/releases/AIPlatform-3.11/optuna-dashboard/jupyterlab/.pnp.cjs')
at a4 (/Users/ayush.goyal/.cache/uv/builds-v0/.tmpFJLojj/lib/python3.14/site-packages/jupyterlab/staging/yarn.js:390:12692)
at i0e (/Users/ayush.goyal/.cache/uv/builds-v0/.tmpFJLojj/lib/python3.14/site-packages/jupyterlab/staging/yarn.js:390:13173)
at Object.pf (/Users/ayush.goyal/.cache/uv/builds-v0/.tmpFJLojj/lib/python3.14/site-packages/jupyterlab/staging/yarn.js:390:13402)
at /Users/ayush.goyal/.cache/uv/builds-v0/.tmpFJLojj/lib/python3.14/site-packages/jupyterlab/staging/yarn.js:694:4608
at Object.Fa (/Users/ayush.goyal/.cache/uv/builds-v0/.tmpFJLojj/lib/python3.14/site-packages/jupyterlab/staging/yarn.js:390:10714)
at ml.findPackageLocation
(/Users/ayush.goyal/.cache/uv/builds-v0/.tmpFJLojj/lib/python3.14/site-packages/jupyterlab/staging/yarn.js:694:4563)
at /Users/ayush.goyal/.cache/uv/builds-v0/.tmpFJLojj/lib/python3.14/site-packages/jupyterlab/staging/yarn.js:423:1264
at Array.from (<anonymous>)
at RB (/Users/ayush.goyal/.cache/uv/builds-v0/.tmpFJLojj/lib/python3.14/site-packages/jupyterlab/staging/yarn.js:423:1008)
at f7 (/Users/ayush.goyal/.cache/uv/builds-v0/.tmpFJLojj/lib/python3.14/site-packages/jupyterlab/staging/yarn.js:423:1589)
[stderr]
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': 'install:extension', 'npm': ['jlpm'], 'source_dir': 'src', 'build_dir':
'jupyterlab_optuna/labextension'}
INFO:hatch_jupyter_builder.utils:Installing build dependencies with npm. This may take a while...
INFO:hatch_jupyter_builder.utils:> /Users/ayush.goyal/.cache/uv/builds-v0/.tmpFJLojj/bin/jlpm install
INFO:hatch_jupyter_builder.utils:> /Users/ayush.goyal/.cache/uv/builds-v0/.tmpFJLojj/bin/jlpm run install:extension
Traceback (most recent call last):
File "<string>", line 11, in <module>
wheel_filename = backend.build_editable("/Users/ayush.goyal/.cache/uv/builds-v0/.tmpDRIbDG", {},
"/Users/ayush.goyal/.cache/uv/builds-v0/.tmpFJLojj/metadata_directory/jupyterlab_optuna-0.2.4.dist-info")
File "/Users/ayush.goyal/.cache/uv/builds-v0/.tmpFJLojj/lib/python3.14/site-packages/hatchling/build.py", line 83, in
build_editable
return os.path.basename(next(builder.build(directory=wheel_directory, versions=['editable'])))
~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/ayush.goyal/.cache/uv/builds-v0/.tmpFJLojj/lib/python3.14/site-packages/hatchling/builders/plugin/interface.py",
line 147, in build
build_hook.initialize(version, build_data)
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
File "/Users/ayush.goyal/.cache/uv/builds-v0/.tmpFJLojj/lib/python3.14/site-packages/hatch_jupyter_builder/plugin.py", line 94,
in initialize
raise e
File "/Users/ayush.goyal/.cache/uv/builds-v0/.tmpFJLojj/lib/python3.14/site-packages/hatch_jupyter_builder/plugin.py", line 89,
in initialize
build_func(self.target_name, version, **build_kwargs)
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/ayush.goyal/.cache/uv/builds-v0/.tmpFJLojj/lib/python3.14/site-packages/hatch_jupyter_builder/utils.py", line 117,
in npm_builder
run([*npm_cmd, "run", build_cmd], cwd=str(abs_path))
~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/ayush.goyal/.cache/uv/builds-v0/.tmpFJLojj/lib/python3.14/site-packages/hatch_jupyter_builder/utils.py", line 231,
in run
return subprocess.check_call(cmd, **kwargs)
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/usr/local/Cellar/python@3.14/3.14.0/Frameworks/Python.framework/Versions/3.14/lib/python3.14/subprocess.py", line 419,
in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/Users/ayush.goyal/.cache/uv/builds-v0/.tmpFJLojj/bin/jlpm', 'run', 'install:extension']'
returned non-zero exit status 1.
hint: This usually indicates a problem with the package or the build environment.`
I was able to build optuna using make
command
but when i am running make jupyterlab-extension
command . I am getting above error.
Is there any particular requirement or version used for particularly jupyterlab extension.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am trying to build a jupyterlab-extension in my system. I have followed developers guild. Particularly the steps mentioned under Jupyter Lab Extension
However, I am getting below error everytime
× Failed to buildjupyterlab-optuna @ file:///Users/ayush.goyal/Desktop/releases/AIPlatform-3.11/optuna-dashboard/jupyterlab├─▶ The build backend returned an error ╰─▶ Call tohatchling.build.build_editable` failed (exit status: 1)I was able to build optuna using
makecommand
but when i am running
make jupyterlab-extensioncommand . I am getting above error.
Is there any particular requirement or version used for particularly jupyterlab extension.
Beta Was this translation helpful? Give feedback.
All reactions