Highlighted
Respected Contributor.. Respected Contributor..
Respected Contributor..
473 views

Run python script in operation orchestration central

Hello,

I am trying to execute python script in oo.

It run successfully in oo designer with the help of powershell module but when i created its content pack and imported in oo central it is throwing error as python not found.

Kindly provided solution run python script in operation orchestration central.

0 Likes
6 Replies
Highlighted
Honored Contributor.
Honored Contributor.

Re: Run python script in operation orchestration central

 Hi,

According to me, errors like this is caused by missing content packs in central.

Are you sure that all required content packs (like Base,....) are deployed in your Central?

Regards;

0 Likes
Highlighted
Respected Contributor.. Respected Contributor..
Respected Contributor..

Re: Run python script in operation orchestration central

yes , require content pack is available.

But still error  is showing as python not found. Even there is python installed in the VM where operation orchestration central is deployed.

0 Likes
Highlighted
Honored Contributor.
Honored Contributor.

Re: Run python script in operation orchestration central

Did you check environment variables in your Central Server. Is Python there?

0 Likes
Highlighted
Respected Contributor.. Respected Contributor..
Respected Contributor..

Re: Run python script in operation orchestration central

yes it is there.

 

clipboard_image_0.png

i am able to run python commands through powershell and command prompt. It is also running on oo designer which is on same vm on which central is deployed

0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: Run python script in operation orchestration central

If you can start powershell successfully in the Central, then you can check the environment vairable during the execution of the python script, to see if the "path" vairable had set to include the python binary path.

Or you can set the environment variable explictly in the powershell before running the python script. Refer to:https://stackoverflow.com/questions/11813435/im-trying-to-use-python-in-powershell

Regards,

Robin

Highlighted
Micro Focus Expert
Micro Focus Expert

Re: Run python script in operation orchestration central

If you still want to run Python scripts (not Jython) in OO please also vote this idea as it's related to providing Python run engine with OO by default.

https://community.microfocus.com/t5/Operations-Orchestration-Idea/Python-3-x-support-in-OO/idi-p/2690195

Thanks,

Lucian

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.