# Error while running Load Python Script

**URL:** <https://forum.uipath.com/t/error-while-running-load-python-script/399047>\
**Category:** Studio\
**Tags:** activities-panel, question, studio, python, activities\
**Created:** [February 14, 2022, 7:28am UTC](https://forum.uipath.com/t/error-while-running-load-python-script/399047 "2022-02-14T07:28:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Swapna\_Sivalingam](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/swapna_sivalingam/32/242625_2.png) [@Swapna\_Sivalingam](https://forum.uipath.com/u/Swapna_Sivalingam)\
**Post date:** [February 14, 2022, 7:28am UTC](https://forum.uipath.com/t/error-while-running-load-python-script/399047/1 "2022-02-14T07:28:22Z")

</div>

Hi,

While running the workflow, getting an error as Load Python Script: Error loading Python script. I have 6zz4 bit python.

I have attached the workflow.  
[SpeechToText.xaml](https://forum.uipath.com/uploads/short-url/xy6PY7VRumKda9mGuqTo4U1UA5T.xaml) (7.4 KB)

---

<div class="post-metadata">

**Author:** ![Gokul001](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/gokul001/32/462734_2.png) [@Gokul001](https://forum.uipath.com/u/Gokul001)\
**Post date:** [February 14, 2022, 7:29am UTC](https://forum.uipath.com/t/error-while-running-load-python-script/399047/2 "2022-02-14T07:29:52Z")

</div>

Hi @Swapna_Sivalingam

Refer to the thread

> [@Error when using "Load python script activity"](https://forum.uipath.com/t/error-when-using-load-python-script-activity/75611/25):
>
> @tome.lourenco, welcome and thank you for posting. I am having a similar issue which I haven’t resolved yet. Somewhere in the forum I found this code: import sys import os sys.path.append(os.path.dirname(os.path.realpath(\_\_file\_\_))) which the post said to put just before the “import your-module-here” call. The reason given was that the software restriction in place make UiPath look for the py script in the activities directory. I will try your workaround as well. See e.g. [this post](https://forum.uipath.com/t/documentation-bug-for-python-activities/109708), [this one …](https://forum.uipath.com/t/python-activity-error/53409/83)

Regards  
Gokul
