Eel icon indicating copy to clipboard operation
Eel copied to clipboard

Problems Installing Jinja

Open rubenelias opened this issue 10 months ago • 6 comments

I have been trying to install Eel's support for Jinja templates using Python 3.10.0, 3.10.16, and 3.12 using the command: pip install eel[jinja2]; however, I always get a message saying "Not matches found". What can be wrong ?

rubenelias avatar Mar 10 '25 15:03 rubenelias

You can create desktop python/JS/html applications without eel by simply using PyQT6. Here are several examples: https://github.com/non-npc/Serverless-Desktop-Python https://github.com/non-npc/Desktop-Javascript-Python-GameDemo

non-npc avatar Mar 10 '25 17:03 non-npc

You can create desktop python/JS/html applications without eel by simply using PyQT6. Here are several examples: https://github.com/non-npc/Serverless-Desktop-Python https://github.com/non-npc/Desktop-Javascript-Python-GameDemo

@non-npc Thank you. Interesting. Do you know if there is a PySide equivalent?

rubenelias avatar Mar 10 '25 18:03 rubenelias

PySide6=PyQT6, its basically the same thing

non-npc avatar Mar 10 '25 19:03 non-npc

PySide6=PyQT6, its basically the same thing

This seems more complex than trying to use eel. I wish there were a simple tutorial...

rubenelias avatar Mar 10 '25 19:03 rubenelias

you have main.py which loads your html and displays it, in the main.py you have methods which receive data from the frontend javacsript and tell it what to do and vice versa. its simple.

non-npc avatar Mar 10 '25 19:03 non-npc

PySide6=PyQT6, its basically the same thing

This seems more complex than trying to use eel. I wish there were a simple tutorial...

If you look at main.py here https://github.com/non-npc/Desktop-Javascript-Python-GameDemo/blob/main/main.py

The "class Backend(QObject)" holds all the pyqslot methods which are methods you define and call in the javascript code of the html page. So for example to save the game, you call the save_game method which grabs the javascript data from the webview and saves it.

non-npc avatar Mar 10 '25 19:03 non-npc