# Error Loading Python Script - load python script activity throwing error

**URL:** <https://forum.uipath.com/t/error-loading-python-script-load-python-script-activity-throwing-error/246853>\
**Category:** Reboot Your Skills 2021\
**Tags:** python, studio\
**Created:** [August 21, 2020, 11:16am UTC](https://forum.uipath.com/t/error-loading-python-script-load-python-script-activity-throwing-error/246853 "2020-08-21T11:16:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![asha\_TN](https://avatars.discourse-cdn.com/v4/letter/a/c5a1d2/32.png) [@asha\_TN](https://forum.uipath.com/u/asha_TN)\
**Post date:** [August 21, 2020, 11:16am UTC](https://forum.uipath.com/t/error-loading-python-script-load-python-script-activity-throwing-error/246853/1 "2020-08-21T11:16:22Z")

</div>

Hello Team,

I am trying to run python code from uipath,

if i run some simple (like adding two numbers) script, it is running fine from uipath.  
But the below python code is throwing error in uipath.

import os  
import tabula

def conv\_pdf():  
df = (r"C:\Users\ExplanationOfBenefits.pdf")  
output = r"C:\Users\ExplanationOfBenefits.csv"  
tabula.convert\_into(df, output, output\_format=“csv”, stream=True, pages=“1”)  
return “Successful”

kindly help,  
Thanks in advance

---

<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:** [August 23, 2020, 4:00pm UTC](https://forum.uipath.com/t/error-loading-python-script-load-python-script-activity-throwing-error/246853/2 "2020-08-23T16:00:40Z")

</div>

Hello @asha_TN!

It seems that you have trouble getting an answer to your question in the first 24 hours.  
Let us give you a few hints and helpful links.

First, make sure you browsed through our [**Forum FAQ Beginner’s Guide**](https://forum.uipath.com/t/forum-faq-beginner-s-guide/200562). It will teach you what should be included in your topic.

You can check out some of our resources directly, see below:

1. **Always search first**. It is the best way to quickly find your answer. Check out the [![image](https://global.discourse-cdn.com/uipath/original/3X/d/f/df7370d76626e03b84e2bf049481f5a20d345ef9.png)](https://forum.uipath.com/search) icon for that.  
Clicking the options button will let you set more specific topic search filters, i.e. only the ones with a solution.

2. Topic that contains most common solutions with example project files can be found [**here**](https://forum.uipath.com/t/your-xaml-solutions-for-most-common-issues-wiki-post-anyone-can-edit/108894).

3. Read our [**official documentation**](https://docs.uipath.com) where you can find a lot of information and instructions about each of our products:

4. Watch the videos on our [**official YouTube channel**](https://www.youtube.com/user/UiPath) for more visual tutorials.

5. Meet us and our users on our [**Community Slack**](https://join.slack.com/t/uipathcommunity/shared_invite/zt-19ovcbo1u-S7xNszAzcJcdlG9o4A1CTA) and ask your question there.

Hopefully this will let you easily find the solution/information you need. Once you have it, we would be happy if you could share your findings here and mark it as a solution. This will help other users find it in the future.

Thank you for helping us build our UiPath Community!

Cheers from your friendly  
[@Forum\_Staff](https://forum.uipath.com/groups/forum_staff)

---

<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:** [December 23, 2020, 8:15am UTC](https://forum.uipath.com/t/error-loading-python-script-load-python-script-activity-throwing-error/246853/3 "2020-12-23T08:15:03Z")

</div>

Hi @asha_TN

Could you give this post a read and let us know if it helped? 🙂

> [@Load Python Script: One or more errors occurred](https://forum.uipath.com/t/load-python-script-one-or-more-errors-occurred/264497/23):
>
> A bit of extra info here. The Python activities are invoked regardless of context, using only the Windows environment variables. If, for some reason, a certain path is not set or if a certain Python package is only available in a certain environment (e.g. in the Miniconda console you used to install a certain version of Python), then the script execution will fail. As a simple verification, you should be able to run the script using nothing but the Windows Command Prompt. \<path to python.exe\> …

---

<div class="post-metadata">

**Author:** ![vish234](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/vish234/32/331587_2.png) [@vish234](https://forum.uipath.com/u/vish234)\
**Post date:** [September 8, 2022, 1:29pm UTC](https://forum.uipath.com/t/error-loading-python-script-load-python-script-activity-throwing-error/246853/4 "2022-09-08T13:29:17Z")

</div>

Usually, it runs smoothly. You might also try pasting code into the Load Python Script activity’s property. Check to see if that changes anything.
