Run Python File from Mid-Server using flow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2024 10:21 AM
Hi Team,
I created script action in flow that run python script file in Mid Server, I got error like this "
"
suggest me any solution for this
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2024 10:27 AM
on line 11 Try "py" instead of "python".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2024 09:28 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2024 10:27 AM - edited 05-15-2024 10:30 AM
Hi,
Most probably "python" is not declared as an environment variable in your windows machine.
Follow this steps to do it:
windows set environment variable
If that does not work, try to update your command to be c:\windows\system32\python --version or locate the folder in which python is installed and put it in your command like
cd <path_to_python_folder_name> | python --version
Let me know if that worked!
Please, don't forget to mark my answer as correct if it solves your issue or mark it as helpful if it is relevant for you!
Best Regards,
Filipe Cruz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2024 09:42 PM
Hi @Filipe Cruz
I tried this way as well
C:\test\test\AppData\Local\Programs\Python\Python312\python.exe py --version