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

Unable to install plugin #205

Closed
itssimon opened this issue Jan 8, 2025 · 2 comments
Closed

Unable to install plugin #205

itssimon opened this issue Jan 8, 2025 · 2 comments
Labels
question Further information is requested

Comments

@itssimon
Copy link

itssimon commented Jan 8, 2025

After adding the requires-plugin section to my pyproject.yaml, running poetry install fails. Without that section, everything installs fine.

[tool.poetry.requires-plugins]
poetry-dynamic-versioning = { version = ">=1.0.0,<2.0.0", extras = ["plugin"] }
❯ poetry install --with dev
Removing the project's plugin cache because it is outdated
Ensuring that the Poetry plugins required by the project are available...
The following Poetry plugins are required by the project but are not installed in Poetry's environment:
  - poetry-dynamic-versioning[plugin] (>=1.0.0,<2.0.0)
Installing Poetry plugins only for the current project...
Updating dependencies
Resolving dependencies... (7.8s)

Because poetry-project-instance depends on gpg (1.24.1) which doesn't match any versions, version solving failed.

This is on macOS / Apple Silicon (M1) if that makes any difference.

@mtkennerly
Copy link
Owner

mtkennerly commented Jan 8, 2025

Hi! This is probably an issue with Poetry's internal poetry.lock getting into a weird state after a Poetry/Python upgrade (see also python-poetry/poetry#9841 and #152).

On Mac, the file should be in ~/Library/Application Support/pypoetry. You can try deleting it outright, or you may be able to fix it with poetry self lock.

@mtkennerly mtkennerly added the question Further information is requested label Jan 10, 2025
@itssimon
Copy link
Author

For future reference: I had Poetry installed with homebrew and I couldn't find a way to fix this issue - there was no poetry.lock file in the expected location and poetry self lock didn't do anything. What helped was to uninstall Poetry with homebrew and then install it again using its own installer.

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

No branches or pull requests

2 participants