Skip to content

Pin casadi below 3.8 for pip installs - #2095

Open
ASP-SuperExplorer wants to merge 2 commits into
CadQuery:masterfrom
ASP-SuperExplorer:fix-pip-casadi-pin-2082
Open

Pin casadi below 3.8 for pip installs#2095
ASP-SuperExplorer wants to merge 2 commits into
CadQuery:masterfrom
ASP-SuperExplorer:fix-pip-casadi-pin-2082

Conversation

@ASP-SuperExplorer

Copy link
Copy Markdown

Fixes #2082.

A fresh pip/uv install can currently resolve to casadi 3.8.0 with nlopt 2.11.0. That pair has been reported to crash on Windows during interpreter shutdown, which shows up as 0xC0000005 or heap corruption even when the CadQuery script itself completed.

This pins the pip dependency to casadi<3.8, so new installs stay on the last known-good 3.7.x line. I also added a small metadata test so the constraint does not get dropped accidentally.

Tested locally:

python -m pytest tests/test_package_metadata.py -q
python - <<'PY'
import cadquery as cq
result = cq.Workplane('XY').box(10, 20, 5)
print(result.val().ShapeType(), result.val().isValid(), result.val().Volume())
PY

@codecov

codecov Bot commented Sep 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.67%. Comparing base (a6bedc0) to head (f6f3f02).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2095   +/-   ##
=======================================
  Coverage   95.67%   95.67%           
=======================================
  Files          30       30           
  Lines        9534     9534           
  Branches     1421     1421           
=======================================
  Hits         9122     9122           
  Misses        255      255           
  Partials      157      157           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

The process has ended. The exit code is -1073741819 (0xC0000005).

1 participant