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

Azure CLI 2.17.0_1 fails to launch on M1 Mac #16417

Closed
maxburke opened this issue Jan 2, 2021 · 8 comments
Closed

Azure CLI 2.17.0_1 fails to launch on M1 Mac #16417

maxburke opened this issue Jan 2, 2021 · 8 comments
Assignees
Labels
Packaging question The issue doesn't require a change to the product in order to be resolved. Most issues start as that

Comments

@maxburke
Copy link

maxburke commented Jan 2, 2021

Describe the bug

Running az generates this error message:

$ az
/opt/homebrew/Cellar/azure-cli/2.17.0_1/libexec/bin/python: No module named azure.cli.__main__; 'azure.cli' is a package and cannot be directly executed

To Reproduce
After upgrading to 2.17.0_1, type az, with or without additional options.

Expected behavior
I expected it to give me the help screen, or run the commands I specified.

Environment summary
Mac OS Big Sur (11.1), Apple M1 MacBook Pro, installed via HomeBrew.

@ghost ghost added needs-triage This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Jan 2, 2021
@ghost ghost removed the needs-triage This is a new issue that needs to be triaged to the appropriate team. label Jan 3, 2021
@yungezz
Copy link
Member

yungezz commented Jan 3, 2021

hi @fengzhou-msft could you pls help to look at this issue? thanks

@maxburke
Copy link
Author

maxburke commented Jan 4, 2021

I just upgraded to 2.17.1 via homebrew and this still happens.

@fengzhou-msft
Copy link
Member

Not sure if it's caused by the arm bottle package. I tested on my Intel chip Mac and it works fines. If anyone else meets the same issue on Apple M1 MacBook Pro, please comment.

@maxburke
Copy link
Author

maxburke commented Jan 9, 2021

Ahh, yeah, I think I see the issue. It seems to be an interaction with a virtualenv I've got setup which re-sets the python path. Closing.

@maxburke maxburke closed this as completed Jan 9, 2021
@joaocc
Copy link

joaocc commented Apr 6, 2021

Pls find log of 2.20 failing on M1
#16697 (comment)
Can reproduce easily.

@pritom007
Copy link

Not sure if it's caused by the arm bottle package. I tested on my Intel chip Mac and it works fines. If anyone else meets the same issue on Apple M1 MacBook Pro, please comment.

Have been facing the issue for quite a long. Mine is also mac m1. And I tried python 3.8 and 3.9 both failed.

@pritom007
Copy link

Ahh, yeah, I think I see the issue. It seems to be an interaction with a virtualenv I've got setup which re-sets the python path. Closing.

can you please share the setup?

@JKLumirithmic
Copy link

Found this while installing something else - azure-cli 2.42.0 requires antlr4-python3-runtime~=4.9.3

tried this, and everything works after that
pip install antlr4-python3-runtime==4.9.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Packaging question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Projects
None yet
Development

No branches or pull requests

6 participants