tebelorg / RPA-Python

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

Cannot run py file in Dropbox folder - try to run locally or try this troubleshooting #539

Closed eienkisu closed 3 months ago

eienkisu commented 3 months ago

anyone has similar issues?

`Python 3.9.7 (tags/v3.9.7:1016ef3, Aug 30 2021, 20:19:38) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
>>> 
= RESTART: D:\Dropbox\\Documents\abc.py

[RPA][ERROR] - following happens when starting TagUI...

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

It leads to following output when starting TagUI -

[RPA][ERROR] - unknown error encountered
[RPA][ERROR] - use init() before using url()
[RPA][ERROR] - use init() before using keyboard()
[RPA][ERROR] - use init() before using keyboard()
[RPA][ERROR] - use init() before using click()
[RPA][ERROR] - use init() before using click()
[RPA][ERROR] - use init() before using click()
[RPA][ERROR] - use init() before using click()
[RPA][ERROR] - use init() before using click()
[RPA][ERROR] - use init() before using click()
[RPA][ERROR] - use init() before using click()
[RPA][ERROR] - use init() before using exist()
[RPA][ERROR] - use init() before using click()
[RPA][ERROR] - use init() before using click()
[RPA][ERROR] - use init() before using click()
[RPA][ERROR] - use init() before using read()
[RPA][ERROR] - use init() before using count()
[RPA][ERROR] - use init() before using count()`

my dropbox folder is set to be available offline. command prompt has not issue finding the file, but python cannot find file.

this could be the issue? but i still don't know how to fix it. https://answers.microsoft.com/en-us/windows/forum/all/cmd-prompt-returns-the-system-cannot-find-the-file/e8957c9b-504c-49e9-b531-4f267a70b0ff

kensoh commented 3 months ago

Hi @eienkisu I'm not sure if it is Dropbox write access issue. Can you try to copy the file on Dropbox to your Desktop and run that .py file from there to see if it works?

Another thing to try is to run with r.debug(True) and then run below manually to see if there are more details on what is the error. In r.debug(True) mode I think the rpa_python file will remain so you can run below command.

"C:\Users\xxx\AppData\Roaming/tagui/src/tagui" rpa_python chrome
kensoh commented 3 months ago

(closing issue for now, but will look out for your reply if any)