Thank you for you reply.
I’ve confirmed the link but I still have some issue.
I downloaded Python and installed it successfully, but I don’t understand how to install PyWin32. I downloaded pywin32-b308.zip, but I’m not sure where to place those files. Additionally, when I run ‘pip install pywin32 --upgrade,’ I encounter an error. Do you know how to fix it? The error message is below.
Also, regarding No. 4, I cannot see the win32comext folder under C:\Program Files (x86)\Python313-32\Lib\site-packages. How should I register Python on my server?
Can you let us know please what version of Python you have installed?
Not so long ago I was able to execute a Python script by the Run Script Workflow plugin after executing the following steps:
Download the Windows installer (32-bit) for Python 3.13.0 from Python.org and run the installer
Open the Command Prompt application as Administrator once Python for Windows has been installed successfully
Execute the command pip install pywin32 --upgrade to install PyWin32 (see Releases · mhammond/pywin32 for more information)
Check whether the correct environment variables are applied*
Run the command "C:\Program Files (x86)\Python313-32\Lib\site-packages\win32comext\axscript\client\pyscript.py" from the still open Command Prompt application, whereby C:\Program Files (x86)\Python313-32 is the path where Python for Windows has been installed
*See:
Installers for newer versions of Python (found on Python.org) have an option “Add python.exe to PATH”, making it unnecessary to edit the environment variables manually (as described in step 3 of the above procedure).
They also install pip (the package installer for Python) by default. With pip, PyWin32 can be easily installed from the command line using the following command: pip install pywin32 --upgrade.
Note: Newer versions of Python have not been tested and may not be fully compatible with Workflow.
I’ve installed Python 3.13.0. First of all, the install step was done successfully. But second, I could not run ‘pip install pywin32 --upgrade’ even though I used the Command Prompt application as Administrator. Do you know how I can proceed it? Please find the error message below.
Thank you for the information. It turns out I needed to use a proxy to complete all the settings. However, I still can’t run the Python script in the workflow. I’ve also checked that the system environment variables are correct. Is there anything else I need to do to run the Python script?
If yes, have you executed all the steps described HERE? Because I am able to execute the below Python code successfully by running the Run Script Workflow plugin in debug mode, after executing these steps on a virtual machine.
Watch.Log("Hello World!", 2);
Result:
[0002] Starting plugin Run Script - 15:46:56
[0002] Run embedded script...
[0002] Hello World!
[0002] Data file processed : debug119269.dat, size: 12 bytes
[0002] Plugin Run Script completed successfully - 15:46:57 (elapsed time: 00:00:00.814)
(Test executed in OL Connect Enterprise Workflow 2024.2.1.)
Thank you for your concern. When I executed the fifth step of the Python setup procedure, I was able to install it successfully by adding ‘python’ at the beginning of the command. Python also worked on the workflow. Thank you.