Giter Club home page Giter Club logo

graceengine's People

Contributors

asutoshpadhi avatar dependabot[bot] avatar juvekaradheesh avatar tanvesht avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

graceengine's Issues

A cleaner requirements.txt needed

The external libraries that the project uses -
spacy
nltk
anytree
flask
flask-RESTful
flask-CORS

This is to the best of my knowledge. Though this should be tested on a fresh conda environment to see if it works before sending a PR.

@kaushal-py Just a few intuitions before getting into the topic. pip freeze is a command used to list out the particular version of a library which you have installed in your local machine. So that's why it shows the == sign as it shows the version which has been installed in your particular local machine.

Now when you write the requirements.txt file only write the files which are key to your particular project. For example, if I am working on a project where I did everything using TensorFlow and not used PyTorch but PyTorch is installed on my local machine and I include that into the requirements.txt it's unnecessary to download for a particular user.

So coming back to your project, always try to use >= sign when writing the requirements.txt as it will always install the latest version of a particular library. But do keep in mind that certain libraries after getting update may have changed earlier methods, generally doesn't happen like this as decrypted methods are still usable. I also see that you have included all the Flask dependencies which by default get installed when you install flask so this is why also we don't copy the entire pip freeze

I hope this helps. If you want just tell me the list of libraries which are absolutely necessary for your project I will make the changes in the requirements.txt accordingly.

Originally posted by @TanveshT in #25 (comment)

Updated requirements.txt

Description
First of all, great project and initiative.
While setting up the project, I had to update two of the package dependencies in requirements.txt in order to run the WSGI server successfully. I would have raised a PR for this, but I don't have the repo forked.

Platform
Ubuntu 18.04 LTS Bionic (WSL2)
Python3 3.6.9 + Pip3 9.0.1

Errors

# Werkzeug 0.14.1 causes this
from ..http import dump_csp_header
ImportError: cannot import name 'dump_csp_header' from 'werkzeug.http' (\fakepath\werkzeug\http.py)

Suggested fixes
Change the following in requirements.txt (these are minimum possible to make it work, I would recommend finding latest possible versions that keep backward compatibility with your code)
For MarkupSafe, its a bump to next stable version, it also fixes install on WSL2 (as 1.0 .whl is not available on PyPI)

Werkzeug==0.16.1
MarkupSafe==1.1.1

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.