Skip to content
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

Closed
asdat3 opened this issue Jul 2, 2020 · 18 comments
Closed

Compile to Exe not working #342

asdat3 opened this issue Jul 2, 2020 · 18 comments

Comments

@asdat3
Copy link

asdat3 commented Jul 2, 2020

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)
blabla

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

@samuelhwilliams
Copy link
Collaborator

samuelhwilliams commented Jul 2, 2020

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 - assuming your Python file is called main.py and your web/HTML directory is called web.

@asdat3
Copy link
Author

asdat3 commented Jul 2, 2020

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

@asdat3
Copy link
Author

asdat3 commented Jul 2, 2020

#255 (comment)
I guess it´s the same issue and he could fix it with this solution, but I dont know what he means with:
"refer to eel's readme" and how to do that

just an Idea

@samuelhwilliams
Copy link
Collaborator

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"

@samuelhwilliams
Copy link
Collaborator

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.

@asdat3
Copy link
Author

asdat3 commented Jul 2, 2020

I dont get step 5
sorry

@samuelhwilliams
Copy link
Collaborator

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.

@asdat3
Copy link
Author

asdat3 commented Jul 3, 2020

There is nothing about excluding there
I still don´t get how to do it

@RahulBadenkal
Copy link

Jus to check, can you go to your exe folder and see if there is an eel folder present with a file called eel.js?
image

@asdat3
Copy link
Author

asdat3 commented Jul 3, 2020

no there is no folder

@asdat3
Copy link
Author

asdat3 commented Jul 3, 2020

blabla2

@RahulBadenkal
Copy link

RahulBadenkal commented Jul 3, 2020

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

@asdat3
Copy link
Author

asdat3 commented Jul 3, 2020

sdasdasawdawdasdawdaw
is this the content of your eel folder too?

@asdat3
Copy link
Author

asdat3 commented Jul 3, 2020

error is still there(eel.js not found)

@asdat3
Copy link
Author

asdat3 commented Jul 3, 2020

My output folder: (program is named "license_client")
asdfiujdsfiusdfuiuhifuhief

I am using -in one file
since when I am using -in one directory and I try to open up the Exe, nothing happens at all

@RahulBadenkal
Copy link

RahulBadenkal commented Jul 3, 2020

Can you copy the eel folder inside licence client folder.

@asdat3
Copy link
Author

asdat3 commented Jul 3, 2020

guess its working now... testing <3

@asdat3
Copy link
Author

asdat3 commented Jul 3, 2020

OMG, it is working, thank you both so much <3
I wish you a wonderful day

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants