Skip to content

fix(deps): pin Flask/Werkzeug and add PasteDeploy so datapusher boots#29

Merged
A-Souhei merged 1 commit into
developmentfrom
fix/flask-werkzeug-pins-pasteploy
May 26, 2026
Merged

fix(deps): pin Flask/Werkzeug and add PasteDeploy so datapusher boots#29
A-Souhei merged 1 commit into
developmentfrom
fix/flask-werkzeug-pins-pasteploy

Conversation

@A-Souhei

Copy link
Copy Markdown

Summary

Datapusher fails to boot on the current stack: ckanserviceprovider==1.2.0 leaves Flask unpinned, so pip resolves Flask 3.x + Flask-Login 0.6.0, which are incompatible — Flask-Login imports flask._request_ctx_stack, removed in Flask 2.3 — so the uWSGI app fails to load (ImportError). Separately, the uWSGI --ini-paste entrypoint needs PasteDeploy, which wasn't installed.

Change

Pin a compatible Flask stack and add the missing build dep in requirements.txt:

  • Flask==2.1.3 (still exposes _request_ctx_stack, so Flask-Login 0.6.0 works)
  • Werkzeug==2.1.2 (matching)
  • PasteDeploy (for uwsgi --ini-paste)

Verification

With these pins the datapusher container boots cleanly (WSGI app 0 ... ready, workers spawned, no import errors) and responds to CKAN — verified on the ADR deploy: resource→datastore pushes complete after this fix.

ckanserviceprovider==1.2.0 leaves Flask unpinned, so it resolved to Flask 3.x + Flask-Login 0.6.0 — incompatible (Flask-Login imports flask._request_ctx_stack, removed in Flask 2.3), so the uWSGI app failed to load. Also '--ini-paste' needs PasteDeploy, which wasn't installed. Pin Flask==2.1.3 + Werkzeug==2.1.2 (compatible with the bundled Flask-Login) and add PasteDeploy.
Copilot AI review requested due to automatic review settings May 25, 2026 08:10

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@A-Souhei A-Souhei requested a review from ChasNelson1990 May 25, 2026 08:15

@ChasNelson1990 ChasNelson1990 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@A-Souhei A-Souhei merged commit 59f8f4d into development May 26, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants