Skip to content
New issue

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

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

Already on GitHub? # to your account

ERROR - can't find module webpage - pending checks and replication details #1163

Closed
FooZhiRuiHSC opened this issue Jan 13, 2022 · 7 comments
Closed
Assignees
Labels

Comments

@FooZhiRuiHSC
Copy link

Hi, I recently reset my desktop and re-installed tagui and python. Was running my RPAs and encountered "ERROR - can't find module webpage" on several of my scripts.

Attached is a sample of 2 scripts. "Globe3Boot.tag" currently works for my desktop, while "SingtelWebsiteScrapper.tag" does not work and immediately gives the above error.

How should I go about troubleshooting this?

taguiScripts.zip

@kensoh
Copy link
Member

kensoh commented Jan 14, 2022

Hi @FooZhiRuiHSC, it seems that SingtelWebsiteScrapper.tag wasn't meant to be run on its own, the first line is already referring to a variable website. Maybe there are other dependency like tagui_local.csv not included.

I haven't come across this error message before, some ideas to try -

  1. delete TagUI by removing the tagui folder
  2. uninstall RPA for Python and delete its tagui or .tagui folder under r.tagui_location() folder
  3. install TagUI and RPA for Python again
  4. run tagui update to make sure you have the latest version

The error message isn't from TagUI codebase, probably in one of the components used by TagUI.

@kensoh kensoh self-assigned this Jan 14, 2022
@kensoh kensoh added the query label Jan 14, 2022
@kensoh kensoh changed the title ERROR - can't find module webpage ERROR - can't find module webpage - pending checks and replication details Jan 14, 2022
@FooZhiRuiHSC
Copy link
Author

Hi,

I am not able to share the tagui_local.csv file with you, as it contains confidential records. However, I can confirm that the file exists and is in the same folder as the .tag script.

I uninstalled tagui as you suggested. Was not aware that there is a RPA for Python package. I reinstalled tagui and installed RPA for Python via pip install rpa. When running the .tag script, the "ERROR - can't find module webpage" still appeared.

I found my old tagui installer (version 6.14) and reintalled tagui again with this version. This time the SingtelWebsiteScrapper.tag script runs. Was there a change in syntax after 6.14, or some other notable tweak that might have broken my old script?

@kensoh
Copy link
Member

kensoh commented Jan 14, 2022

I see.. Between v6.14 and v6.105 there are a lot of changes and many bug fixes. It might be a change that fixes a bug on incorrect syntax. But it is hard to know the root cause because I cannot replicate the error on my side. I can only say that this error message is not part of TagUI source code, so it must be a component.

But I cannot find the word webpage in your script, so I'm not sure where troubleshooting can be done. You can try joining the weekly Zoom Q&A call next week to see if any more clues can be found - #914

@kensoh
Copy link
Member

kensoh commented Jan 14, 2022

Adding on, when I try removing the website first line in your file and replace with dummy value so that I can run, it runs normally and does not throw the module webpage error that happens immediately for you.

RPA:taguiScripts kensoh$ tagui SingtelWebsiteScrapper.tag 

START - automation started - Fri Jan 14 2022 15:59:00 GMT+0800 (+08)
https://google.com - Google

@FooZhiRuiHSC
Copy link
Author

Interestingly, when I replace all the variables with static values, the "ERROR - can't find module webpage" still occurs. This is even the case when I use https://google.com like you did.

What I did observe is that when I start the script from cmd, Chrome opens and remains in the about:blank page. The website never loads and after a few seconds Chrome closes and cmd returns the ERROR - can't find module webpage

If your hypothesis is correct and a component is missing, what exactly is this component? I've uninstalled tagui and tried both installation methods on the tagui installation guide (using the executable, and using the zip file). I've also installed OpenJDK, Chrome, and added tagui/src to path.

I'll jump on to the zoom call to discuss further.

@kensoh
Copy link
Member

kensoh commented Jan 20, 2022

Sure, this is a very interesting error! Today I'll be at a TagUI study session by Anders, a RPA influencer.

But my team-mate Ruth will be on the call. For next week both of us will be on the Zoom call.

From above data points, it is almost as if some component is missing from Chrome itself, and the error is somehow returned from Chrome. Because TagUI hasn't yet done anything on Chrome to automate anything. Let's find out.

@kensoh
Copy link
Member

kensoh commented Jan 30, 2022

Closing this - issue found to be the use of Object as the header in tagui_local.csv. This is a reserved keyword for JavaScript. Not adding to documentation for now because this is rare and tends to confuse users than help. Fyi @ruthtxh

@kensoh kensoh closed this as completed Jan 30, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants