Load Python Script error when running python script

Hi All,

I need to extract the content of data from website.

I said to python developer, that i required like this way and he made it below csv.

image

when i load my script file, it throws the error

This is my script below
image

So, i’m attaching my file please check and make corrections
pythonProcess.zip (1.9 KB)

@Palaniyappan
@Rahul_Pasupuleti

1 Like

@sudhasagar

What is the error?

image

@sudhasagar
Could you please display the details too? It’s already quite painful to have a proper python traceback from UiPath :slight_smile:

1 Like

Project Details?? or script details

@sudhasagar
The error details.

Did you also try to run the script by itself out of UiPath but in the same environment?

Hi
It’s been long time
Hope you are doing well
Did we try run the key thing script as a bat file
That is create a bat file and mention the filepath of python.exe and the script file path
And here in uipath use START PROCESS activity and pass the filepath of bat file as input to FileName property

And also make sure that the python code is executed manually from the shell first and it’s getting executed as expected

Cheers @sudhasagar

Not in same Environment,but worked in another one

Hi
Thanks for remembering me.
Yes, i’m doing well
The script is worked in different environment(some other laptop) and it worked.
I really dont have idea, Can u please check my workflow, is that process is correct or not?

Hi,

I found the solution, using python script.
There are some changes in script, that i made according to uipath output

1 Like

Would you please show the way to me? How did you resolve the issue? I met the same one.

Hi,

First, install pre-requirements for python and run the code using python. I sat with python-dev and said the requirements. He checks and invoked the python in UIpath. The output i said to bring as csv file.
Mainly he changed the python code as per Uipath. There are steps to be followed in the python code. Then it works.
I’m Sharing my workflow, Pls go throw
DHL .xaml (21.2 KB)

Pls go throw this person, gives lots of information related to py scripthing. I shared to my python dev and he understanding the way of invoking python script in UI.

A fix was pushed for Error when Invoking Python Script. See the fix here: https://github.com/UiPath/Community.Activities/pull/69

Deployed fix with UiPath.Python.Activities version v1.1.7594.35963 on Connect feed.

Please test if this fixes your problem as well.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.