Skip to content

Fix Cloud Environment install when python3.12 lacks venv package - #380

Merged
cursor[bot] merged 1 commit into
mainfrom
cursor/fix-cloud-env-python-venv-c3e8
Oct 18, 2026
Merged

cursor[bot] merged 1 commit into
mainfrom
cursor/fix-cloud-env-python-venv-c3e8

Conversation

@jmjava

@jmjava jmjava commented Oct 18, 2026

Copy link
Copy Markdown
Owner

Problem

Recurring Cloud Environment builds for this repo were failing with INSTALL_FAILED. Install logs showed python3.12 on the image but python3.12 -m venv failing because Debian’s python3.12-venv package (ensurepip) was not installed.

GitHub Actions on main were already green; the failure was in .cursor/install.sh during environment snapshot builds.

Fix

  • Add ensure_python312_and_venv() in .cursor/install.sh to probe venv creation and apt-get install python3.12 / python3.12-venv as needed.
  • Preserve proving-test behavior when SDLC_INSTALL_SKIP_SYSTEM_DEPS=1.
  • Lock the contract in tests/test-cloud-environment.sh.

Verification

  • ./tests/test-cloud-environment.sh — 26/26 passed
  • Local bash .cursor/install.sh — succeeds after installing python3.12-venv
  • Draft environment build on this branch — [INSTALL] Exit code: 0, status SUCCEEDED

After merge, activate a new environment build in the Cursor dashboard so recurring builds pick up the fix.

Open in Web Open in Cursor 

Cloud build images often include python3.12 without python3.12-venv, so
setup-engine-venv.sh failed with ensurepip unavailable. Probe venv
creation and apt-install the split package before bootstrapping .venv.
Proving tests keep SDLC_INSTALL_SKIP_SYSTEM_DEPS=1 behavior unchanged.

Co-authored-by: jmjava <jmjava@gmail.com>
@jmjava
jmjava marked this pull request as ready for review October 18, 2026 00:36
@cursor
cursor Bot merged commit 65851c1 into main Oct 18, 2026
5 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.

2 participants