Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

I'm running an Python script from RQM. I'm getting this error during execution, 'CreateProcess error=193, %1 is not a valid Win32 application '

Hi,


I have customized the command line adapter successfully which is required to run a python script from RQM. When I'm executing a python script from the RQM through test case, and I'm getting a error ' CreateProcess error=193, %1 is not a valid Win32 application '. Kindly guide me through this.

Regards,
Aishwarya Sureban

0 votes



2 answers

Permanent link

Hi Aishwarya, 


Sounds like the Python command in the Command Line test script is not being executed correctly (see https://stackoverflow.com/questions/12637203/why-does-createprocess-give-error-193-1-is-not-a-valid-win32-app).  Try running the command outside of the test execution on the host running the Command Line Adapter.

0 votes

Comments

Hi Paul,


I gave gone through the site, https://stackoverflow.com/questions/12637203/why-does-createprocess-give-error-193-1-is-not-a-valid-win32-app. But, I'm not getting a clear idea how to start through. Furthermore, I have successfully executed the python script using the Command Prompt of Windows. But, unable to do the same in RQM.

What is the command in the Command Line test script?

This is the command :


start.bat -repository https://d-8832.kpit.com:9443/qm -user PMTJLR -password PMTJLR -adapterName CommandLine -projectArea RQM+Demo+Project -configFile Config2.ini   

This is the command to start the Command Line Adapter.  I'm referring to the command in the Command Line test script.

Command in the Command Line Test Script  is : C:\Users\PMTJLR\Videos\adapters\RQMCommandLineAdapter\script1.py 

Hi Paul,


The code in the 'script1.py' is below: 
print("Hello World")

showing 5 of 6 show 1 more comments

Permanent link

Sounds as if the Python interpreter cannot be found at runtime. Make sure it‘s in the path. I think creating a wrapper file calling the script could solve the problem, e.g.


C:\path\to\python\inerpreter c:\path\to\script.py

0 votes

Comments

Hi Matthias,


I executed it according to the way you mentioned. I'm stuck with the error as follows;
Cannot run program "C:\Users\PMTJLR\Videos\Python\python.exe C:\Users\PMTJLR\Videos\Python\script1.py": CreateProcess error=2, The system cannot find the file specified .

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Jul 25 '18, 7:23 a.m.

Question was seen: 3,652 times

Last updated: Jul 26 '18, 7:33 a.m.

Confirmation Cancel Confirm