undetected_chromedriver attributeerror ‘chrome’ object has no attribute ‘backend’

Posted in :

很神奇遇到這一個 bug, 有人貼到 seleniumwire 的 github:
https://github.com/wkeeling/selenium-wire/issues/469

執行畫面:


上面的人,另外貼文在這裡:
https://github.com/ultrafunkamsterdam/undetected-chromedriver/issues/498

他說:

yep I actually also need this. But I’m getting issues with seleniumwire.undetected_chromedriver.v2 when packing the app with pyinstaller.

跟我一樣,也是pyinstaller + seleniumwire. 雖然在 pyinstaller 裡使用 –hidden-import selenium 一樣無解。後來仔細看看訊息,原來是更之前就有錯誤。

把 source code 裡的 /seleniumwire/ca.crt 和 /seleniumwire/ca.key 補進去執行檔裡,就解決了。

我在Win10 上複製出來問題,並解決了,神奇的是,在Win11 和 Win7 上居然不會有問題。

2 thoughts on “undetected_chromedriver attributeerror ‘chrome’ object has no attribute ‘backend’

  1. 你好,请问“把 source code 裡的 /seleniumwire/ca.crt 和 /seleniumwire/ca.key 補進去執行檔裡” 具体怎么操作?我已经找ca.crt 和 ca.key ,下一步是把这两个文件放在哪里嘛?万分感谢

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *