Could not find a part of the path 'C:\Users\user\Documents\OpenRPA\extensions'

Context: I have freshly installed OpenRPA on Win11.

I tried adding scripting support which I added during the installation process. I am using the embedded python. I tried to install some libraries via pip install, but it failed with an error:
Could not resolve dependencies for loaded projects: Could not find a part of the path 'C:\Users\user\Documents\OpenRPA\extensions'.

That error is related to nuget, not python.

OpenRPA uses an embedded version of python by default, so packages must be installed using the pip install activity or from inside the local python folder.
See here as well

Check the logs for any errors if using the activity, or run pip install from command line as explained in the link and see if you get any errors that can help.

1 Like

Hi @Allan_Zimmermann, thank you for your response, is there any documentation you can refer me to, on how to do the pip install with the embedded python? Thank you!

Found the solution. Since the embedded python version is 3.7.3, I just needed to find the specific version of the package that’s compatible with python 3.7.3.

I hope someone would work on updating the python version to a much latest one, since 3.7.3 is reaching its end-of-life. Cheers!

OpenRPA is using Python.Included for handling the embedded Python and giving access to the runspace so we can inject code and read/write variables. This was meant for a more “integrated” solution, over simply calling a Python file using your default Python interpreter (and you can still do that). The downside is, we are limited in what version we can support, and not all Python modules will work with this (since GUI libraries are excluded from the embedded version).

I originally used IronPython. I cannot remember why I looked for an alternative, but there were some issues with it. Since Python.Included is no longer being updated, it might be worth looking into IronPython again.

If you are serious about your Python scripts, you might consider a much better solution. You can use agents to run code in a lot of programming languages (currently 11), then you control both the version of Python and also get environment isolation between each script you run. (See more here here and here).

1 Like

I also encountered this problem. After using the latest version of OpenRPA, the same error occurs during startup. The Python script can still run, but it is extremely slow. The code that originally took only 1 second to execute now takes 5 seconds or even longer.

was the python version changed ?
Just for fun, i also made a version with 3.11 ( OpenRPA.py.3.11.msi ) can one of you try that version and see if python is faster with that ?

1 Like

My Python version is 3.7.3. When I run the program using the latest version, I get the error message “Could not find a part of the path ‘C:\Users\user\Documents\OpenRPA\extensions’”, and then the program runs very slowly. Similarly, I’m using the same version of OpenRPA on another computer, but it has no error messages and runs very fast. So I suspect that the slow running speed might be related to this error message.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.