user3732793
user3732793

Reputation: 1979

Command not found when installing it with poetry

python is 3.12.3 on linux and in pyproject.toml

[tool.poetry.dependencies]
deptry = "^0.18.0"

and poetry reports

The following packages are already present in the pyproject.toml and will be skipped:

  - deptry

poetry install did run without any problems

but deptry is not found when called directly or by poetry

any hint why this could be ?

Upvotes: 1

Views: 39

Answers (2)

user3732793
user3732793

Reputation: 1979

Solution. to me with python versions from 3.12 is to remove deptry and only rely on poetry and tox for dependency walks

Upvotes: 1

Tehoor Marjan
Tehoor Marjan

Reputation: 23

This should be more a comment, but I can't because I don't have the required 50 rep. Feel free to delete this "answer" if it doesn't help.

Python 3.13 is relatively new (I think it updated last week on Manjaro stable), and I had to rebuild some poetry venv, because these use the system's python executable and some modules relied on the 3.12 version. I did it quickly, so I don't remember precisely the error I had, but for example I remember that it was the case for a project using poethepoet.

There could be a cleaner solution, like poetry update, but in my case, I went directly deleting the venv directory and poetry.lock and re-installing. I'd advise trying to update first, then a re-install with the same lock file, and if all fails, clean all and re-lock.

Upvotes: 1

Related Questions