Problem with existing Libraries after installing RPA.Assets

After installing RPA.Assistant within Visual Studio for use with Robot Framework 2 of my existing libraries (ApplicationLibrary.DesktopLibrary, RPA.Windows ) showed errors when running. I have removed RPA.Assistant as I don’t have a direct need for it right now.

I have managed to resolve the error with ApplicationLibrary.DesktopLibrary by pip reinstalling, I think the installer used an earlier version of selenium. (see below)

Installing collected packages: selenium
Attempting uninstall: selenium
Found existing installation: selenium 4.11.2
Uninstalling selenium-4.11.2:
Successfully uninstalled selenium-4.11.2
ERROR: pip’s dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
rpaframework 18.0.0 requires rpaframework-core<11.0.0,>=10.0.1, but you have rpaframework-core 11.0.5 which is incompatible.
rpaframework 18.0.0 requires selenium<5.0.0,>=4.4.0, but you have selenium 3.141.0 which is incompatible.
rpaframework-core 11.0.5 requires selenium<5.0.0,>=4.6.1, but you have selenium 3.141.0 which is incompatible.
robotframework-seleniumlibrary 6.0.0 requires selenium>=4.0.0, but you have selenium 3.141.0 which is incompatible.
Successfully installed selenium-3.141.0

RPA.Windows unfortunately still has a problem -:

"Error in file ‘C:\RobotFramework\Tests\xxxxx.robot’ on line 21: Importing library ‘RPA.Windows’ failed: ImportError: cannot import name ‘is_numeric’ from ‘RPA.core.windows.helpers’ (c:\users\administrator\appdata\local\programs\python\python39\lib\site-packages\RPA\core\windows\helpers.py)
Traceback (most recent call last):
File “c:\users\administrator\appdata\local\programs\python\python39\lib\site-packages\RPA\Windows_init_.py”, line 8, in
from . import utils
File “c:\users\administrator\appdata\local\programs\python\python39\lib\site-packages\RPA\Windows\utils.py”, line 4, in
from RPA.core.windows.helpers import ( # noqa: F401

Any help would be much appreciated.

What is in your conda yaml?

What does that mean, how did you do installation? Your error indicates rpaframework 18.0.0. Assets are only available from version 23.4.0.

Hi

Sorry I made and error not Assets RPA.Assistant

I used pip to install the RPA.Assistant library “pip install rpaframework-assistant” (Assistant — RPA Framework documentation)( my bad not Assets) library and then added the library name into the settings section of my .robot script.

I have never used conda yaml

Thanks

Hi.

I would really recommend that you start using conda.yaml instead of manually juggling environments. Here are some pointers for where to start learning:

When you start using our tooling, you can focus your work on building robots and not fighting against broken environments, and your robots become much more portable and easier to make work also on other people machines.

2 Likes