Error4 reports
Fix ShellNotSupportedError
in Poetry
✅ Solution
The "ShellNotSupportedError" in Poetry often arises when Poetry can't find a shell activator script compatible with the shell you're currently using within the virtual environment. Ensure that Poetry supports your shell (e.g., bash, zsh, PowerShell) and that the virtual environment was created with the correct shell initialized or explicitly activated. Try creating a new environment `poetry env use python` then activate the environment using `poetry shell` or `poetry env activate`.
Related Issues
Real GitHub issues where developers encountered this error:
test_no_additional_output_in_verbose_mode fails on LinuxMay 19, 2025
Confusing error message when `poetry env activate` called before project's virtualenv is createdMay 3, 2025
poetry env activate in powershell core returns "Discovered shell doesn't have an activator in virtual environment"Mar 5, 2025
"Poetry env activate" doesn't get recognized in fish and bash shell unless command "poetry env use <python version> is run before.Jan 21, 2025
Timeline
First reported:Jan 21, 2025
Last reported:May 19, 2025