Skip to content

[python] update python emitter install with helpful 401 error output#10720

Open
JennyPng wants to merge 2 commits into
microsoft:mainfrom
JennyPng:cfs-error-message
Open

[python] update python emitter install with helpful 401 error output#10720
JennyPng wants to merge 2 commits into
microsoft:mainfrom
JennyPng:cfs-error-message

Conversation

@JennyPng
Copy link
Copy Markdown
Member

@JennyPng JennyPng commented May 18, 2026

closes Azure/azure-sdk-for-python#46964

Because the python emitter's install.ts may use uv pip to 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

@microsoft-github-policy-service microsoft-github-policy-service Bot added the emitter:client:python Issue for the Python client emitter: @typespec/http-client-python label May 18, 2026
@JennyPng JennyPng marked this pull request as ready for review May 18, 2026 22:02
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 18, 2026

Open in StackBlitz

npm i https://pkg.pr.new/@typespec/http-client-python@10720

commit: 62fb7bb

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 18, 2026

All changed packages have been documented.

  • @typespec/http-client-python
Show changes

@typespec/http-client-python - internal ✏️

When python emitter install fails due to 401 error, output informative instructions linking to resolution steps in the Python SDK's repo docs.

@azure-sdk-automation
Copy link
Copy Markdown

azure-sdk-automation Bot commented May 18, 2026

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

emitter:client:python Issue for the Python client emitter: @typespec/http-client-python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve troubleshooting when updating the python emitter version in emitter-package.json

2 participants