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
following which running pip install -e . returned the following error
Obtaining file:///Users/harsha/Documents/bbqs-model-zoo
Installing build dependencies ... done
Checking if build backend supports build_editable ... done
Getting requirements to build editable ... done
Preparing editable metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing editable metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [18 lines of output]
Traceback (most recent call last):
File "/opt/homebrew/Caskroom/miniconda/base/envs/bbqs/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
~~~~^^
File "/opt/homebrew/Caskroom/miniconda/base/envs/bbqs/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/Caskroom/miniconda/base/envs/bbqs/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 181, in prepare_metadata_for_build_editable
return hook(metadata_directory, config_settings)
File "/private/var/folders/72/p603zl956c383bp1s1v5r0zc0000gn/T/pip-build-env-d9qmkgee/overlay/lib/python3.13/site-packages/poetry/core/masonry/api.py", line 42, in prepare_metadata_for_build_wheel
poetry = Factory().create_poetry(Path().resolve(), with_groups=False)
File "/private/var/folders/72/p603zl956c383bp1s1v5r0zc0000gn/T/pip-build-env-d9qmkgee/overlay/lib/python3.13/site-packages/poetry_dynamic_versioning/patch.py", line 23, in alt_poetry_create
instance = original_poetry_create(cls, *args, **kwargs)
File "/private/var/folders/72/p603zl956c383bp1s1v5r0zc0000gn/T/pip-build-env-d9qmkgee/overlay/lib/python3.13/site-packages/poetry/core/factory.py", line 59, in create_poetry
raise RuntimeError("The Poetry configuration is invalid:\n" + message)
RuntimeError: The Poetry configuration is invalid:
- project must contain ['name'] properties
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
however, the story doesn't end there. clearly, hyphens are not allowed in package/module names in python, which was the source of another error. so, the correct way to describe the entry point is as follows
This was confirmed by nobrainer-zoo (my reference repo)..which uses nobrainerzoo as the name of the module instead of nobrainer-zoo. underscores are allowed..just not hyphens.
I added the following lines to the toml file to configure an entry point
following which running
pip install -e .
returned the following errorfound a similar error here HumanSignal/label-studio#6851
The text was updated successfully, but these errors were encountered: