Henry_K
(Henry K.)
November 7, 2022, 11:23am
1
Currently I am trying to write a Python script that sends a SOAP request via urllib to the webservice API of the webtool Footprints BMC. When I run the script in PyCharm it works and for example tickets in Footprints are processed in the tool as given in the SOAP schema.
When I load the same script into Python Scope in UiPath and run it with “Run Python Script” then I get the following error.
But when I call it with Load Python Script and then Invoke Python Method, I get the following error message.
My versions:
Python 3.9.13 (openssl installed as well)
UiPath 2020.10.6 Enterprise
Thank you very much. Any advice is appreciated.
loginerror
(Maciej Kuźmicz)
November 8, 2022, 9:18am
2
Hi @Henry_K
Could you please do this simple check first:
A bit of extra info here.
The Python activities are invoked regardless of context, using only the Windows environment variables. If, for some reason, a certain path is not set or if a certain Python package is only available in a certain environment (e.g. in the Miniconda console you used to install a certain version of Python), then the script execution will fail.
As a simple verification, you should be able to run the script using nothing but the Windows Command Prompt.
<path to python.exe> …
Just to get the first debugging step out of the way.
Some further steps can be found here as well:
Step-A: (Validate the Configuration parameters)
Check the Python exe file path location is properly specified in Python Scope properties
Check the installed Python version is 64-bit or 32-bit. In case of 32-bit version select x86
Specify the Python version installed. It is always better to specify the Python version rather selecting Auto.
[image]
Step-B:
Instead of using " Run Python Script " activity, use Load Python Script → Invoke Python Method → Get Python Object .
Remove the Print …
Henry_K
(Henry K.)
November 8, 2022, 12:33pm
3
Thank you very much. I wasnt able to find these posts even after googling a lot…
But with these I was able to fix it.
1 Like
system
(system)
Closed
November 11, 2022, 12:33pm
4
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.