label-studio-ml-backend
label-studio-ml-backend copied to clipboard
project must contain ['name'] properties
It seems like the direct way of install pip install git+https://github.com/HumanSignal/label-studio-ml-backend.git is failing due to a missing Poetry config in one of its dependencies --> https://github.com/HumanSignal/label-studio-sdk.
Full Error messages below:
$ pip install git+https://github.com/HumanSignal/label-studio-ml-backend.git
Collecting git+https://github.com/HumanSignal/label-studio-ml-backend.git
Cloning https://github.com/HumanSignal/label-studio-ml-backend.git to /tmp/pip-req-build-pmvpbcct
Running command git clone --filter=blob:none --quiet https://github.com/HumanSignal/label-studio-ml-backend.git /tmp/pip-req-build-pmvpbcct
Resolved https://github.com/HumanSignal/label-studio-ml-backend.git to commit 1a37d2f2bdf31c8de13b91eb916f16053cbc7afe
Preparing metadata (setup.py) ... done
Collecting label-studio-sdk@ git+https://github.com/HumanSignal/label-studio-sdk.git (from label-studio-ml==2.0.1.dev0)
Cloning https://github.com/HumanSignal/label-studio-sdk.git to /tmp/pip-install-eslb55e1/label-studio-sdk_46d31309c10248b8ae1c370da17aa010
Running command git clone --filter=blob:none --quiet https://github.com/HumanSignal/label-studio-sdk.git /tmp/pip-install-eslb55e1/label-studio-sdk_46d31309c10248b8ae1c370da17aa010
Resolved https://github.com/HumanSignal/label-studio-sdk.git to commit 3ea3e9b7582d483419007e608b79662c1ef9b948
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [17 lines of output]
Traceback (most recent call last):
File "/opt/conda/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
File "/opt/conda/lib/python3.11/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/conda/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 149, in prepare_metadata_for_build_wheel
return hook(metadata_directory, config_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-w7za6m9t/overlay/lib/python3.11/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 "/tmp/pip-build-env-w7za6m9t/overlay/lib/python3.11/site-packages/poetry/core/factory.py", line 58, 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.