# 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:** 1\
**Showing post:** 2

<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

---

_[View the full topic](https://forum.uipath.com/t/error-while-running-load-python-script/399047)._
