speedyg0nz / MagInkCal

E-Ink Magic Calendar that automatically syncs to Google Calendar and runs off a battery powered Raspberry Pi Zero
Apache License 2.0
3.08k stars 105 forks source link

ERROR - Message: Unable to obtain driver for chrome using Selenium Manager #21

Open laurkaarna opened 11 months ago

laurkaarna commented 11 months ago

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 commented 8 months ago

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 commented 8 months ago

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 commented 8 months ago

Try downgrading Selenium to 4.6

phalse commented 7 months ago

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.