Questions tagged [eel]
A little Python library for making simple Electron-like HTML/JS GUI apps.
149
questions
4
votes
1
answer
2k
views
Get directory path in HTML on localhost with python eel?
I am creating a GUI application that requires the path to folder that user selects. I am using eel library of python to achieve the GUI with HTML, CSS and JS. I just want the path to the folder, I don'...
3
votes
1
answer
6k
views
Sending data from Python to Javascript using EEL
I am trying to send data from python to Javascript using EEL and their documentation and it does not seem to work... I keep getting null in my html / js page.
Here is what I have. Basically I want ...
3
votes
1
answer
4k
views
Python3 / JS - How do I handle local file uploads with eel?
I am currently working on a local Electron-like software with Eel.
This software is intended to be bundled as a standalone Windows application that needs to run on the user's local machine.
Within ...
3
votes
1
answer
2k
views
How to pass selected file path to python script via javascript
I'm using eel to create a simple but clean GUI to my project. In this project, I have a custom database which I pickle/update/unpickle when needed. From local webserver, I select the file and click ...
2
votes
2
answers
2k
views
How to use Jinja2 template in eel python?
I want to create an desktop application in python, so I started using the eel library to easily design a nice looking GUI application using html, css & javascript.
I have the following code in ...
2
votes
2
answers
642
views
Python Eel: "Access Denied"
I'm trying to use Eel to make a simple application, but when I run this simple code:
import eel
from os import getcwd
eel.init("web")
eel.start(getcwd() + "\\main.html")
It gives ...
2
votes
1
answer
3k
views
Unable to use both size of the window and application options together with Eel
I have tried to write a simple application to check how Eel works (I am new to Eel) and did some customization for application options and requested for a specific size. The Python code looks like ...
2
votes
3
answers
2k
views
Why my packaged eel app failed to execute : AttributeError: 'NoneType' object has no attribute 'write'
I keep getting this error when trying to execute my app.exe ( generated with
python -m eel [your_main_script] [your_web_folder] --onefile --noconsole)
My code is too long to post here.
Here is the ...
2
votes
2
answers
3k
views
How to pass a json object from a Python function to Javascript with Eel where you can use and manipulate the json
This question may be a bit confusing, so let me give you some background. Eel is a Python module where you can take functions made in Python and use them in Javascript, and vice versa. What I want to ...
2
votes
1
answer
280
views
Error when packaging eel project to an exe
I am building an python project with Eel, and I'm trying to package my program to an exe with PyInstaller as instructed in the documentation. However, I get the following error when I open the .exe:
...
2
votes
1
answer
1k
views
Display python result in html using JavaScript | python eel
I want to send result to JavaScript to display the result in html using eel.
I'm adding the two numbers reading it from JavaScript through html & I want to display the result in html side at the ...
2
votes
1
answer
557
views
Python EEL: Changing button label during script running
I have a script that compiles a bunch of files from diferent directories into one xlsx sheet.
I am creating a front-end to it so I can share it with my coworkers, and while I have print statements ...
2
votes
0
answers
197
views
Eel server crashes when computer sleeps
I'm using Eel version 0.14.0
Whenever I'm running an eel project, once the computer sleeps and I eventually turn it back on, I've found that the command window has closed and when I reload the page, I ...
2
votes
0
answers
607
views
How to access local files in Python Eel?
I'm currently trying to build a standalone file processing Windows application using Python Eel.
The locations for both the source and destination files are defined by the user.
I'm using an iframe to ...
2
votes
1
answer
530
views
Get Output of A Function in Python In a variable
My python script downloads youtube videos using the youtube-dl library. It only prints progress and does not return progress value. I have to pump the progress to my HTML page. Using return() only ...
2
votes
0
answers
3k
views
Asynchronous Python with eel
I am creating a desktop app with the use of eel. However, I am having an issue with running functions at the same time.
The idea of eel is that it allows electron to communicate with Python via JS. ...
1
vote
1
answer
1k
views
Eel and python - how can hide cmd window when the app is running
I have created a simple html page and used it in a python app with the help of Eel
Everything works fine but I want to hide the cmd window that opens up when the python app is running and just show ...
1
vote
2
answers
2k
views
Python: no module named 'bottle-websocket' when running an executable made with PyInstaller, including Eel module
I was playing around with the eel module for Python - gives an opportunity to run HTML + CSS/JS with the python functionality.
Made a simple program, tried to make an executable out of it via ...
1
vote
1
answer
319
views
Bundle R with a python exe application (using Pyinstaller)
I'm working on a python application using Eel framework and I'm using the python subprocess library to execute an R script. It works completely fine on my computer, but not in any other computer since ...
1
vote
1
answer
211
views
cant run a python script from javascript using eel
so for a good time i was searching for a way to run a python script directly from JavaScript and that was when I found something called eel which is supposed to do that so I followed what the ...
1
vote
1
answer
1k
views
Python EEL and Multiprocessing?
im currently facing an issue with eel and multiprocessing opening multiple eel windows when an external python script executes that uses multiprocessing.
Folder Structure
Project[folder]
|...
1
vote
1
answer
654
views
Can't make executable file from eel app in python
When I try to create an executable with auto_py_to_exe it builds fine, but when I run it it throws an error:
Failed to execute script 'main' due to unhandled exception: 'NoneType' object has no ...
1
vote
2
answers
1k
views
Is there any way to add a logo of the GUI application made by using Eel Python?
I am building an GUI application by using Eel Python. The first thing I noticed that -
By default the application has chrome icon that I have to change it. But I didn't find any method to do it. So Is ...
1
vote
1
answer
2k
views
How to load Electron + EEL in python
I am Trying to use Electron browser using EEL. my problem is electron can not load the index.html page.
Python file :
import eel
import eel.browsers
eel.init('templates')
eel.browsers.set_path('...
1
vote
1
answer
432
views
WebSocket DISCONNECT after handshake with Django-EEL
I am trying to use EEL + Django. i found this solution in this GitHub link.
I managed to make Django find the eel.js. but the issue it disconnect just after making WebSocket handshaking.
as below:-
...
1
vote
1
answer
876
views
How to take image input from user in eel python?
I am using eel library to create GUI. I can't get the path using <input type="file"> tag because of security reasons. So please tell me a way to get the image and display it in eel ...
1
vote
1
answer
935
views
Javascript can`t see python function exposed with eel
I used @eel.expose the same way as in the documentation, but it doesnt work.
I am trying to send information about weather from pyowm to javascript, but javascript doesnt recognize python function.
...
1
vote
2
answers
2k
views
not able to pip install eel . - Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output
I'm trying to install eel library for python and I keep getting this message. I have tried upgrading pip but still no luck please help using windows 10, python 3.8 on visualstudio.
distutils.errors....
1
vote
0
answers
34
views
Hide and show window in python eel application
I have a small application in eel that deploys some list of task. I want the window to be hidden after the user finishes the process and to be shown again when certain date time conditions are met. I ...
1
vote
1
answer
36
views
Image not loading before Javascript+Python function ends
I'm using python with eel to communicate with a local website as frontend. My code should display an image on a web page while in the middle of a long python function. The image only appears after the ...
1
vote
0
answers
167
views
eel to executable in Python
I am trying to build an app using eel library (app.py).
My file imports two more .py files from the "utils" folder in the same directory. The html and css files are located in the "web&...
1
vote
0
answers
239
views
Python Eel - Close windows from js when connection to eel is lost
During dev it's a pain to close all the eel windows when you need to restart eel for python code changes.
For development purposes, and since we don't yet have live-reload for python using eel, it ...
1
vote
0
answers
157
views
Python Eel - WebSocket connection to 'wss://cable.coingecko.com/cable' failed:
I have hard time in solving this problem when using Eel. I've used the free CoinGeckoAPI to display widgets in my page (using this template). Everything seemed fine until I checked the console of ...
1
vote
0
answers
137
views
JS doesn't recognize a python function (using eel)
This is my JS function:
async function get_days(){
**b = await eel.get_events('ofek')();**
alert(b);
startPoint = new Date(year, month - 1, 1).getDay(); // 0=Sunday
numberOfDaysInMonth ...
1
vote
1
answer
756
views
Using Eel calling JavaScript function in python only when a condition is True
Describe the problem
I am trying to call a JavaScript function but only when a if condition evaluates to True in Python. I'm working on a Music player project with Pygame and Eel, I want to call the ...
1
vote
1
answer
197
views
How to click a Button automatically with Javascript from Python using Js2py
I am using eel in order to connect the frontent(HTML,CSS and JS) and backend with Python.
I want to click the button element automatically when a if condition states to true in python.
As far as I've ...
1
vote
0
answers
1k
views
How to close eel? or start code with a separate process?
I want to close the browser and to continue the code.
def run():
@eel.expose
def end_browser():
print("YES2")
eel.end()
eel.close()
os._exit(0)
...
1
vote
0
answers
126
views
Python Capture Frame without stopping VideoStream
Video Stream
Video Frame Capture
Is there any way to get these both to run simultaneously? Like making the video stream run in the bg or something.
Video Stream:
def gen(camera):
while True:
...
1
vote
2
answers
172
views
cant convert .py to .exe using pyinstaller
Actually im working on a face recognition system which contains few sound files few folders and a hand full of python files. Im using EEL to include html and CSS to the front end. Now i want to know ...
1
vote
0
answers
410
views
Uncaught ReferenceError: require is not defined with EEL
I am Trying to run html page with electron + eel.
I have successfully loaded the webpage + eel.js.
My Problem is whenever I try to use require module in the javascript of the HTML page. it gives me ...
1
vote
0
answers
354
views
How to pass variable to html using jinja2 in EEL
For those who don't know EEL is python library that allows you to build desktop apps using web technologies. It's similar to Electron JS.
Is it possible to pass variable to jinja2 in html file from ...
1
vote
1
answer
375
views
not allowed to load local resource - Eel Python
When passing across a file location from eel to JavaScript, the image fails to load due to this error:
index.html:1 Not allowed to load local resource: file:///C:/Users/dave/Desktop/tools-and-utensils....
1
vote
0
answers
427
views
Python Eel. Python function does not start using from javascript
Sorry for my English.
I am want to study python library (eel). I am wrote the following code as in the example from the documentation:
The "index.html" file is located in the "Web" ...
1
vote
0
answers
217
views
Is it possible to use the native desktop application made in python in android?
Is it possible to create the Android application using the eel framework Because i have create the desktop application using eel and now need to make the android application can i make it.
1
vote
1
answer
1k
views
How to communicate between multiple javascript files in python eel
I am trying to make a HTML app using eel. In this app I have two javascript files and want to make communication between my python main.py file. It will get a string from "show()" and "...
1
vote
1
answer
376
views
Python: EEL and SELENIUM / Cannot create installer
Could you please tell me how I can make a standalone pyinstaller app / what I should write in setup.py in oreder to make my app work with pyinstaller. Here is what my python script uses
from selenium ...
1
vote
0
answers
179
views
How to acces my EEL app from the internet?
I have my EEL app running great in my LAN, and I would like to get an acces from the internet with my nginx reverse proxy (letsencrypt docker image).
I saw that EEl use a bottle server and that I ...
1
vote
1
answer
476
views
How to send return value to JS without stopping Python function
I am using the eel module to communicate with Javascript (My Web UI). I have a loading screen while the python script is running. So I need my user to know what is the progress in python side while in ...
1
vote
1
answer
172
views
Pyinstaller : module could not be found error (Pandas)
I was getting a 'Failed to load script error', when I checked it with -F the cmd line says
File "site-packages\pandas\core\window\ewm.py", line 3, in module
ImportError: DLL load failed while ...
1
vote
0
answers
310
views
PHP sqlite3 database dropdown menu using python eel
I am trying to printing values in dropdown menu. the values printing on console, but doesn't printing on html
here is my code:
<select>
<?php
$db = new SQLite3('Clients.db');
$results = ...