Skip to content

Add Python 3.13 cffi/venv compatibility lessons#1

Open
lgelauff wants to merge 1 commit into
mainfrom
fix/python313-cffi-venv
Open

Add Python 3.13 cffi/venv compatibility lessons#1
lgelauff wants to merge 1 commit into
mainfrom
fix/python313-cffi-venv

Conversation

@lgelauff

Copy link
Copy Markdown
Owner

Summary

Adds lessons learned from setting up a Toolforge Python 3.13 environment:

  • cffi==1.16.0 has no pre-built wheel for Python 3.13 — bump to >=1.17.1
  • Use --prefer-binary to avoid source-compilation failures
  • Broken venv recovery: rebuild with --clear inside webservice shell
  • Warning about requirements.txt generated with older Python having incompatible pins

Discovered while deploying montage-beta on Toolforge (April 2026).

🤖 Generated with Claude Code

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