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

RPM /usr/bin/az relies on PATH for python3 #12468

Closed
mryan1539 opened this issue Mar 5, 2020 · 1 comment
Closed

RPM /usr/bin/az relies on PATH for python3 #12468

mryan1539 opened this issue Mar 5, 2020 · 1 comment
Assignees
Milestone

Comments

@mryan1539
Copy link
Contributor

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

The /usr/bin/az shell script wrapper in the RPM doesn't use a full path to the OS python. This means, if the user has another python in their PATH, the az command may fail. In particular, I've noticed this against an alternate build of python3 that doesn't have CFFI, where az acr login -n REGNAME fails with a traceback.

I note that python commands that come with CentOS/RHEL encode it as an absolute path (e.g., /usr/bin/yum).

This is known to occur in 2.0.80, 2.1.0 and dev. I've submitted a PR with a potential fix: #12467

@yungezz
Copy link
Member

yungezz commented Mar 6, 2020

hi @fengzhou-msft could you pls help to look at the issue? Thanks.

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

No branches or pull requests

3 participants