Change8
Error2 reports

Fix PackageNotFoundError

in Poetry

Solution

The "PackageNotFoundError" in Poetry often arises when a dependency or transitive dependency is missing from the configured sources, or when a specific version is unavailable in the specified source. To resolve this, ensure that all required repositories are correctly configured in your `pyproject.toml` file, especially if using extra-groups or alternative sources, and that the package versions you're requesting exist in those sources; you might need to explicitly define the source for the problematic dependency. Try running `poetry update` or `poetry lock` afterwards to verify.

Timeline

First reported:Apr 1, 2025
Last reported:Jun 23, 2025

Need More Help?

View the full changelog and migration guides for Poetry

View Poetry Changelog