Python invoke is not working

I am trying to invoke python code in UiPath with UiPath.Python.Activities but its not working and not showing any error.

And also i am not able to add int value in input parameters. please see below image for your reference.


Thanks in advance

Hi @Mohit_Prashad

Check the below thread.

Regards

Hi @Mohit_Prashad ,

Many C# or VB.net variable types will not be accepted by Python. I think the best approach is to send String or JSON string and write logic to convert it to the needed variable type in your Python code.

To add Int parameters, use CObj().

image

Its already installed but the version is 8.0

The Python activities require specifically version 5 so version 8 won’t do.

@loginerror Please help

Could you please try the most recent Python package version? We released it last week and it was finally upgraded to support .Net 6 and Python 3.12.

I don’t see the new package in Studio/Manage Package?

It should be there now for sure (since a week or so).
(late reply, but necessary in case someone will see this)

你好,我也遇到了类似的问题!Python Scope 可以运行,加载 Python 脚本也没问题,但 Invoke Python Method 就是不运行,项目会卡在那里。有办法解决这个问题吗?我试过安装 NET 6.0。谢谢