Issue with UiPath Python Scope

I’ve installed python using anaconda. However, there seems to be an issue when it comes to the ‘python scope’ activity. I’ve set the correct python path (C:\Users\username\anaconda3), target (x64), and version (>=3.10) yet when I run the file it hangs when executing the python scope.

I’ve tried creating a new virtual environment and installing UiPath via pip and it still doesn’t work.

Hi @rose00, welcome to the Community.

As per UiPath’s official documentation, Python Scope supports the following Python versions:

  • For Windows - Legacy projects, 2.7, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, and versions equal to or greater than 3.10.
  • For Windows projects, 3.6, 3.7, 3.8, 3.9, and versions equal to or greater than 3.10.

Also, make sure you have installed the latest UiPath.Python.Activities package in your project.
If this doesn’t solve the issue, try running the py script outside of the workflow. This can help you isolate the issue and determine if it is related to UiPath or Python.

Hope this helps,
Best Regards.

The python script works outside of UiPath and I’ve installed UiPath.Python.Activities v1.6 package. The issue lies on the python scope activity as it hangs whenever I encounter it. I inserted a write line activity before the python scope to make sure. Does python installed via anaconda work with UiPath?

Hi Rose,
Have you been able to find a solution ? I have the same issue… When I try to use Python scope on a server that has only Python installed in works perfectly, but while I try to do the same where Anaconda is installed it throws error.