I am making an PyQt4 application where I need to use selenium. Everything works fine while development but when I exported to single file EXE, by pyinstaller and without console, it produces following traceback error:
[WinError6] The handle is invalid
This doesn't happen when I export it when console = True
(in pyinstaller spec file), The error is produced only without console.
The error produced is in the following line:
driver = webdriver.Chrome(executable_path="chromedriver.exe")
My Specs:
Python : 3.4
Architecture : 64bit
Selenium : 3.6.0
Pyinstaller : 3.3
OS : Windows 10
I googled about 1 hour but couldn't find any solution :(