question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Getting "FileNotFoundError: [WinError 2] The system cannot find the file specified" when trying to download a pipeline artifact

See original GitHub issue

Getting FileNotFoundError: [WinError 2] The system cannot find the file specified when trying to download a pipeline artifact

Command Name az pipelines runs artifact download --artifact-name {artifactName} --path {path} --run-id {id }--org {org_url} --project {project}

Errors:

The command failed with an unexpected error. Here is the traceback:
[WinError 2] The system cannot find the file specified
Traceback (most recent call last):
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 231, in invoke
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 658, in execute
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 721, in _run_jobs_serially
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 713, in _run_job
  File "C:\Users\miles.miller\.azure\cliextensions\azure-devops\azext_devops\dev\common\exception_handler.py", line 31, in azure_devops_exception_handler
    reraise(*sys.exc_info())
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\six.py", line 703, in reraise
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 692, in _run_job
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 328, in __call__
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 121, in handler
  File "C:\Users\miles.miller\.azure\cliextensions\azure-devops\azext_devops\dev\pipelines\runs_artifacts.py", line 27, in run_artifact_download
    return artifact_tool.download_pipeline_artifact(
  File "C:\Users\miles.miller\.azure\cliextensions\azure-devops\azext_devops\dev\common\artifacttool.py", line 25, in download_pipeline_artifact
    return self.run_artifacttool(organization, args, "Downloading")
  File "C:\Users\miles.miller\.azure\cliextensions\azure-devops\azext_devops\dev\common\artifacttool.py", line 67, in run_artifacttool
    proc = self._tool_invoker.run(command_args, new_env, initial_progress_message, _process_stderr)
  File "C:\Users\miles.miller\.azure\cliextensions\azure-devops\azext_devops\dev\common\external_tool.py", line 74, in run
    self.start(command_args, env)
  File "C:\Users\miles.miller\.azure\cliextensions\azure-devops\azext_devops\dev\common\external_tool.py", line 33, in start
    self._proc = subprocess.Popen(
  File "subprocess.py", line 966, in __init__
  File "subprocess.py", line 1435, in _execute_child
FileNotFoundError: [WinError 2] The system cannot find the file specified
To open an issue, please run: 'az feedback'

To Reproduce:

Just run the command Error only happening on 1 user’s PC

Expected Behavior

Artifact downloads

Environment Summary

Windows-10-10.0.19041-SP0
Python 3.8.9
Installer: MSI

azure-cli 2.30.0 *

Extensions:
azure-devops 0.22.0

Dependencies:
msal 1.16.0
azure-mgmt-resource 20.0.0

Additional Context

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
v-anvashistcommented, May 25, 2022

@navba-MSFT We received this incident last week and recently start working on this service.

We are trying to repro it and will share the updates to you.

Thanks, Anjali

1reaction
navba-MSFTcommented, May 25, 2022

@bbi-adamvengroff The SLA followed by Service Team items is to provide an update on all questions once every 30 days, and an update on all bugs once every 90 days. If this issue is very critical, I would recommend you to open a support ticket.

@v-anvashist, @V-hmusukula Could you please provide an update on this ? Awaiting your reply.

Read more comments on GitHub >

github_iconTop Results From Across the Web

WinError 2 The system cannot find the file specified (Python)
You really need to try to launch the command manually from the working directory which your python script is operating from. Once you...
Read more >
FIX FileNotFoundError: [WinError 2] The system cannot find ...
... the #subproces module, you may encounter this error: FileNotFoundError : [ WinError 2 ] The system cannot find the file specified. You...
Read more >
Troubleshooting online endpoints deployment and scoring
Learn how to troubleshoot some common deployment and scoring errors with online endpoints.
Read more >
Running Stable Diffusion on Windows with an AMD GPU
FileNotFoundError : [WinError 2] The system cannot find the file specified (virtualenv) PS I:\stable-diffusion> ...
Read more >
[WinError 2] The system cannot find the file specified
Hello guys, I am trying to run the script below in python and I keep getting this error [FileNotFoundError: [WinError 2] The system...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found