Key error "Flask"

46 views
Skip to first unread message

Om Srivastava

unread,
Jan 15, 2022, 7:57:41 AM1/15/22
to PyInstaller
Hello all,

I am very new to coding so I don't know a lot of things and I don't know if I can fix this problem on my own.

I was trying to make my python file into an executable and this file uses a special module name CS50 which I think was easier to handle SQL in. But whenever I try to run the executable, it shows Key error "Flask", It would be really helpful to know what this means.

I don't know how much I should past on this email but here is the error

Traceback (most recent call last):
  File "main.py", line 3, in <module>
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "PyInstaller\loader\pyimod03_importers.py", line 495, in exec_module
  File "cs50\__init__.py", line 20, in <module>
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "cs50\flask.py", line 36, in _exec_module_after
KeyError: 'flask'

I would really like some help and I can send any other piece of code. I would also like to inform I am working on a plain Windows 64 computer
Reply all
Reply to author
Forward
0 new messages