Git Product home page Git Product logo

Comments (2)

dhowe avatar dhowe commented on June 1, 2024 1

Thanks @miguelgrinberg! To answer your questions, I was using socketio.app for development. But for production wanted to use gunicorn/ gevent. I thought I only installed eventlet later in response to the error message.... but perhaps I had inadvertently installed it earlier, as things seem to work now that I've uninstalled it. Much appreciated...

from flask-socketio.

miguelgrinberg avatar miguelgrinberg commented on June 1, 2024

The link that you included in your question explains this.

The simplest deployment strategy is to start the web server by calling socketio.run(app) as shown in examples above. This will look through the packages that are installed for the best available web server start the application on it. The current web server choices that are evaluated are eventlet, gevent and the Flask development server.

Do you see? You are running gevent as web server instead of letting Flask-SocketIO pick the best choice. But then you aren't explicitly telling Flask-SocketIO to work with gevent, so the package looks at what you have installed in the order of precendence stated above. It finds eventlet in your venv, so it assumes that's what you are using.

Why do you have eventlet and gevent both installed? These are competing packages, you will never use both, it's one or the other. Pick the one you want, uninstall the other and then let's see if there are any errors left.

from flask-socketio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.