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

Error during job search #9

Closed
kashm07 opened this issue Sep 14, 2023 · 9 comments
Closed

Error during job search #9

kashm07 opened this issue Sep 14, 2023 · 9 comments

Comments

@kashm07
Copy link

kashm07 commented Sep 14, 2023

Getting this error. Could you help me figure out what's going wrong?

An error occured. Please document & report it to the developer @https://github.com/wimpywarlord/appliFLY/issues
Message:
Stacktrace:
0 chromedriver 0x0000000100c77638 chromedriver + 5002808
1 chromedriver 0x0000000100c6ea53 chromedriver + 4966995
2 chromedriver 0x000000010081fa57 chromedriver + 449111
3 chromedriver 0x0000000100865d05 chromedriver + 736517
4 chromedriver 0x0000000100865ec1 chromedriver + 736961
5 chromedriver 0x00000001008a9f04 chromedriver + 1015556
6 chromedriver 0x000000010088c41d chromedriver + 893981
7 chromedriver 0x00000001008a7391 chromedriver + 1004433
8 chromedriver 0x000000010088c1c3 chromedriver + 893379
9 chromedriver 0x0000000100857df9 chromedriver + 679417
10 chromedriver 0x0000000100858fde chromedriver + 683998
11 chromedriver 0x0000000100c342d9 chromedriver + 4727513
12 chromedriver 0x0000000100c392de chromedriver + 4747998
13 chromedriver 0x0000000100bf72c9 chromedriver + 4477641
14 chromedriver 0x0000000100c3a02d chromedriver + 4751405
15 chromedriver 0x0000000100c0d0ec chromedriver + 4567276
16 chromedriver 0x0000000100c577f8 chromedriver + 4872184
17 chromedriver 0x0000000100c579b7 chromedriver + 4872631
18 chromedriver 0x0000000100c67a1f chromedriver + 4938271
19 libsystem_pthread.dylib 0x00007ff819c661d3 _pthread_start + 125
20 libsystem_pthread.dylib 0x00007ff819c61bd3 thread_start + 15

Process finished with exit code 0
WhatsApp Image 2023-09-13 at 6 01 25 PM

@wimpywarlord
Copy link
Owner

This is a possible macOS. Ref.

Please specify your macOS version and chrome version for further investigation.

@wimpywarlord
Copy link
Owner

Error has been spotted in the macOS Ventura 13.5.1

@wimpywarlord
Copy link
Owner

Tested on Ventura 13.2 and 13.3

@kashm07
Copy link
Author

kashm07 commented Oct 18, 2023 via email

@wimpywarlord
Copy link
Owner

Solution

This turned out to versioning issue, between selenium driver, python and chrome.

I found an error in the script logs saying:

ERROR:page_load_metrics_update_dispatcher.cc(194)] Invalid first_paint error using Selenium Python ChromeDriver

Upon surfing the web, I found this thread: https://stackoverflow.com/questions/75830184/errorpage-load-metrics-update-dispatcher-cc194-invalid-first-paint-error-usi

It talks about how the above error message indicates that there is a mismatch between the binary versions you are using.

On a more deeper level

As per the [comment](https://bugs.chromium.org/p/chromedriver/issues/detail?id=3341#c1) within the [discussion](https://bugs.chromium.org/p/chromedriver/issues/detail?id=3341):

The supported configuration is to always match the version between Chrome and ChromeDriver - so when you are using Chrome 80, you should use Chrome 80. It is also possible to run ChromeDriver N with Chrome N+1, but this will always generate the warning you see. Most operations will complete successfully, but it is not the recommended approach.

The solution is to upgrade ChromeDriver to version 80: https://chromedriver.chromium.org/downloads

This is understandable because, most of the operations were working fine in the script, but some operations were acting wonky.

The straight and simple solution is to

You need to ensure:

  • ChromeDriver is updated to the latest version - as of 21st October 2023 - that is 118.0.XXXX.X family

Go to Google’s official driver support website: https://chromedriver.chromium.org/downloads and then go to the downloads section : https://googlechromelabs.github.io/chrome-for-testing/

Download the latest stable version of the chrome driver according to your operating system : https://googlechromelabs.github.io/chrome-for-testing/#stable

Copy the absolute path to the chrome.exe file inside the downloaded chrome driver folder.

Look into line number 61 in [appliFly.py](http://appliFly.py) file and uncomment as well as update the absolute path to the chrome driver which you just downloaded from the above mentioned link.

```
# You can use other drivers like Firefox, Edge, etc.

  # ____________ If Facing Jobs 0 Jobs found issue ________________
  # Absolute Path to Chrome Driver Example: C:\Users\ASUS\Downloads\chrome\chrome.exe
  # chromeDriver = webdriver.Chrome(executable_path=r"Absolute Path to the Chrome Driver")  # Uncomment this if facing 0 jobs found issue
  # ____________ No Erros ____________________
  chromeDriver = webdriver.Chrome()  # Comment this out if facing 0 jobs found issue
```
  • Chrome Browser is updated to the latest version - as of 21st October 2023 - that is the 118.0.XXX.X family

Download the latest version chrome or update the existing version to the latest version. Here is how: https://support.google.com/chrome/answer/95414?hl=en&co=GENIE.Platform%3DDesktop

Therefore re-clone the repository from Github and do a fresh pip install -r requirements.txt

@wimpywarlord
Copy link
Owner

Hey, @kashm07 I would be more than happy to assist you with this over a call if you are unable to figure it out.

Shoot any questions that you may have.

@wimpywarlord
Copy link
Owner

Closing, as resolved

@kashm07
Copy link
Author

kashm07 commented Oct 30, 2023 via email

@kashm07
Copy link
Author

kashm07 commented Dec 13, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants