前幾天程式碼在Colab執行Selenium正常,但今天(8~)運行會報錯: WebDriverException: Message: Service chromedriver unexpectedly exited. Wd = webdriver.Chrome('chromedriver',options=chrome_options) As we pointed out when we covered OTA-24 last November, Ubuntu 16. # Ubuntu no longer distributes chromium-browser outside of snapĬat > /etc/apt//debian.list /etc/apt/preferences.d/chromium.pref << 'EOF'Ĭolab執行(測試OK): from selenium import webdriverĬhrome_options = webdriver.ChromeOptions()Ĭhrome_options.add_argument('-headless')Ĭhrome_options.add_argument('-no-sandbox')Ĭhrome_options.add_argument('-disable-dev-shm-usage') Ubuntu Touch OTA-1 Focal is a major step for the community-driven UBports project: its the first version of the smartphone OS based on Ubuntu 20.04 'Focal Fossa.' Previous releases were based on Ubuntu 16.04 'Xenial Xerus' and 15.04. "Since Ubuntu 20.04+ no longer distributes chromium-browser outside of a snap package, you can install a compatible version from the Debian buster repository" Colab安裝(請獨立一個儲存格執行以下指令): %%shell Use the followings code: pip install selenium This command is to verify if selenium was installed pyhton -m selenium No module named selenium. If you run into problems, you can find help and answers on our Matrix. 問題原因:the colab system is updated from v18.04 to ubuntu 20.04 LTS recently 處理方式: Welcome to the WebdriverIO documentation.
0 Comments
Leave a Reply. |