Skip to content

Conversation

@Alok-kumar-priyadarshi
Copy link
Contributor

@Alok-kumar-priyadarshi Alok-kumar-priyadarshi commented Jan 31, 2026

fix(deps): update psycopg2-binary pin for Python 3.12 support

SUMMARY

The PostgreSQL optional dependency pins psycopg2-binary==2.9.6, which does not provide pre-built wheels for Python 3.12. This causes pip install "apache-superset[postgres]" to fail on the official Python 3.12 Docker image because pip falls back to a source build without available build tools.

This change updates the pin to psycopg2-binary>=2.9.9, the first release that includes Python 3.12 wheels, restoring successful installation without modifying Docker images or runtime behavior.

TESTING INSTRUCTIONS

  1. Use the apache/superset:6.0.0-py312 Docker image.
  2. Run pip install "apache-superset[postgres]".
  3. Verify the installation completes successfully without attempting a source build.

ADDITIONAL INFORMATION

  • Has associated issue
  • Required feature flags
  • Changes UI
  • Includes DB Migration
  • Introduces new feature or API
  • Removes existing feature or API

Fixes #37126

@bito-code-review
Copy link
Contributor

bito-code-review bot commented Jan 31, 2026

Code Review Agent Run #08e3dd

Actionable Suggestions - 0
Review Details
  • Files reviewed - 1 · Commit Range: 8835887..8835887
    • pyproject.toml
  • Files skipped - 0
  • Tools
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful

Bito Usage Guide

Commands

Type the following command in the pull request comment and save the comment.

  • /review - Manually triggers a full AI review.

  • /pause - Pauses automatic reviews on this pull request.

  • /resume - Resumes automatic reviews.

  • /resolve - Marks all Bito-posted review comments as resolved.

  • /abort - Cancels all in-progress reviews.

Refer to the documentation for additional commands.

Configuration

This repository uses Superset You can customize the agent settings here or contact your Bito workspace admin at evan@preset.io.

Documentation & Help

AI Code Review powered by Bito Logo

@dosubot dosubot bot added the install:dependencies Installation - Dependencies label Jan 31, 2026
@bito-code-review
Copy link
Contributor

To minimize blast radius, pinning the version with == instead of >= is safer. This keeps the dependency at a specific version to avoid potential issues with newer releases.

pyproject.toml

postgres = ["psycopg2-binary==2.9.9"]

@hainenber hainenber changed the title Fix PostgreSQL extra installation on Python 3.12 Docker images fix(build): eliminate PostgreSQL extra installation on Python 3.12-based Superset Docker images Jan 31, 2026
@hainenber hainenber merged commit 70b95ca into apache:master Jan 31, 2026
62 of 63 checks passed
@bito-code-review
Copy link
Contributor

Bito Automatic Review Skipped – PR Already Merged

Bito scheduled an automatic review for this pull request, but the review was skipped because this PR was merged before the review could be run.
No action is needed if you didn't intend to review it. To get a review, you can type /review in a comment and save it

@Alok-kumar-priyadarshi Alok-kumar-priyadarshi deleted the fix/postgres-psycopg2-py312 branch January 31, 2026 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

install:dependencies Installation - Dependencies size/XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

psycopg2-binary==2.9.6 incompatible with Python 3.12 docker image

2 participants