python-eel / Eel

A little Python library for making simple Electron-like HTML/JS GUI apps
MIT License
6.44k stars 587 forks source link

ModuleNotFoundError: No module named 'jinja2' #533

Closed justvam closed 3 years ago

justvam commented 3 years ago

In pycharm when I run main.py it says: ModuleNotFoundError: No module named 'jinja2', but it's installed. When I run main.py out of pycharm it works without any errors.

Error shows when I add jinja_templates='pages' to eel.start

eel.start("pages\login.html", cmdline_args=["--incognito"], size=(1300, 720), jinja_templates='pages')

Desktop (please complete the following information):

samuelhwilliams commented 3 years ago

Sounds like you haven't set up your python interpreter correctly within PyCharm and it's not using the same one that you're using outside of PyCharm (eg with the dependencies installed)

justvam commented 3 years ago

Thank you so much, It worked!