You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[4.0.0-beta desktop] Desktop CI uses Python 3.11 while Docker uses 3.12 #262
Two official Server Edition artifacts are built with different CPython versions:
Artifact
Python
Docker (app/DockerfileFROM python:3.12-slim)
3.12
macOS / Windows GHA (actions/setup-pythonpython-version: '3.11')
3.11
CBL CFFI wheels / _PyCBL*.so are ABI-specific. Docs (07_PACKAGING_MACOS.md) show libpython3.12.dylib and _PyCBL.abi3.so / cp312. A 3.11 desktop build cannot reuse a 3.12 binding build recipe without compiling on that interpreter.
Also: macos-latest + 3.11 is arm64; Docker is multi-arch 3.12. Bug reports will not reproduce across editions.
Suggested RCA
Desktop workflows were written first (3.11). Docker was added later on 3.12. Nobody aligned them. CFFI abi3might work across 3.11/3.12 depending on how couchbase-lite-python is built, but that is not guaranteed and not tested.
Suggested FIX
Pick one (3.12, to match Docker) and pin it everywhere:
# tests/python/test_python_version_pin.pyfrompathlibimportPathimportreimportyaml# PyYAML is already a test dep if present; otherwise regexdef_pyver_file() ->str:
returnPath(".python-version").read_text().strip()
deftest_python_version_file_is_3_12():
assert_pyver_file().startswith("3.12")
deftest_dockerfile_matches_python_version_file():
df=Path("app/Dockerfile").read_text()
ver=_pyver_file().split(".")
assertf"python:{ver[0]}.{ver[1]}"indfdeftest_workflows_do_not_pin_3_11():
forwfinPath(".github/workflows").glob("*.yml"):
text=wf.read_text()
if"setup-python"notintext:
continueassert"python-version: '3.11'"notintext, wfassert (
"python-version-file: '.python-version'"intextor"python-version: '3.12'"intext
)
Context: found on branch release-4.0.0-beta while reviewing standalone macOS .app / Windows .exe packaging. Issues in this batch share the title prefix [4.0.0-beta desktop].
Activity
Merge pull request #263 from Fujio-Turner/fix/4.0.0-beta-desktop-issues
Fujio-Turner commentedon Sep 15, 2026
Fixed on
release-4.0.0-betavia #263