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 - Message: Unable to obtain driver for chrome using Selenium Manager #21

Open
laurkaarna opened this issue Aug 5, 2023 · 4 comments

Comments

@laurkaarna
Copy link

Cant get the script to run due to chromedriver error. I see you have fixed that in render.py due to latest selenium updates but for me this doesnt seem to work. Followed your instructions and used legacy version of rpi OS. Checked $PATH and /usr/lib is present and chromedriver is located at /usr/lib/chromium-browser/chromedriver in my installation.

Running RPI3. Also dont have a PiSugar installed at the moment but that shouldnt stop it from running and should not be related to this error at the moment.

Error log:

2023-08-06 00:24:42,384 INFO - Starting daily calendar update
2023-08-06 00:24:42,425 INFO - Invalid time sync command
2023-08-06 00:24:42,462 INFO - Invalid battery output
2023-08-06 00:24:42,464 INFO - Battery level at start: -1.000
2023-08-06 00:24:42,465 INFO - Time synchronised to 2023-08-06 00:24:42.464773+03:00
2023-08-06 00:24:42,757 INFO - Retrieving events between 2023-08-01T00:00:00+03:00 and 2023-09-04T23:59:59.999999+03:00...
2023-08-06 00:24:43,131 INFO - No upcoming events found.
2023-08-06 00:24:43,132 INFO - Calendar events retrieved in 0:00:00.665384
2023-08-06 00:24:43,137 ERROR - Message: Unable to obtain driver for chrome using Selenium Manager.; For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors/driver_location

2023-08-06 00:24:43,139 INFO - Completed daily calendar update
2023-08-06 00:24:43,139 INFO - Checking if configured to shutdown safely - Current hour: 0
@benbigbeard
Copy link

experiencing the same error on a Raspberry pi zero (v1) W. tried older version as advised but same messages as per laurkaarna. also recieving illegal action on chromium

@mygrexit
Copy link

mygrexit commented Nov 7, 2023

I would advise against installing that project. Just look for alternatives since i don't see the owner fixing it. The infos on the readme are not up to date and some of the code is deprecated. The creator has advised to use Inkycal instead.

@gavira
Copy link

gavira commented Nov 8, 2023

Try downgrading Selenium to 4.6

@phalse
Copy link

phalse commented Nov 16, 2023

I solved this by compiling Python3.9 from source and splitting up the code into two phases:

  1. Gather info from APIs and write image
  2. Open and process image to display

The first phase uses Python3.9, the second uses the Python3 available in the mirrors for buster.
Compiling from source on the Pi Zero W is slow, but it works.

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

5 participants