Skip to content

project must contain ['name'] properties #690

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

Open
jiaxili-aims opened this issue Jan 6, 2025 · 2 comments
Open

project must contain ['name'] properties #690

jiaxili-aims opened this issue Jan 6, 2025 · 2 comments

Comments

@jiaxili-aims
Copy link

jiaxili-aims commented Jan 6, 2025

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.
@ahmadabd
Copy link

ahmadabd commented Jan 6, 2025

I have this problem too, i changed this file:
vim label_studio_ml/examples/llm_interactve/requirements.txt
pytesseract==0.3.10
openai==1.13.3
tenacity==8.2.2

now run: pip install -e .

@AnggaDS01
Copy link

Hi @jiaxili-aims,

I noticed you’re experiencing a similar issue with the installation process. This problem was recently discussed in the label-studio repository. Here's the response from the team:

Hi @AnggaDS01 - thanks for raising! This issue seems to be caused by a breaking change in the latest version of poetry-core and we are working on a fix.
(Source: [Developer's Response on Label Studio Repository](HumanSignal/label-studio#6851 (comment)))

The issue has already been fixed. To resolve this:

  1. Pull the latest changes from the repository.
  2. Ensure your dependencies are up to date.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants