Skip to content

Conversation

chrisjkuch
Copy link
Contributor

@chrisjkuch chrisjkuch commented May 6, 2025

Closes #452

Tried lots of things tracking down and attempting to solve this error, which appears to have been introduced with changes to pipenv in 2025.0.0 that vendor changes to pythonfinder. I think the combination of Windows runners + setup-python caching + running on different OSes with different Python versions leads to a situation where there's a 32-bit version of python that gets found and prioritized by pythonfinder, and pipenv has chosen not to enable architecture specification / enforcement.

In the end, I folded and I explicitly specify the actions runner system python path (implicitly used elsewhere) to use for creating the pipenv venv on the Windows runners, while still testing the make create_environment command on Linux and macOS. Open to other ways of tackling this (e.g., using uv for python setup everywhere which I think would also fix this).

@pjbull pjbull temporarily deployed to cjk-pipenv-windows-fix - Cookiecutter Data Science PR #453 May 6, 2025 12:00 — with Render Destroyed
…emporarily switch to only running pipenv tests on only windows runners
@pjbull pjbull temporarily deployed to cjk-pipenv-windows-fix - Cookiecutter Data Science PR #453 June 4, 2025 10:26 — with Render Destroyed
@chrisjkuch chrisjkuch changed the title Use --pre --clear when installing packages using pipenv Fix failing pipenv installation on Windows Jun 4, 2025
@chrisjkuch chrisjkuch requested review from Copilot, jayqi and pjbull June 5, 2025 10:59
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR addresses a failing pipenv installation on Windows by explicitly specifying the system Python path for Windows runners while preserving existing behavior on Linux/macOS.

  • Adjusts the pipenv harness script to use the system Python on Windows.
  • Adds debugging output in the GitHub Actions workflow to log Python details.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
tests/pipenv_harness.sh Updates the script to detect Windows and specify the system Python.
.github/workflows/tests.yml Adds commands to output Python path, version, and architecture.

@chrisjkuch chrisjkuch changed the title Fix failing pipenv installation on Windows Fix failing pipenv installation on Windows GH actions runners Jun 5, 2025
@pjbull pjbull temporarily deployed to cjk-pipenv-windows-fix - Cookiecutter Data Science PR #453 June 6, 2025 17:11 — with Render Destroyed
@chrisjkuch chrisjkuch force-pushed the cjk-pipenv-windows-fix branch 2 times, most recently from 4c57a9f to d2815a2 Compare June 8, 2025 12:38
@chrisjkuch chrisjkuch merged commit 3506435 into master Jun 8, 2025
131 of 160 checks passed
@chrisjkuch chrisjkuch deleted the cjk-pipenv-windows-fix branch June 8, 2025 18:23
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.

Pipenv installation of basic packages failing on Windows runners

3 participants