Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
skybadger opened this issue Oct 28, 2024 · 1 comment
Open
Labels

Comments

@skybadger
Copy link

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
Copy link
Member

kensoh commented Nov 1, 2024

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.

@kensoh kensoh changed the title r.init() returns false r.init() returns false - possibly missing php or php dependency dll Nov 1, 2024
@kensoh kensoh added the query label Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants