kora
kora copied to clipboard
WebDriverException: Message: Service chromedriver unexpectedly exited. Status code was: 1
Hi, Mr. Korakot !
Today 13 Jan 2023. My Colab is facing a strange issue, i.e, it can not pass following script (This Monday 09 Jan was still working) :
################### !pip3 install kora -q
from kora.selenium import wd
########################
with Error:
WebDriverException: Message: Service chromedriver unexpectedly exited. Status code was: 1
I even tried without Kora (as below). it gives the same error:
##########
!pip install selenium !apt-get update !apt install chromium-chromedriver
from selenium import webdriver chrome_options = webdriver.ChromeOptions() chrome_options.add_argument('--headless') chrome_options.add_argument('--no-sandbox') chrome_options.add_argument('--disable-dev-shm-usage') driver = webdriver.Chrome('chromedriver',chrome_options=chrome_options)
###############
Dealing with the same issue here
Sorry for forgetting to update
The problem was auto-resolved by it self a few days ago. (But no time to update here)
Today, I would like to update here, and I happened to see (User: kpennell) reported the same issue (yesterday), therefore I just went to test again, Yes, the same issue comes back again, the ONLY difference is the Status code was: -6 Previously was: 1
Hope this problem can be resolved permanently !
For now, please use the solution here
https://stackoverflow.com/a/75164596/6729010
Thanks, Korakot
This morning, I also noticed similar thread from googlecolab github: https://github.com/googlecolab/colabtools/issues/3347/
, but spent whole morning to solve another problem: "unmet dependencies" (as screenshot-1). I tried many methods from google, and finally realized that my Colab environment is still Ubuntu 18.04 (screenshot-2). But if it still 18.04, then wondering why doesn't the previous methods (kora or non-kora) work.
After duplicate the notebook, the Ubuntu environment change to 20.04, and the NEW method works as expected.
This code https://colab.research.google.com/drive/1cbEvuZOhkouYLda3RqiwtbM-o9hxGLyC
found here https://stackoverflow.com/questions/75164313/selenium-in-google-colab-stopped-working-showing-an-error-as-service-chromedrive/75165082#75165082
seems to work
On Mon, Jan 23, 2023 at 12:53 AM gtpeter @.***> wrote:
Thanks, Korakot
This morning, I also noticed similar thread from googlecolab github: googlecolab/colabtools#3347 https://github.com/googlecolab/colabtools/issues/3347
, but spent whole morning to solve another problem: "unmet dependencies" (as screenshot-1). I tried many methods from google, and finally realized that my Colab environment is still Ubuntu 18.04 (screenshot-2). But if it still 18.04, then wondering why doesn't the previous methods (kora or non-kora) work.
After duplicate the notebook, the Ubuntu environment change to 20.04, and the NEW method works as expected.
[image: image] https://user-images.githubusercontent.com/44351628/213995637-bbc348e5-08e5-4a17-ae6d-d613eb6cc5c6.png
[image: image] https://user-images.githubusercontent.com/44351628/213995288-4878192e-7ac7-400d-8128-b5dd8b77ea92.png
— Reply to this email directly, view it on GitHub https://github.com/korakot/kora/issues/28#issuecomment-1399988570, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIC4IKEXNNLKOMPOZIDGGDWTZBHDANCNFSM6AAAAAAT2B54ZI . You are receiving this because you commented.Message ID: @.***>