Skip to content
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

pip install fails #453

Open
nitz-uglabs opened this issue Jan 5, 2025 · 1 comment
Open

pip install fails #453

nitz-uglabs opened this issue Jan 5, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@nitz-uglabs
Copy link

Description

docker run --rm -it python:3.12 bash
cd /tmp
git clone https://github.com/elevenlabs/elevenlabs-python
cd elevenlabs-python
pip install .

Expected:
Successful completion

Actual:

Processing /tmp/elevenlabs-python
  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 "/usr/local/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/usr/local/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/usr/local/lib/python3.12/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-0l54x1am/overlay/lib/python3.12/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-0l54x1am/overlay/lib/python3.12/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.

From a quick inspection it seems elevenlabs-python has a name section, so it might be a dependency.

Code example

No response

Additional context

No response

@nitz-uglabs nitz-uglabs added the bug Something isn't working label Jan 5, 2025
@nitz-uglabs
Copy link
Author

By binary-searching with removing parts of the pyproject.toml, this seems to be a workaround:

diff --git a/pyproject.toml b/pyproject.toml
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -28,9 +28,6 @@
     { include = "elevenlabs", from = "src"}
 ]
 
-[project.urls]
-Repository = 'https://github.com/elevenlabs/elevenlabs-python'
-
 [tool.poetry.dependencies]
 python = "^3.8"
 httpx = ">=0.21.2"

Might be a good workaround, not such a great permafix

nitz-uglabs added a commit to uglabs/elevenlabs-python that referenced this issue Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant