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

Pip install failed to install/update network module due to Windows long paths #2541

Closed
Teodelas opened this issue Mar 17, 2017 · 7 comments
Closed

Comments

@Teodelas
Copy link

With a fresh install of Python and AZ CLI 2.0, az network commands fail. I get a message to run az component update --add network but that fails as well. When I add the debug switch I get:

Exception:
Traceback (most recent call last):
File "C:\Users\teodelas\AppData\Local\Programs\Python\Python35\lib\shutil.py", line 538, in move
os.rename(src, real_dst)
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'c:\users\teodelas\appdata\local\programs\python\python35\lib\site-packages\azure\cli\command_modules\network\mgmt_express_route_circuit\lib\pycache\express_route_circuit_creation_client.cpython-35.pyc' -> 'C:\Users\teodelas\AppData\Local\Temp\pip-mu850_b7-uninstall\users\teodelas\appdata\local\programs\python\python35\lib\site-packages\azure\cli\command_modules\network\mgmt_express_route_circuit\lib\pycache\express_route_circuit_creation_client.cpython-35.pyc'

@tjprescott
Copy link
Member

tjprescott commented Mar 17, 2017

Can you show the output of az --version? Additionally, how did you install the CLI?

@Teodelas
Copy link
Author

Teodelas commented Mar 17, 2017 via email

@tjprescott
Copy link
Member

The version of the network package you have is incorrect. The latest version is 2.0.1--yours shows 0.1.1b2.
How did you install the CLI? Please try running pip install azure-cli-network --upgrade to see if it updates to the latest version.

@derekbekoe
Copy link
Member

The failure of az component update was due to this issue on Windows with long file paths #1221.

@tjprescott
Copy link
Member

@derekbekoe is there any reason why pip would install anything but the latest?

@Teodelas
Copy link
Author

Teodelas commented Mar 17, 2017 via email

@tjprescott
Copy link
Member

Our install troubleshooting links to our list of common issues. This one is in there #1221.

@tjprescott tjprescott changed the title az network commands fail Pip install failed to install/update network module due to Windows long paths Mar 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants