antongromov@MacBook-Air etl % poetry shell 'name'...
Tạo vào: 14 tháng 7, 2025
Tạo vào: 14 tháng 7, 2025
antongromov@MacBook-Air etl % poetry shell
'name'
It looks like you're running the poetry shell
command in a terminal and then encountering a line that says:
'name'
This is unusual. Here's a breakdown of what might be happening and how to troubleshoot:
Sometimes after poetry shell
, the terminal prompt changes and may display something unexpected like 'name'
if your shell configuration (like .bashrc
, .zshrc
, or PowerShell profile) echoes a variable.
echo 'name'
or similar lines.orbashbash --norc
bashzsh -f
pyproject.toml
is InvalidPoetry might try to read metadata like [tool.poetry.name]
from pyproject.toml
. If that is malformed or missing, poetry shell
might behave unexpectedly.
pyproject.toml
has a valid [tool.poetry]
section, including the name
field:
toml[tool.poetry] name = "your-project-name"
If you’re aliasing or running a wrapper script that includes something like:
pythonprint('name')
It might accidentally be triggered post-shell activation.
If you're using zsh or a custom shell prompt tool like starship
, a misconfigured theme might lead to unusual output.
Try running poetry debug info
to see if everything is properly set up.
Run poetry from a fresh terminal:
bashpoetry shell
Inspect pyproject.toml
:
Ensure it includes:
toml[tool.poetry] name = "your-project-name"
Run poetry check
to validate your project:
bashpoetry check
If the issue persists, share the full terminal output including what happens before and after you run poetry shell
.
Let me know what terminal and shell you're using (e.g., zsh on macOS, bash, PowerShell, etc.), and I can tailor the guidance further.