Replies: 6 comments
-
The code that you show does not come from the documentation, you've made some changes to it. How do you run your application during development vs. production? That's missing in your description of the problem and is very likely the key to your problem. |
Beta Was this translation helpful? Give feedback.
-
I found out this error is thrown when I import flask (not flask_socketio) in debug. |
Beta Was this translation helpful? Give feedback.
-
I suggest you create a brand new virtual environment from scratch and reinstall all your dependencies. Also it wouldn't hurt to drop your IDE and test this in the terminal, to remove all unnecessary components from the problem. |
Beta Was this translation helpful? Give feedback.
-
Yes, I did it. I was a bit wrong. It's working on ubuntu. It doesn't work on mac for some reason. Maybe I have some personal problem. It worked before, but now I can't get it to work even on the earlier flask versions. So maybe it's not flask related |
Beta Was this translation helpful? Give feedback.
-
I've managed to reproduce the error on ubuntu machine. My requirements.txt This happens when flask is imported IN DEBUG: I also tried virtualenv instead of conda. The same error. |
Beta Was this translation helpful? Give feedback.
-
Unfortunately there is nothing I can do to help with this, since you are not finding any problems with this project. I suggest you create a complete description of the issue, along with example code to help with reproducing it and send it to the appropriate project, which at this point I'm not sure if it is Flask, Python or Anaconda. |
Beta Was this translation helpful? Give feedback.
-
I've copied code snippet from docs how to run the socket io app:
But when I run it in prod, it's just stuck on run. Then I tried to run it in debug and it showed endless emitting of python-BaseException error:
flask-socketio==5.0.1
flask==1.1.2
eventlet==0.30.2
ubuntu: 20.04
Beta Was this translation helpful? Give feedback.
All reactions