diff --git a/changelog.d/1634.feature.md b/changelog.d/1634.feature.md new file mode 100644 index 000000000..bba0a9c99 --- /dev/null +++ b/changelog.d/1634.feature.md @@ -0,0 +1 @@ +add more specific directions in the logs towards a resolution if you have a space in the PIX_HOME path diff --git a/src/pipx/paths.py b/src/pipx/paths.py index 0b676b641..666791b40 100644 --- a/src/pipx/paths.py +++ b/src/pipx/paths.py @@ -154,6 +154,18 @@ def log_warnings(self): subsequent_indent=" " * 4, ) ) + logger.warning( + pipx_wrap( + (f"{hazard} To see your PIPX_HOME dir: pipx environment --value PIPX_HOME"), + subsequent_indent=" " * 4, + ) + ) + logger.warning( + pipx_wrap( + (f"{hazard} Most likely fix on macOS: mv ~/Library/Application\\ Support/pipx ~/.local/"), + subsequent_indent=" " * 4, + ) + ) fallback_home_exists = self._fallback_home is not None and self._fallback_home.exists() specific_home_exists = self.home != self._fallback_home