-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
DLL load failed while importing win32file: The specified module could not be found. #17986
Comments
Getting the same. Upgraded using chocolately from 2.20.0. 2.23.0 was released today... Installed 2.22.1 and it works as expected:
|
@jiasli for awareness |
Re-installed 2.22.1 and things all work better |
Why is this closed? |
I assumed that you issue was resolved by yourself? If not, I will reopen it. Sorry for the misunderstanding. |
Same issue here. It is not just It seems there is something wrong with the build process and the way the packages are either referenced (paths with both types of slashes) or made available in the build agent:
|
Same issue here :( |
+1 |
I am able to repo on my local machine. It seems to be related to #17816, triggering mhammond/pywin32#1431. Investigating... 👨💻 |
Not a problem, Thank you :) I will subscribe to that thread and follow it there. |
I downgraded to solve the problem, it wasn't actually fixed. |
Same issue, not just a problem with az version. Uninstalling 2.23.0, installed 2.22.1 and working OK now. |
I was able to solve it by reinstalling
Though the root cause remains unknown... |
This fix worked for me. Thank you @jiasli! |
As a fresh installation works fine, it's very likely some remnants of the old installation are interfering with the latest version. Another solution worth trying is to
Please kindly let us know if it solves the issue. |
@jiasli This worked for me. Deleted |
Deleted C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2 All seems to be fine. |
Why is this closed? the issue still exists, I assume customer find a workaround does not mean the issue is fixed. |
I am not able to precisely identify the root cause. Hopefully #18012 can fix it. Reinstalling is the official fix instead of a workaround. Thanks for understanding. |
When installing the CLI via python, uninstalling and reinstalling does not resolve this issue. |
Describe the bug
DLL load failed while importing win32file: The specified module could not be found.
To Reproduce
Any az command,
az --version, give no version or regular feedback. I get...
DLL load failed while importing win32file: The specified module could not be found.
The command failed with an unexpected error. Here is the traceback:
DLL load failed while importing win32file: The specified module could not be found.
Traceback (most recent call last):
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 223, in invoke
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/init.py", line 125, in show_version
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/util.py", line 345, in get_az_version_string
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/util.py", line 332, in _get_local_versions
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/util.py", line 256, in get_installed_cli_distributions
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/telemetry/init.py", line 9, in
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\portalocker/init.py", line 4, in
File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\portalocker/portalocker.py", line 9, in
ImportError: DLL load failed while importing win32file: The specified module could not be found
Expected behavior
version information displayed
Environment summary
auto updated using windows MSI
Additional context
The text was updated successfully, but these errors were encountered: