-
First Check
Commit to Help
Example Codevirtualenv .venv
source .venv/bin/activate
pip install typer
pip install typer-slim
python -c "import typer" # OK
pip uninstall typer # We got typer-slim, no need to have typer too
python -c "import typer" # ERROR
# MRE for uv: https://github.com/pimlock/uv-bug-reproDescriptionThis is the upstream version of astral-sh/uv#17645. When a user has both typer and typer-slim in their dependency tree, one will overwrite the other, with the consequence that uninstalling one will partially uninstall the other. This is a problem with both pip and uv. Python package management doesn't support packages overlapping, depending on the installer it may even lead to corrupted files (parallel writing to the same files). Since a dependency tree may include both typer and typer-slim, those conflicts can happen silently, leading to hard-to-debug package management errors that only show up as runtime crashes. I read #786 but unfortunately I don't follow why both packages include the same files, instead of only one package. More of a meta comment, but I was surprised there is no dedicated bug reporting option, but only the funnel into the question flow. Operating SystemLinux Operating System DetailsUbuntu 22.04 Typer Version0.21.1 Python Version3.14.0 Additional ContextNo response |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
|
Thanks for the report @konstin, we'll look into this 🙏 |
Beta Was this translation helpful? Give feedback.
-
|
Issue to track this is here: #1503 (yes the process is a bit convoluted, but we otherwise get too many "bug reports" that really aren't bugs, so this way we try to manage the issue tracker a bit) |
Beta Was this translation helpful? Give feedback.
This was solved in #1522, now
typer-slimdoesn't provide any code, and only depends ontyper. 🚀