Feb-27-2019, 07:07 PM
(Feb-27-2019, 06:05 PM)snippsat Wrote:(Feb-27-2019, 05:45 PM)gahhon Wrote: Then in my script, I must add the pyglet.lib.load_library('avbin.dll') pyglet.have_avbin=TrueDo you not understand that this a example of including external dependencies and has nothing to with your build.
But in your post, you were mentioned that pyglet & avbin is for the playing. But what if for Selenium?
You should of course not add pyglet & avbin in your build,why do i even need to explain this
Selenium has at least one external dependencies which is the web-driver,
so a simple solution could eg to have chromedriver.exe together with the build .exe.
I have build Selenium with pyinstaller before(working),but it's long time ago so don't remember all the build steps.
Yes. I did put the chromedriver.exe together with my build.exe and test it on NON-Python machine, but the error is saying
Error loading Python DLL
'.....\python37.dll'
LoadLibrary: Pyinstaller: FormatMessagW Failed.
And I also found this Create a Python executable with chromedriver & Selenium
Will give it a shot by tomorrow.