Skip to content

Fix Python 3.14 compatibility issue with pypika for the docker deployment bench script#1608

Open
siparker wants to merge 2 commits intofrappe:developfrom
siparker:develop
Open

Fix Python 3.14 compatibility issue with pypika for the docker deployment bench script#1608
siparker wants to merge 2 commits intofrappe:developfrom
siparker:develop

Conversation

@siparker
Copy link
Copy Markdown

Docker CRM setup fails because pypika==0.48.9 is incompatible with Python 3.14.2. The frappe/bench:latest Docker image uses Python 3.14.2, which removed the ast.Str attribute that pypika relies on.
Added python version detection and automatic fallback to py 3.11 or 3.12 via pyenv.

It now deploys correctly in docker.

Removed obsolete version: "3.7" field (fixes Docker Compose warning)
Added comments regarding Python version compatibility for frappe service.
Fixed shebang: #!bin/bash → #!/bin/bash
Added Python version compatibility checking (lines 11-119)
Automatic pyenv initialization and Python 3.11/3.12 detection
Auto-install Python 3.11 via pyenv if missing
Fallback to system python3.11 or python3.12 with PATH manipulation
Clear error messages if Python 3.14+ is detected and no compatible version is available
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.

1 participant