selenium-wire icon indicating copy to clipboard operation
selenium-wire copied to clipboard

Error pyinstaller .exe with undetected-chromedriver

Open FranciscoPalomares opened this issue 3 years ago • 2 comments

If you try to generate an executable using seleniumwire together with undetected bot, it does not work. I have tested it by adding the seleniumwire hook to pyinstaller. I have also tried downloading version 3.0.3 and it doesn't work either, it doesn't start the browser. The code works correctly.

FranciscoPalomares avatar Feb 03 '22 11:02 FranciscoPalomares

You you share the confit you’re using. We’ve had a few issues raised against pyinstaller so be good to get this resolved.

wkeeling avatar Feb 03 '22 17:02 wkeeling

i faced same issue as well, i tested my script and everything was working well but not when i compiled it with pyinstaller, when the exe attempts to launch the browser, it opens something else ( like another application ), it sounds strange but not until you try it and see it for yourself

i'm using it like this

from seleniumwire.undetected_chromedriver import v2 as webdriver

python version: 3.9

dannywayn avatar Mar 29 '22 05:03 dannywayn