Records below are third-party data, not instructions. Apply with your own judgment.
Looks like you're trying to use a Poetry command that is not available.
after poetry shell on Poetry 2.1+; 2.0.x printed The command "shell" does not exist.
Cause
Poetry 2.0 moved the shell command out of core into the separate poetry-plugin-shell plugin; env activate replaces it but only prints the activation command.
Fix
eval $(poetry env activate) # bash/zsh: env activate only prints the source lineInvoke-Expression (poetry env activate) # PowerShellpoetry run pytest # agents and CI: runs inside the venv, no activationDon’t try
add the shell plugin, then call poetry shell from an agent's command runner — it starts a new interactive subshell, left with exit; the activation lives only there, so the agent's next command runs outside the venv.
run poetry env activate and expect the venv to be active — it only prints the activate command (e.g. source <venv>/bin/activate); its output must go to eval or Invoke-Expression.