# (Error invoking Python method)

**URL:** <https://forum.uipath.com/t/error-invoking-python-method/715824>\
**Category:** Studio\
**Tags:** python, activities\
**Created:** [January 30, 2024, 4:09am UTC](https://forum.uipath.com/t/error-invoking-python-method/715824 "2024-01-30T04:09:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nayanaswamy152](https://avatars.discourse-cdn.com/v4/letter/n/58956e/32.png) [@nayanaswamy152](https://forum.uipath.com/u/nayanaswamy152)\
**Post date:** [January 30, 2024, 4:09am UTC](https://forum.uipath.com/t/error-invoking-python-method/715824/1 "2024-01-30T04:09:35Z")

</div>

![Screenshot 2024-01-30 092724](https://global.discourse-cdn.com/uipath/original/4X/0/b/d/0bd4e5b79e6c6a24150abf7a0454a95c3b985c7b.png)  
Hi ,Im Getting Error like [Invoke Python Method: One or more errors occurred. (Error invoking Python method)]  
Even though the python code is working fine individually but its not working through UiPath

---

<div class="post-metadata">

**Author:** ![Vinit\_Mhatre](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/vinit_mhatre/32/517102_2.png) [@Vinit\_Mhatre](https://forum.uipath.com/u/Vinit_Mhatre)\
**Post date:** [January 30, 2024, 5:07am UTC](https://forum.uipath.com/t/error-invoking-python-method/715824/2 "2024-01-30T05:07:39Z")

</div>

> [@nayanaswamy152](#):
>
> Hi ,Im Getting Error like [Invoke Python Method: One or more errors occurred. (Error invoking Python method)]  
> Even though the python code is working fine individually but its not working through UiPath

Hi @nayanaswamy152 ,

Is your Python code running manually on another interpreter?

If yes, then check for Dependencies, Script error like “Path” , “string is going in correct format or not”

Thanks,  
Vinit Mhatre

---

<div class="post-metadata">

**Author:** ![smarthari1997](https://avatars.discourse-cdn.com/v4/letter/s/e36b37/32.png) [@smarthari1997](https://forum.uipath.com/u/smarthari1997)\
**Post date:** [January 30, 2024, 5:28am UTC](https://forum.uipath.com/t/error-invoking-python-method/715824/3 "2024-01-30T05:28:53Z")

</div>

hi @nayanaswamy152  
can you verify these steps When you encounter the “One or more errors occurred. (Error invoking Python method)”

1. Check Python Environment  
Ensure that the Python environment used by UiPath is correctly configured. Verify that the Python version specified in UiPath matches the version where your Python script works.

2. Check Python Path  
Make sure that the Python path is set correctly in UiPath. You can set the Python path in UiPath Studio under “Manage Packages” \> “Settings” \> “Python” \> “Path.”

3. Check Python Script  
Ensure that the Python script you are trying to invoke from UiPath is error-free and runs successfully independently. Check for any dependencies that might be required by the Python script.

4.Log Output  
Add logging statements or print statements in your Python script to provide more details about the execution. The output generated by the Python script can be captured and logged in UiPath for further analysis.

5.Permissions  
Ensure that the UiPath process has the necessary permissions to execute the Python script. This includes both file system permissions and any external dependencies that the script might be accessing.

6.Python Activity Version  
Ensure that you are using the correct version of the “Python Scope” and “Invoke Python Method” activities. UiPath frequently updates its activities, and using an outdated version may cause compatibility issues.

7.Use Full File Paths  
If your Python script relies on file operations, use full file paths in your script rather than relative paths. The working directory may vary when the script is executed from UiPath.

8.Python Libraries/Modules  
If your Python script uses external libraries or modules, make sure that they are installed in the correct Python environment used by UiPath. You can use the `pip` activity in UiPath to install Python packages.
