tebelorg / RPA-Python

Python package for doing RPA
Apache License 2.0
4.97k stars 670 forks source link

r.init() returns false - possibly missing php or php dependency dll #548

Closed skybadger closed 3 weeks ago

skybadger commented 1 month ago

Using VSCode on Python 3.19-32 for interaction with Matlab. Mat ab not involved in this use case though Running on win11. checked previous error #289

Code excution leading to error ( used at command line) import rpa as r r.init( r.init( visual_automation = True, chrome_browser=False ) [RPA][ERROR] - following happens when starting TagUI...

The following command is executed to start TagUI - "C:\Users\Kane\AppData\Roaming/tagui/src/tagui" rpa_python

It leads to following output when starting TagUI - Unable to load script C:\Users\Kane\Documents\dev\SpikeAssessor\rpa_python.js; check file syntax

phantomjs://code/bootstrap.js:113 in __die

So I run the TAGUI command in a separate command window with the following response. C:\Users\Kane\Documents\dev\SpikeAssessor>"C:\Users\Kane\AppData\Roaming/tagui /src/tagui" rpa_python Unable to load script C:\Users\Kane\Documents\dev\SpikeAssessor\rpa_python.js; check file syntax

phantomjs://code/bootstrap.js:113 in __die

My code is located in C:\Users\Kane\Documents\dev\SpikeAssessor The files that have been created in my folder by rpa are shown in teh attached image : image

Any ideas ? My intent is to try out rpa as a means of driving a local Matlab GUI app that presents a window and child dialogues.

kensoh commented 3 weeks ago

Hi @skybadger the rpa_python.js file has 0 bytes size. The most common cause of this is missing php on your system. Or the dependency for the php is missing.

You can try to look at print(r.tagui_location()) folder under it src/php folder try to run php and see what happens. Need to install an old Microsoft dll file.