bndr / pipreqs

pipreqs - Generate pip requirements.txt file based on imports of any project. Looking for maintainers to move this project forward.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pipreqs requires Flask==2.2.2 which causes issues with Werkzeug

ergoodwill opened this issue · comments

Hello,
When I run pipreqs . on my project, it produces a requirements.txt with Flask==2.2.2 without reason it seems, but this version of Flask seems to yield incompatibilities with the newer versions of Werkzeug (similar to https://stackoverflow.com/questions/77213053/why-did-flask-start-failing-with-importerror-cannot-import-name-url-quote-fr).

To reproduce:

  1. Create a file called app.py containing this code
import Flask

if __name__ == "__main__":
    pass
  1. Run pipreqs . in this folder.
    Result: a requirements.txt with the following:
    Flask==2.2.2