https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=896360
I have problems installing flask_socketio (when running flask, I get
"ModuleNotFoundError: No module named 'flask_socketio'"). I tried setting
FLASK_DEBUG=0 (apparently that worked for someone I read) and tried
uninstalling and re-installing (re-installing when installed just gives me
a bunch of "Requirement already satisfied"). I set up a brand new virtual
environment and if it helps below is my pip freeze and the complete error.
Am using python version 3.6.8. (Apologies- I'm a beginner,so maybe there is
too much or incomplete info..)
Click==7.0
dnspython==1.16.0
eventlet==0.25.1
Flask==1.1.1
Flask-SocketIO==4.2.1
greenlet==0.4.15
itsdangerous==1.1.0
Jinja2==2.11.1
MarkupSafe==1.1.1
monotonic==1.5
pkg-resources==0.0.0
python-engineio==3.11.2
python-socketio==4.4.0
six==1.14.0
Werkzeug==0.16.1
---------------------------------------------------------------------------------------
(py2) anna@DESKTOP-CD69S60:/mnt/c/git/project2$ flask run
* Serving Flask app "application.py"
* Environment: production
WARNING: This is a development server. Do not use it in a production
deployment.
Use a production WSGI server instead.
* Debug mode: off
Usage: flask run [OPTIONS]
Error: While importing "application", an ImportError was raised:
Traceback (most recent call last):
File "/home/anna/.local/lib/python3.6/site-packages/flask/cli.py", line
240, in locate_app
__import__(module_name)
File "/mnt/c/git/project2/application.py", line 4, in <module>
from flask_socketio import SocketIO, emit
ModuleNotFoundError: No module named 'flask_socketio'