[python] update python emitter install with helpful 401 error output#10720
Merged
Conversation
commit: |
Contributor
|
All changed packages have been documented.
Show changes
|
|
You can try these changes here
|
catalinaperalta
approved these changes
May 18, 2026
msyyc
approved these changes
May 25, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Improves the Python http-client emitter’s installation experience by surfacing more actionable diagnostics when package installation fails, particularly for authentication-related (401) failures against the Azure feed.
Changes:
- Switch
install_packagesto capture subprocess output and include it in raised errors. - Add special-case guidance (linking to Azure SDK for Python contributing/auth docs) when failure output indicates a 401/Unauthorized.
- Add a Chronus entry documenting the internal change.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| packages/http-client-python/eng/scripts/setup/package_manager.py | Capture pip/uv install output and enhance errors with 401-specific guidance. |
| .chronus/changes/cfs-error-message-2026-4-18-15-8-34.md | Add changelog entry describing the improved 401 failure messaging. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
closes Azure/azure-sdk-for-python#46964
Because the python emitter's
install.tsmay useuv pipto install packages, it can run into authentication errors if a package version isn't cached in our central feed service, which we now default to pulling from instead of PyPI (see Azure/azure-sdk-for-python#46281 )updates the error point to link to python repo's authentication docs