Skip to content

DLL load failed while importing win32file: The specified module could not be found. #17986

@SenseiJoe

Description

@SenseiJoe

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

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

Metadata

Metadata

Assignees

Labels

CoreCLI core infrastructure

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions