RPA.Desktop.Windows error when running via Robocorp App

When attempting to run a small test on a remote environment (Robocorp App) which is running on a remote machine, I receive the following error:

“Importing test library ‘RPA.Desktop.Windows’ failed: FileNotFoundError: [WinError 2] The system cannot find the file specified: ‘UIAutomationCore.dll’”

My understanding was that the Conda environment would load all the dependencies, but perhaps something else in addition on the remote workstation (running Windows 10 Professional).

Here is the simple robot test I am trying to run:

Associated conda.yaml is:

Log File:

Thanks in advance for your help.


There is a upstream update for dependency package comtypes which breaks the library. We are fixing this in the next release but for now you can fix this by putting

comtypes==1.1.7 at the same level with rpaframework==6.* into conda.yaml

  - defaults
  - conda-forge
  - python=3.7.5
  - pip=20.1
  - pip:
      - comtypes==1.1.7
      - rpaframework==6.*

Thank you for prompt reply Mika.

Your solution solved it!


This really helped me, too. Thanks. :+1:t3:

1 Like

Hi, note here also that this dependency has been fixed in rpaframework v7.1.0 so with that and never you no longer need the:
- comtypes==1.1.7

We are in the process of updating templates and our examples as well.

1 Like

@Kari thx for information about fix in 7.1.0. conda.yaml update in VS Code extension 0.6.2 helped

1 Like