-
Notifications
You must be signed in to change notification settings - Fork 681
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 - improved init() error message with v1.44.1, see if that helps #289
Comments
Hi @klho-sg thanks for raising this issue! Can you try doing I made a change in the error message handling for init() in an updated v1.44 of this package. Hopefully this will show up some meaningful actionable messages on your system. |
Thanks. Unfortunately, it gave the exact same error messages. After the import: /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/rpa.py And after the init: [RPA][ERROR] - following happens when starting TagUI... False There is no change in the output. |
Hi @hokoonleong thanks for your feedback, can you do I made a change in the error message handling for init() in an updated v1.44.1 of this package. Now there should at least be a full command shown, so that you can try running it from command prompt or terminal to see if there is any new clue. Mine shows something like below when I intentionally introduce an error in the TagUI engine -
|
This is the error message: [RPA][INFO] - setting up TagUI for use in your Python environment The following command is executed to start TagUI - It leads to following output when starting TagUI - False Then the next cell produces these errors: [RPA][ERROR] - use init() before using url() [RPA][ERROR] - use init() before using click() False |
Try running below command from where the rpa_python file is created and see if there is more clues what happened - "/Users/user/.tagui/src/tagui" rpa_python chrome |
/Users/user/.tagui/src/tagui rpa_python_1.44.1 chrome |
Hi @klho-sg you have copy or type the wrong command, the command I wrote above is
Type above in the folder where you have the rpa_python file. Usually that is where your Python script is. |
You can copy and paste above line (change user to your username). Hopefully running manually can show up the error. |
Sorry, I misinterpreted your instructions. It appears that Chrome is not where rpa expects it to be. I have solved the problem. I placed Chrome in a non-standard location. I have moved it back to the default folder and it working now. Thanks. |
No probs, thanks @klho-sg for raising this! And improving the error message for failed init() for future users :) |
I installed rpa with
pip install rpa
Then I tried the sample codes but ran into problems immediately.
With this:
I get:
'/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/rpa.py'
Then I tried this:
r.init()
I get:
Please advise. Thanks.
The text was updated successfully, but these errors were encountered: