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

poetry install fails #397

Open
cthoyt opened this issue Nov 3, 2024 · 1 comment · May be fixed by #398
Open

poetry install fails #397

cthoyt opened this issue Nov 3, 2024 · 1 comment · May be fixed by #398

Comments

@cthoyt
Copy link
Member

cthoyt commented Nov 3, 2024

I'm on an m3 mac running mac os 14. I installed poetry with uv tool install poetry.

$ poetry --version
Poetry (version 1.8.4)

I got the following error while trying to install. This seems like an old version of pydantic-core

$ poetry install
Installing dependencies from lock file

Package operations: 75 installs, 0 updates, 0 removals

  - Installing pydantic-core (2.16.3): Failed

  ChefBuildError

  Backend subprocess exited when trying to invoke build_wheel
  
  Running `maturin pep517 build-wheel -i /private/var/folders/6k/r2gmmc213vl6h7bv20x624xw0000gn/T/tmp2_z1mb_t/.venv/bin/python --compatibility off`
  💥 maturin failed
    Caused by: Cargo metadata failed. Do you have cargo in your PATH?
    Caused by: No such file or directory (os error 2)
  Error: command ['maturin', 'pep517', 'build-wheel', '-i', '/private/var/folders/6k/r2gmmc213vl6h7bv20x624xw0000gn/T/tmp2_z1mb_t/.venv/bin/python', '--compatibility', 'off'] returned non-zero exit status 1
  

  at ~/Library/Application Support/uv/tools/poetry/lib/python3.13/site-packages/poetry/installation/chef.py:164 in _prepare
      160│ 
      161│                 error = ChefBuildError("\n\n".join(message_parts))
      162│ 
      163│             if error is not None:
    → 164│                 raise error from None
      165│ 
      166│             return path
      167│ 
      168│     def _prepare_sdist(self, archive: Path, destination: Path | None = None) -> Path:

Note: This error originates from the build backend, and is likely not a problem with poetry but with pydantic-core (2.16.3) not supporting PEP 517 builds. You can verify this by running 'pip wheel --no-cache-dir --use-pep517 "pydantic-core (==2.16.3)"'.

  - Installing rpds-py (0.18.0): Failed

  ChefBuildError

  Backend subprocess exited when trying to invoke build_wheel
  
  Running `maturin pep517 build-wheel -i /private/var/folders/6k/r2gmmc213vl6h7bv20x624xw0000gn/T/tmpz1opyj4b/.venv/bin/python --compatibility off`
  💥 maturin failed
    Caused by: Cargo metadata failed. Do you have cargo in your PATH?
    Caused by: No such file or directory (os error 2)
  Error: command ['maturin', 'pep517', 'build-wheel', '-i', '/private/var/folders/6k/r2gmmc213vl6h7bv20x624xw0000gn/T/tmpz1opyj4b/.venv/bin/python', '--compatibility', 'off'] returned non-zero exit status 1
  

  at ~/Library/Application Support/uv/tools/poetry/lib/python3.13/site-packages/poetry/installation/chef.py:164 in _prepare
      160│ 
      161│                 error = ChefBuildError("\n\n".join(message_parts))
      162│ 
      163│             if error is not None:
    → 164│                 raise error from None
      165│ 
      166│             return path
      167│ 
      168│     def _prepare_sdist(self, archive: Path, destination: Path | None = None) -> Path:

Note: This error originates from the build backend, and is likely not a problem with poetry but with rpds-py (0.18.0) not supporting PEP 517 builds. You can verify this by running 'pip wheel --no-cache-dir --use-pep517 "rpds-py (==0.18.0)"'.
@matentzn
Copy link
Collaborator

matentzn commented Nov 3, 2024

When I have this it's a problem with Python version. Try using Python 11 as a base version and see if it works, this does not close the issue, just helps moving your exploration forward

cthoyt added a commit that referenced this issue Nov 3, 2024
@cthoyt cthoyt linked a pull request Nov 3, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants