Im following the doco on building the sample apod jupyterlab extension.
Ive following the directions exactly.
But when I get to the command
pip install -ve .
I get the following errors.
Running command Preparing editable metadata (pyproject.toml)
Traceback (most recent call last):
File “/home/900/rhc900/miniconda3/envs/jupyterlab-ext/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py”, line 195, in prepare_metadata_for_build_editable
hook = backend.prepare_metadata_for_build_editable
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module ‘hatchling.build’ has no attribute ‘prepare_metadata_for_build_editable’
Which triggers a second error.
Traceback (most recent call last):
File “/home/900/rhc900/miniconda3/envs/jupyterlab-ext/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py”, line 389, in
main()
~~~~^^
File “/tmp/pip-build-env-2gzndjz9/overlay/lib/python3.13/site-packages/hatchling/metadata/core.py”, line 420, in raw_name
raise ValueError(message)
ValueError: Required field project.name
must only contain ASCII letters/digits, underscores, hyphens, and periods, and must begin and end with ASCII letters/digits.
error: subprocess-exited-with-error
× Preparing editable metadata (pyproject.toml) did not run successfully.