New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compile to Exe not working #342
Comments
Can you include the command you're running to package the script please? Do you get this error when you're packaging or when you're executing the packaged app? When packaging an Eel app you need to include some of the core Eel files. If you package the app using Eel directly, this is handled for you. To package your app, run something like |
python -m eel main.py web is printing a success, starting the exe isnt working(doesnt show anything) and I get a war-license_client.txt with loads of modules that are missing |
#255 (comment) just an Idea |
There's a section about how to package Eel apps using pyinstaller here: https://github.com/samuelhwilliams/Eel#building-distributable-binary-with-pyinstaller. It's titled "Building distributable binary with PyInstaller" |
I think the problem probably stems from using auto-py-to-exe. I haven't used that personally - but it might be missing some of the options that are needed which the above guide directs you to use. |
I dont get step 5 |
You might want to read up on the PyInstaller docs here: http://pyinstaller.readthedocs.io/en/stable/ I'm sorry this is difficult at the moment. We've added a hook to PyInstaller that should make it easier to package Eel in the future, but we're waiting for them to release a newer version that includes our changes. |
There is nothing about excluding there |
no there is no folder |
Try copying the folder manually (I think it is in site packages/eel or something) to this directory and run the exe again to see if it works. Also I copy the web folder if it's not already there |
error is still there(eel.js not found) |
Can you copy the eel folder inside licence client folder. |
guess its working now... testing <3 |
OMG, it is working, thank you both so much <3 |
Eel version
Please state the version of Eel you're using.
0.11.0
Describe the bug
When I compile my Scipt to an Exe, I am getting an Error: "eel.js not found"
I am getting the error when I am trying to launch the Exe/packaged app
I am packing via auto-py-to-exe (master) (pyinstaller)
Imports in Python Script
import typing, datetime, discord, os, time, eel from discord.ext import commands, tasks from selenium import webdriver from webdriver_manager.chrome import ChromeDriverManager from selenium.webdriver.common.keys import Keys
OS
OS: Windows
Python ver: 3.7.8
The text was updated successfully, but these errors were encountered: