# How to integrate GUI Python script to

**URL:** <https://forum.uipath.com/t/how-to-integrate-gui-python-script-to/736508>\
**Category:** Robot\
**Tags:** question, robot, python, activities\
**Created:** [April 23, 2024, 2:44pm UTC](https://forum.uipath.com/t/how-to-integrate-gui-python-script-to/736508 "2024-04-23T14:44:10Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![sesa499170](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@sesa499170](https://forum.uipath.com/u/sesa499170)\
**Post date:** [April 23, 2024, 2:44pm UTC](https://forum.uipath.com/t/how-to-integrate-gui-python-script-to/736508/1 "2024-04-23T14:44:10Z")

</div>

i have a Python script for GUI application I want to use Python activity to launch this Python script .. may I know the required steps ?

GUI application that I want to run L:

 ![image](https://global.discourse-cdn.com/uipath/original/4X/3/3/f/33ff6937ddb8c697936f2c1f6542573f1a1ba87e.png)

---

<div class="post-metadata">

**Author:** ![AJ\_Ask](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/aj_ask/32/555384_2.png) [@AJ\_Ask](https://forum.uipath.com/u/AJ_Ask)\
**Post date:** [April 23, 2024, 2:49pm UTC](https://forum.uipath.com/t/how-to-integrate-gui-python-script-to/736508/2 "2024-04-23T14:49:27Z")

</div>

Hi @sesa499170

> **[Activities - Invoking a Python Script](https://docs.uipath.com/activities/other/latest/developer/invoking-a-python-script)**
>
> 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...

[![](https://global.discourse-cdn.com/uipath/original/4X/c/4/3/c439393eb8f96ebc12501623d43e14378ca2ab49.jpeg "How to run a Python script from UiPath") ](https://www.youtube.com/watch?v=4DTDVaJJ5x4)

Hope this helps 🙂

---

<div class="post-metadata">

**Author:** ![sesa499170](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@sesa499170](https://forum.uipath.com/u/sesa499170)\
**Post date:** [April 23, 2024, 2:51pm UTC](https://forum.uipath.com/t/how-to-integrate-gui-python-script-to/736508/3 "2024-04-23T14:51:39Z")

</div>

Thanks for sharing but i couldn’t use these steps in launching GUI application

---

<div class="post-metadata">

**Author:** ![AJ\_Ask](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/aj_ask/32/555384_2.png) [@AJ\_Ask](https://forum.uipath.com/u/AJ_Ask)\
**Post date:** [April 23, 2024, 2:52pm UTC](https://forum.uipath.com/t/how-to-integrate-gui-python-script-to/736508/4 "2024-04-23T14:52:39Z")

</div>

What error you are getting?

---

<div class="post-metadata">

**Author:** ![sesa499170](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@sesa499170](https://forum.uipath.com/u/sesa499170)\
**Post date:** [April 23, 2024, 7:53pm UTC](https://forum.uipath.com/t/how-to-integrate-gui-python-script-to/736508/5 "2024-04-23T19:53:11Z")

</div>

![image](https://global.discourse-cdn.com/uipath/original/4X/5/a/5/5a54216392c476a514102c85627cbe16c946df12.png)  
it stays running forever with no progress, but there is no error and also doesn’t show my GUI application … i think I shall use Run Script instead of this flow but I can’t make it works

---

<div class="post-metadata">

**Author:** ![AJ\_Ask](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/aj_ask/32/555384_2.png) [@AJ\_Ask](https://forum.uipath.com/u/AJ_Ask)\
**Post date:** [April 24, 2024, 2:53am UTC](https://forum.uipath.com/t/how-to-integrate-gui-python-script-to/736508/6 "2024-04-24T02:53:53Z")

</div>

You need to install

For Windows projects, the Python Scope activity requires you to install the .NET Desktop Runtime 5.0.17

> **[Download .NET 5.0 (Linux, macOS, and Windows)](https://dotnet.microsoft.com/en-us/download/dotnet/5.0)**
>
> .NET 5.0 downloads for Linux, macOS, and Windows. .NET is a free, cross-platform, open-source developer platform for building many different types of applications.

---

<div class="post-metadata">

**Author:** ![sesa499170](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@sesa499170](https://forum.uipath.com/u/sesa499170)\
**Post date:** [April 24, 2024, 6:02am UTC](https://forum.uipath.com/t/how-to-integrate-gui-python-script-to/736508/7 "2024-04-24T06:02:34Z")

</div>

yes i did , thank you but still not running

---

<div class="post-metadata">

**Author:** ![AJ\_Ask](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/aj_ask/32/555384_2.png) [@AJ\_Ask](https://forum.uipath.com/u/AJ_Ask)\
**Post date:** [April 24, 2024, 6:22am UTC](https://forum.uipath.com/t/how-to-integrate-gui-python-script-to/736508/8 "2024-04-24T06:22:15Z")

</div>

Which python version you are using? & can you show your python scope settings screenshot.  
Need to check your Path & library path

> [@Error Initializing Python Engine](https://forum.uipath.com/t/error-initializing-python-engine/334238/4):
>
> Try to install python from here [Python Release Python 3.10.1 | Python.org](https://www.python.org/downloads/release/python-3101/) and then restart the machine. In order to verify where the python.exe resides, open a cmd.exe and type: where python Based on [https://docs.uipath.com/activities/docs/release-notes-python-activities](https://docs.uipath.com/activities/docs/release-notes-python-activities) , in v1.6.0 we fixed an issue where UiPath.Python.[Activities](https://docs.uipath.com/activities/docs/introduction) v1.4.1 would not support Python v3.10.1. In a C# Windows project with UiPath.Python.Activities[1.6.0] (Studio 2022.4.6) with a locally Python 3.10 installed Pyth…

---

<div class="post-metadata">

**Author:** ![sesa499170](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@sesa499170](https://forum.uipath.com/u/sesa499170)\
**Post date:** [April 24, 2024, 8:13am UTC](https://forum.uipath.com/t/how-to-integrate-gui-python-script-to/736508/9 "2024-04-24T08:13:39Z")

</div>

Please find below images , i use very simple code to test the issue , noting i don’t receive any errors but it doesn’t run

 ![image](https://global.discourse-cdn.com/uipath/original/4X/6/d/1/6d156503d067771dddf17eec89480a429727a6a6.png)  
 ![image](https://global.discourse-cdn.com/uipath/original/4X/2/b/7/2b7cc87bf71a3a2ed2692958ab3f65de52929324.png)  
 ![image](https://global.discourse-cdn.com/uipath/original/4X/7/f/1/7f1ab0bf6f581d614464ba14a129c767faf0d1a9.png)  
 ![image](https://global.discourse-cdn.com/uipath/original/4X/b/3/5/b35c09226fe822d9d39ebfa0eaca37e20e990dfc.png)  
 ![image](https://global.discourse-cdn.com/uipath/original/4X/6/5/4/654d242a9e4bfa4001c7778fe1f7f13836e2e5ed.png)  
 ![image](https://global.discourse-cdn.com/uipath/original/4X/0/8/7/08758dc10d3cf6e7395a46e6c5d939f027a12619.png)

---

<div class="post-metadata">

**Author:** ![AJ\_Ask](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/aj_ask/32/555384_2.png) [@AJ\_Ask](https://forum.uipath.com/u/AJ_Ask)\
**Post date:** [April 24, 2024, 8:34am UTC](https://forum.uipath.com/t/how-to-integrate-gui-python-script-to/736508/10 "2024-04-24T08:34:19Z")

</div>

Remove the \ after Python38. Set the python version instead of Auto.

If this is not working, try with higher version of python. Are you sure the .Net framework is installed?

---

<div class="post-metadata">

**Author:** ![sesa499170](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@sesa499170](https://forum.uipath.com/u/sesa499170)\
**Post date:** [April 24, 2024, 8:42am UTC](https://forum.uipath.com/t/how-to-integrate-gui-python-script-to/736508/11 "2024-04-24T08:42:19Z")

</div>

modification is done as u advised, image below is for installed .net

I tried python 3.10, 3.11

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

---

<div class="post-metadata">

**Author:** ![sesa499170](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@sesa499170](https://forum.uipath.com/u/sesa499170)\
**Post date:** [April 24, 2024, 8:47am UTC](https://forum.uipath.com/t/how-to-integrate-gui-python-script-to/736508/12 "2024-04-24T08:47:47Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![AJ\_Ask](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/aj_ask/32/555384_2.png) [@AJ\_Ask](https://forum.uipath.com/u/AJ_Ask)\
**Post date:** [April 24, 2024, 8:56am UTC](https://forum.uipath.com/t/how-to-integrate-gui-python-script-to/736508/13 "2024-04-24T08:56:44Z")

</div>

In above 3.9 version you have to add the Library path also in python scope. Like this

C:\Users\username\AppData\Local\Programs\Python\Python310\python310.dll

---

<div class="post-metadata">

**Author:** ![ashokkarale](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ashokkarale/32/474400_2.png) [@ashokkarale](https://forum.uipath.com/u/ashokkarale)\
**Post date:** [April 24, 2024, 8:58am UTC](https://forum.uipath.com/t/how-to-integrate-gui-python-script-to/736508/14 "2024-04-24T08:58:12Z")

</div>

@sesa499170,

I don’t think you would require any other activities than `Run Python Script` for this.

Here is my working sample for you to test.  
Python 3.12

 ![image](https://global.discourse-cdn.com/uipath/original/4X/1/9/f/19f1ed2d27f007c3746726387016ed04ba4575c5.png)

.Net Runtime 6.0.28

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

Here is Python Scope configuration:

 ![image](https://global.discourse-cdn.com/uipath/original/4X/5/6/9/569dc39f469370d206aa75a9f64a4bedfd5f58d2.png)

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

Output:

 ![image](https://global.discourse-cdn.com/uipath/original/4X/9/2/3/923effd9d30f03af358c47db421f0f7eb0f2256a.png)

Try this solution if it’s working or not.  
[Main.xaml](https://forum.uipath.com/uploads/short-url/asSabnAIO4ITJzZsLAoDpd7SFrK.xaml) (7.5 KB)

Thanks,  
Ashok 🙂

---

<div class="post-metadata">

**Author:** ![sesa499170](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@sesa499170](https://forum.uipath.com/u/sesa499170)\
**Post date:** [April 24, 2024, 2:17pm UTC](https://forum.uipath.com/t/how-to-integrate-gui-python-script-to/736508/15 "2024-04-24T14:17:28Z")

</div>

it worked thanks alot 🙂

---

<div class="post-metadata">

**Author:** ![sesa499170](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@sesa499170](https://forum.uipath.com/u/sesa499170)\
**Post date:** [April 24, 2024, 2:17pm UTC](https://forum.uipath.com/t/how-to-integrate-gui-python-script-to/736508/16 "2024-04-24T14:17:51Z")

</div>

it worked thanks alot 🙂 🙂

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/system/32/182466_2.png) [@system](https://forum.uipath.com/u/system)\
**Post date:** [April 27, 2024, 2:18pm UTC](https://forum.uipath.com/t/how-to-integrate-gui-python-script-to/736508/17 "2024-04-27T14:18:20Z")

</div>

Closed on April 27, 2024, 2:18pm UTC

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