GithubHelp home page GithubHelp logo

Comments (2)

rayanth avatar rayanth commented on May 27, 2024

the error on greenlet is because you don't have a C++ compiler installed, or not configured, or not configured correctly that Python can find it.

You're semi-correct on requirements, but I argue against what you're trying to advocate.

Flask is a requirement of Flask-WTF, therefor installing Flask-WTF will install Flask implicitly. Likewise, Jinja is a requirement of Flask, so installing Flask (via Flask-WTF) will install Jinja implicitly... however, the requirements.txt file is very rarely manually created or edited - it's created via pip freeze > requirements.txt which will add every package from the virtual environment to the requirements.txt file. If it were then manually edited, and a new package added later, and the requirements.txt updated with a pip freeze, then the creator has to go back in and manually edit it again... for a small project that may not sound like a big deal, but for a large project, it's a nightmare.

Removing requirements because they are implied as dependencies of other requirements is a good way to have a big problem down the road when a dependency changes. Besides, as the Zen of Python says: Explicit is better than implicit.

from flask-socketio-chat.

miguelgrinberg avatar miguelgrinberg commented on May 27, 2024

A failure when installing greenlet usually means that the greenlet package does not have a wheel package for the version of Python and/or operating system. I have seen this error recently when using Python 3.12, so the interim solution is to use Python 3.11, which installs greenlet from a wheel. Eventually the greenlet team will push wheels for 3.12 and everything will be good again.

from flask-socketio-chat.

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.