Closed mihneamanolache closed 1 year ago
Hi @mihneamanolache - sorry for the slow reply. Have you fixed this yet? Try building it without the --noconsole
and --onefile
flags first and you should be able to understand the errors better. Including the chromedriver
executable feels likely, yes. Have a look at PyInstaller docs directly for how to include extra files.
Thanks, @samuelhwilliams! I will try and let you know what the outcome was.
Are you blocking with .init and .start in your main? It is likely that the last 2 lines of your main statement will be eel.init('folder') and eel.start('file'). That is the basic arena.
I use selenium and eel with pyinstaller without issues. You don't need a pyinstaller reference for Selenium (except any hidden imports), but you do have to point at the driver file on the users machine. There are various ways to package the chromedriver into pyinstaller but I highly recommend just having your software download the latest version from a remote because it updates all the time whenever chrome updates and they are not backwards compatible. (software no longer works every new chrome version)
For compiling eel with pyinstaller the eel documentation is exactly right... if you begin with the example you should be fine.
Hi. I built a small app using
Eel
andselenium
(among others) but when I pack it usingpyinstaller
it simply closes. Here is what my app uses:In order to pack the app I am using the following command (on mac):
python3 -m eel raportarismart.py web --noconsole --onefile --icon=icon.icns
Question: Could you please let me know what I am doing wrong and maybe how I can pack the app? Thanks!
P.S. Since I am using
selenium
, I am guessing that I should somehow include thechromedriver
inPyInstaller
, but I don't really know how. Same should apply to thejson
file used forgspread
.Thanks in advance!
Later edit: This is how the directory looks like, should this help: