-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: "The Poetry configuration is invalid: project must contain ['name'] properties" when installing label-studio-ml-backend #6851
Comments
Hi @AnggaDS01 - thanks for raising! This issue seems to be caused by a breaking change in the latest version of |
This should be fixed now (in HumanSignal/label-studio-sdk#382) |
# Remove the platform parameter from Dockerfile We should remove the fixed `--platform=linux/amd64` from Dockefile to allow docker to choose right architecture when pulling the image. If this change affects the github action, we should specify the platform parameter on github action task # Fix poetry version issue When I try to build the image using `docker compose build` today, it failed due to a breaking change of poetry 2.0.0. We need to put a constrain of 'poetry<2.0.0' for now. ``` docker compose build > [django-socio-grpc server 1/1] RUN poetry install: 0.493 0.502 The Poetry configuration is invalid: 0.502 - project must contain ['name'] properties ``` Others are experiencing [the same issue](HumanSignal/label-studio#6851) Co-authored-by: Randall Wang <randall@talpa-solutions.com>
Was this regarded as fixed on 2.0.1, or do I need to wait for a further release? The really weird thing for me is that the project builds fine until I add
to my |
Describe the bug
I encountered an error while trying to install
label-studio-ml-backend
usingpip install -e .
. The installation fails due to a dependency issue withlabel-studio-sdk
, where the Poetry configuration inpyproject.toml
seems to be invalid. This error prevents me from proceeding with creating a custom ML backend using thelabel-studio-ml create my_ml_backend
command.To Reproduce
Steps to reproduce the behavior:
label-studio-ml-backend
repository:Expected behavior
The installation should succeed, allowing me to proceed with creating a custom ML backend using:
Screenshots
![image](https://private-user-images.githubusercontent.com/113017083/400283178-f4d8e920-fc21-4060-81c9-3595e6827047.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg4NjA3NjEsIm5iZiI6MTczODg2MDQ2MSwicGF0aCI6Ii8xMTMwMTcwODMvNDAwMjgzMTc4LWY0ZDhlOTIwLWZjMjEtNDA2MC04MWM5LTM1OTVlNjgyNzA0Ny5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwNlQxNjQ3NDFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT03MGY0ZDk2NzMxN2RiYjIzNWIyYmUxNTlhNjJiNzRmZDhhOTc1YTU4ZjMwZGYzNTk4Y2E1NTIyYzA4NzM1OTY3JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.yAK7kd9ZD7nRSd98Ezo_iWLOswZ5LtsoI7dF1o4pkFw)
Environment:
Additional context
This issue is likely caused by the pyproject.toml file in the label-studio-sdk repository missing the required name property under [tool.poetry]. Without this property, Poetry cannot generate metadata, leading to the error.
The text was updated successfully, but these errors were encountered: