Skip to content

fix: make pip import optional for uv-managed environments#467

Merged
gibiw merged 2 commits intomainfrom
fix/optional-pip-import
Mar 13, 2026
Merged

fix: make pip import optional for uv-managed environments#467
gibiw merged 2 commits intomainfrom
fix/optional-pip-import

Conversation

@gibiw
Copy link
Copy Markdown
Contributor

@gibiw gibiw commented Mar 13, 2026

Summary

  • pip is imported unconditionally at module level in utils.py but only used for telemetry (pip.__version__)
  • In uv-managed environments, pip is not installed by default, causing ModuleNotFoundError at import time
  • Wrapped the import in try/except with a fallback to "unknown"

Closes #466

gibiw added 2 commits March 13, 2026 16:54
pip is only used to report its version in telemetry data. In environments
managed by uv, pip is not installed by default, causing a ModuleNotFoundError
at import time. The import is now wrapped in a try/except with a fallback
to "unknown".

Closes #466
@gibiw gibiw merged commit 7c929c5 into main Mar 13, 2026
36 checks passed
@gibiw gibiw deleted the fix/optional-pip-import branch March 13, 2026 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

qase-python-commons fails with ModuleNotFoundError: No module named 'pip' in uv-managed environments

1 participant