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

Error when installing latest version with Poetry #9

Closed
andresionek91 opened this issue Jul 6, 2023 · 4 comments
Closed

Error when installing latest version with Poetry #9

andresionek91 opened this issue Jul 6, 2023 · 4 comments

Comments

@andresionek91
Copy link

This error doesn't happen on version 0.7.1

Package operations: 1 install, 9 updates, 0 removals

  • Updating rpds-py (0.7.1 -> 0.8.7): Failed

  ChefBuildError

  Backend subprocess exited when trying to invoke build_wheel
  
  Running `maturin pep517 build-wheel -i /var/folders/p2/pwvr5hs54yx3drlwc9d4w3xh0000gn/T/tmpzac82swx/.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', '/var/folders/p2/pwvr5hs54yx3drlwc9d4w3xh0000gn/T/tmpzac82swx/.venv/bin/python', '--compatibility', 'off'] returned non-zero exit status 1
  

  at ~/Library/Application Support/pypoetry/venv/lib/python3.9/site-packages/poetry/installation/chef.py:147 in _prepare
      143│ 
      144│                 error = ChefBuildError("\n\n".join(message_parts))
      145│ 
      146│             if error is not None:
    → 147│                 raise error from None
      148│ 
      149│             return path
      150│ 
      151│     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.8.7) not supporting PEP 517 builds. You can verify this by running 'pip wheel --use-pep517 "rpds-py (==0.8.7)"'.
@Julian
Copy link
Member

Julian commented Jul 6, 2023

That looks like it's saying you're missing a Rust toolchain:

Caused by: Cargo metadata failed. Do you have cargo in your PATH?
Caused by: No such file or directory (os error 2)

You'd either need to install one, or if you're not on a platform which rpds is publishing wheels for, please share pip debug --verbose and some info on what platform you're on, if it's something that can be built in GitHub actions I'm happy to add it.

@Julian
Copy link
Member

Julian commented Jul 6, 2023

I'm going to guess from your paths that you're on macOS -- in which case #10 (and version 0.8.8) probably fixed this, there were some missing macOS wheels.

If not, please follow up with the above.

@Julian Julian closed this as completed Jul 6, 2023
@andresionek91
Copy link
Author

Yes, problem solved in the latest version. Thanks for looking into it.

@Julian
Copy link
Member

Julian commented Jul 6, 2023

Nice, glad to hear it, my pleasure.

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

2 participants