DIR Return Create A Forum - Home
---------------------------------------------------------
DevOPs
HTML https://devops.createaforum.com
---------------------------------------------------------
*****************************************************
DIR Return to: Jenkins
*****************************************************
#Post#: 2--------------------------------------------------
Jenkins not detecting python
DIR By: ur00361883
Date: November 24, 2017, 8:29 pm
---------------------------------------------------------
I have installed python plugin.
HTML https://wiki.jenkins.io/display/JENKINS/Python+Plugin
But when running a test job, I am getting below error as python
not found.
--- Code ---
Started by user uday kiran
[EnvInject] - Loading node environment variables.
Building on master in workspace C:\Program Files
(x86)\Jenkins\workspace\testpy
[testpy] $ python C:\Windows\TEMP\hudson2789497398258110842.py
The system cannot find the file specified
FATAL: command execution failed
java.io.IOException: CreateProcess error=2, The system cannot
find the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
Caused: java.io.IOException: Cannot run program "python" (in
directory "C:\Program Files (x86)\Jenkins\workspace\testpy"):
CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(Unknown Source)
enter image description here
--- End Code ---
Any suggestion? Even I tried keeping only the folder,instead of
path to exe, still same issue.
#Post#: 4--------------------------------------------------
Re: Jenkins not detecting python
DIR By: uday1kiran
Date: November 26, 2017, 3:08 pm
---------------------------------------------------------
Finally got a solution for this.
Check the below link.
HTML https://devopsdiaryblog.wordpress.com/2017/11/26/how-to-fix-path-not-found-error-in-python-plugin/
HTML https://devopsdiaryblog.wordpress.com/2017/11/26/how-to-fix-path-not-found-error-in-python-plugin/
*****************************************************
Page 1 of 1