sandeep s
unread,
Oct 12, 2011, 5:20:15 PM10/12/11
to robotframework-users
Hi All,I am getting stuck with the below error message,
Python,Robot framework is installed and the path is set .And on the runtime also i am trying to set the path.But still i m getting the issue of pybot not recognized.
Anypointers would be appreciated.
Started by user anonymous
[workspace] $ cmd /c call C:\DOCUME~1\cuicuser\LOCALS~1\Temp\hudson6054168488004567657.bat
C:\eclipse-workspace\jenkins\jobs\Robot-TestScript Execution\workspace>Trigger.bat
C:\eclipse-workspace\jenkins\jobs\Robot-TestScript Execution\workspace>set PATH = c:\Python27\Scripts
C:\eclipse-workspace\jenkins\jobs\Robot-TestScript Execution\workspace>pybot --xunitfile xunitreport --timestampoutputs --report report.html --outputdir C:\OutResult DashBoard_autoRefresh\*.html
'pybot' is not recognized as an internal or external command,
operable program or batch file.
Build step 'Execute Windows batch command' marked build as failure
Sending e-mails to:
Notifying upstream projects of job completion
Finished: FAILURE
Selber, Heiko (NSN - DE/Berlin)
unread,
Oct 12, 2011, 5:38:08 PM10/12/11
to , robotframework-users
Just a guess: Is there a space character between ‘PATH’ and ‘=’?
If so, you are probably setting the environment variable ‘PATH ‘ (with a space at the end) instead of ‘PATH’.
Try whether removing the space helps.
sandeep s
unread,
Oct 12, 2011, 7:07:31 PM10/12/11
to Selber, Heiko (NSN - DE/Berlin), robotframework-users
The issue got solved; but not the right way.
c:\Python27\Scripts\pybot.bat --xunitfile xunitreport --timestampoutputs --report report.html --outputdir C:\OutResult DashBoard_autoRefresh\*.html - worked
doing the above solved..but i m still confused with ; why it didnt work with
pybot.bat --xunitfile xunitreport --timestampoutputs --report report.html --outputdir C:\OutResult DashBoard_autoRefresh\*.html
set path is working fine without any issues :)...
Sandeep
Selber, Heiko (NSN - DE/Berlin)
unread,
Oct 12, 2011, 8:25:51 PM10/12/11
to ext sandeep s, robotframework-users
Excuse me if I insist, but I still think the problem is the way you tried to set the path.
Look at this batch file. It tries to set the path in 2 different ways, first the way you did, then without the space.
==== BEGIN setpath.bat ====
rem clear variables
set PATH=
set PATH =
rem set path wrongly
set PATH = C:\Python27\Scripts
echo "PATH"=%PATH%
echo "PATH "=%PATH %
rem will fail
pybot --version
rem set path correctly
set PATH=C:\Python27\Scripts
echo "PATH"=%PATH%
echo "PATH "=%PATH %
pybot --version
==== END setpath.bat ====
The first attempt fails, the second one succeeds, at least here on Windows 7:
==== BEGIN console output ====
C:\>setpath.bat
C:\>rem clear variables
C:\>set PATH=
C:\>set PATH =
C:\>rem set path wrongly
C:\>set PATH = C:\Python27\Scripts
C:\>echo "PATH"=
"PATH"=
C:\>echo "PATH "= C:\Python27\Scripts
"PATH "= C:\Python27\Scripts
C:\>rem will fail
C:\>pybot --version
'pybot' is not recognized as an internal or external command,
operable program or batch file.
C:\>rem set path correctly
C:\>set PATH=C:\Python27\Scripts
C:\>echo "PATH"=C:\Python27\Scripts
"PATH"=C:\Python27\Scripts
C:\>echo "PATH "= C:\Python27\Scripts
"PATH "= C:\Python27\Scripts
C:\>pybot --version
Robot Framework 2.6.3 (Python 2.7.2 on win32)
C:\>
==== END console output ====
BTW: You might want to use
set PATH=%PATH%;C:\Python27\Scripts
in order to preserve the existing content of PATH (which includes python itself).