Closed darkvertex closed 1 year ago
hi @darkvertex,
That's an interesting use case. I am able to reproduce this, but only if poetry is not actually installed in the environment.
From playing around with this a bit it appears that when running pipx run poetry run poe
if poetry is not actually installed by any means other than the temporary venv used by pipx run
, then it is not on the path, and there's nothing set on the environment (by either pipx or poetry) to make the venv containing poetry discoverable.
In this situation I don't know what poe could do better to discover the location of the poetry that is calling it (short of replicating the logic from pipx to speculatively search for a temporary venv for poetry — though I dunno about that).
I'm open to suggestions if you find something I've missed, but I think installing poetry via pipx install
or the poetry install script is probably the best solution. Is there some reason you wouldn't want to do that?
Closing this as won't fix (unless further evidence points to a reasonable fix).
I think there's a little bug in how the poetry executable is detected or something.
My pyproject.toml has this block:
If I run
pipx run poetry shell
then runpoe run server
, it works.If I try to run
pipx run poetry run poe run server
then it fails: