Python- heroku buildpack瀏覽器跟driver版本不合

匿 匿名 612 次瀏覽 0 個回答

各位大大好

寫了一個用到selenium的爬蟲部署到heroku上

參考這篇文章

https://aishuafei.com/heroku-selenium/

為了在上面能跑瀏覽器 裝了google-chrome 跟 chromedriver 的 Buildpacks:

https://github.com/heroku/heroku-buildpack-google-chrome

https://github.com/heroku/heroku-buildpack-chromedriver

但是在heroku端執行時出現以下錯誤:

selenium.common.exceptions.SessionNotCreatedException: Message: session not
created: This version of ChromeDriver only supports Chrome version 90
Current browser version is 89.0.4389.114 with binary path
/app/.apt/opt/google/chrome/chrome

看起來是 google-chrome 跟 chromedriver 的 Buildpack間版本不合造成的問題

請問可以怎麼調整做法或有其他版本的Buildpack可用?

感謝!

--

我要回答

0 個回答

還沒有人回答,你知道答案嗎?

我要回答

登入會員後即可回答問題。

免費註冊