Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Python] encounter failure when "npm install @azure-tools/typespec-python" in a non-python environment #5112

Open
3 tasks done
josefree opened this issue Nov 14, 2024 · 0 comments
Assignees
Labels
emitter:client:python Issue for the Python client emitter: @typespec/http-client-python

Comments

@josefree
Copy link
Member

Clear and concise description of the problem

The "npm install @azure-tools/typespec-python" command failed in a non-Python environment, requiring Python installation and a restart to succeed.

I understand that generating Python client code needs a Python environment, but it's frustrating to get a long error trace before starting the code generation.

Remove the dependency check when installing the tool lib. Also, "npm install @azure-tools/typespec-java" works in non-Java environments, Cross language consistency is expected.

Checklist

  • Follow our Code of Conduct
  • Read the docs.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
@msyyc msyyc added the emitter:client:python Issue for the Python client emitter: @typespec/http-client-python label Nov 14, 2024
@msyyc msyyc self-assigned this Nov 14, 2024
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

No branches or pull requests

2 participants