bndr / bndr/pipreqs

pipreqs requires Flask==2.2.2 which causes issues with Werkzeug

Open
#453 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
7.5k
Forks
424
PR merge metrics
No merged PRs in 30d

Description

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
```

2. Run `pipreqs .` in this folder.
Result: a requirements.txt with the following:
`Flask==2.2.2`

Contributor guide

Open the contributing guide

Research direction

The reproduction uses app.py and generates requirements.txt; start by running pipreqs . in that folder and tracing how the Flask import is resolved and pinned. No test file is named in the issue, so verify the generated requirement directly and ensure the reported Flask/Werkzeug incompatibility is no longer introduced.

Written by the indexing model from the issue text.

Assessment

Tech stack
flask, python
Domain
cli, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.