# Python invoke is not working

**URL:** <https://forum.uipath.com/t/python-invoke-is-not-working/723167>\
**Category:** Studio\
**Tags:** workflow-diff, question, studio, python, activities\
**Created:** [February 28, 2024, 2:15pm UTC](https://forum.uipath.com/t/python-invoke-is-not-working/723167 "2024-02-28T14:15:24Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohit\_Prashad](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/mohit_prashad/32/264548_2.png) [@Mohit\_Prashad](https://forum.uipath.com/u/Mohit_Prashad)\
**Post date:** [February 28, 2024, 2:15pm UTC](https://forum.uipath.com/t/python-invoke-is-not-working/723167/1 "2024-02-28T14:15:24Z")

</div>

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

 ![image](https://global.discourse-cdn.com/uipath/original/4X/b/6/b/b6b9597beff9bec67d86a564e816f28652db7b95.png)

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

 ![image](https://global.discourse-cdn.com/uipath/original/4X/1/8/1/18113098cc2f6d628261378a0a3313a4adc0c846.png)  
Thanks in advance

---

<div class="post-metadata">

**Author:** ![Parvathy](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/parvathy/32/484539_2.png) [@Parvathy](https://forum.uipath.com/u/Parvathy)\
**Post date:** [February 28, 2024, 2:19pm UTC](https://forum.uipath.com/t/python-invoke-is-not-working/723167/2 "2024-02-28T14:19:39Z")

</div>

Hi @Mohit_Prashad

Check the below thread.

> [@Invoke Python method - no output at all](https://forum.uipath.com/t/invoke-python-method-no-output-at-all/722468/2):
>
> @erika.papp Looks like a dot net runtime issue try to install 5.0 .net runtime and check Cheers

Regards

---

<div class="post-metadata">

**Author:** ![Rajasegar94](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/rajasegar94/32/176642_2.png) [@Rajasegar94](https://forum.uipath.com/u/Rajasegar94)\
**Post date:** [February 28, 2024, 2:48pm UTC](https://forum.uipath.com/t/python-invoke-is-not-working/723167/3 "2024-02-28T14:48:36Z")

</div>

Hi @Mohit_Prashad ,

Many C# or [VB.net](http://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.

---

<div class="post-metadata">

**Author:** ![ptrobot](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ptrobot/32/175001_2.png) [@ptrobot](https://forum.uipath.com/u/ptrobot)\
**Post date:** [February 28, 2024, 2:56pm UTC](https://forum.uipath.com/t/python-invoke-is-not-working/723167/4 "2024-02-28T14:56:39Z")

</div>

To add Int parameters, use CObj().

![image](https://global.discourse-cdn.com/uipath/original/4X/f/2/7/f27c3a248b5caa4574dddf13784d484003e4360e.png)

---

<div class="post-metadata">

**Author:** ![Mohit\_Prashad](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/mohit_prashad/32/264548_2.png) [@Mohit\_Prashad](https://forum.uipath.com/u/Mohit_Prashad)\
**Post date:** [February 28, 2024, 3:02pm UTC](https://forum.uipath.com/t/python-invoke-is-not-working/723167/5 "2024-02-28T15:02:28Z")

</div>

> [@Invoke Python method - no output at all](https://forum.uipath.com/t/invoke-python-method-no-output-at-all/722468/2):
>
> 5.0

Its already installed but the version is 8.0

---

<div class="post-metadata">

**Author:** ![ptrobot](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ptrobot/32/175001_2.png) [@ptrobot](https://forum.uipath.com/u/ptrobot)\
**Post date:** [February 28, 2024, 3:10pm UTC](https://forum.uipath.com/t/python-invoke-is-not-working/723167/6 "2024-02-28T15:10:14Z")

</div>

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

 ![image](https://global.discourse-cdn.com/uipath/original/4X/e/0/c/e0c250966bbed5ef65ff40b05d7505d236a4ad72.png)

> **[Activities - Python Scope](https://docs.uipath.com/activities/other/latest/developer/python-scope)**
>
> The UiPath Documentation Portal - the home of all our valuable information. Find here everything you need to guide you in your automation journey in the UiPath ecosystem, from complex installation guides to quick tutorials, to practical business...

---

<div class="post-metadata">

**Author:** ![Mohit\_Prashad](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/mohit_prashad/32/264548_2.png) [@Mohit\_Prashad](https://forum.uipath.com/u/Mohit_Prashad)\
**Post date:** [March 4, 2024, 6:22am UTC](https://forum.uipath.com/t/python-invoke-is-not-working/723167/7 "2024-03-04T06:22:28Z")

</div>

@loginerror Please help

---

<div class="post-metadata">

**Author:** ![loginerror](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/loginerror/32/22614_2.png) [@loginerror](https://forum.uipath.com/u/loginerror)\
**Post date:** [March 4, 2024, 7:27am UTC](https://forum.uipath.com/t/python-invoke-is-not-working/723167/8 "2024-03-04T07:27:57Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![carlRoos](https://avatars.discourse-cdn.com/v4/letter/c/ad7895/32.png) [@carlRoos](https://forum.uipath.com/u/carlRoos)\
**Post date:** [March 4, 2024, 11:00am UTC](https://forum.uipath.com/t/python-invoke-is-not-working/723167/9 "2024-03-04T11:00:39Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![loginerror](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/loginerror/32/22614_2.png) [@loginerror](https://forum.uipath.com/u/loginerror)\
**Post date:** [March 15, 2024, 4:18pm UTC](https://forum.uipath.com/t/python-invoke-is-not-working/723167/10 "2024-03-15T16:18:21Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dynamitee](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/dynamitee/32/512855_2.png) [@dynamitee](https://forum.uipath.com/u/dynamitee)\
**Post date:** [August 3, 2025, 2:43pm UTC](https://forum.uipath.com/t/python-invoke-is-not-working/723167/11 "2025-08-03T14:43:38Z")

</div>

Hi, I am having a similar issue too! Python Scope runs, load python script works too but invoke python method just doesnt run and the project gets stuck there. Anything to resolve the issue? I have tried installing NET 6.0. Thanks

 ![Screenshot 2025-08-03 224315](https://global.discourse-cdn.com/uipath/original/4X/f/a/5/fa512c778cb98094cf4e4cb0b10233a99911347a.jpeg)
