Robotic Process Automation for Python – Installation

RPA is a way of automating processes that do not have the use of an API. RPA can be used to automate repetitive tasks on; websites or desktop applications.

I thought this would be a good way of adding IP addresses to my Scrapli & Flask Project without using an API (as I haven’t added on yet).

I have used RPA for Python which can be found here: https://github.com/tebelorg/RPA-Python
The below installation guide and sample scripts should be enough to get this setup and tested.

Installation: Windows

I had a number of problems when installing and getting it to run first time on Windows. So I hope this is of some use.

Error 1: TagUI Not Installed

TagUI was not being correctly installed. As I understand it, is what the Python package uses as its API. If this was not installed then it cannot work.

RPA does try to download and install the TagUI software in the location C:\Users\USERNAME\AppData\Roaming.
However this did not work for me and I needed to manually install it.
https://github.com/tebelorg/TagUI#set-up
Select the version you are using. My case it was Windows.
I then extracted the file to C:\Users\USERNAME\AppData\Roaming\tagui

The directory structure should be: C:\Users\USERNAME\AppData\Roaming\tagui\src\tagui.cmd
This will be important later!

Error 2: Chrome in Wrong Location

Chrome default location for installation is: C:\Program Files\Google\Chrome\Application\chrome.exe
TagUI had it in C:\Program Files (x86). This gave me a similar error to the one above.

To resolve I just updated the location in the tagui.cmd
This is why it is important to have the paths all correct when installing manually.

Now web automation for rpa should work. Test it out!

Error 3: Install JDK

Now the main application is installed, we need to add in the additional JDK software too. this will allow for visual automation such as mouse/keyboard automation.
Windows download: https://corretto.aws/downloads/latest/amazon-corretto-8-x64-windows-jdk.msi

Once installed try to run a script. On my first run I did receive an error similar to the one below.
Neither jython nor jruby available, IDE not yet usable with JavaScript only

After running this a second time, no more error everything worked fine.

Leave a Comment

Your email address will not be published. Required fields are marked *