runner-images icon indicating copy to clipboard operation
runner-images copied to clipboard

[error]Unable to locate executable file

Open bhosalemahesh899 opened this issue 2 years ago • 1 comments

Description

I am using ubuntu-latest agent to run pipeline on azure DevOps. Getting following error for Python Script task.

##[error]Unable to locate executable file: '...' Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable. image image

Platforms affected

  • [X] Azure DevOps
  • [ ] GitHub Actions - Standard Runners
  • [ ] GitHub Actions - Larger Runners

Runner images affected

  • [ ] Ubuntu 18.04
  • [ ] Ubuntu 20.04
  • [ ] Ubuntu 22.04
  • [ ] macOS 10.15
  • [ ] macOS 11
  • [ ] macOS 12
  • [ ] Windows Server 2019
  • [ ] Windows Server 2022

Image version and build link

Not able to find "Initialize job" -> "Runner Image" -> "Version".

Is it regression?

no

Expected behavior

Python script should run successfully

Actual behavior

Getting an error ##[error]Unable to locate executable file: '...' Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.

Repro steps

  1. Add task python script. agent is ubuntu latest
  2. Add inline script
  3. Run pipeline

bhosalemahesh899 avatar Oct 12 '22 08:10 bhosalemahesh899

Hey @bhosalemahesh899. I can't reproduce the issue.

pipeline: image

output: image

al-cheb avatar Oct 12 '22 08:10 al-cheb

Feel free to open the thread if you have any concerns.

al-cheb avatar Oct 17 '22 06:10 al-cheb