FreeCAD flatpak export test fails because sandbox cannot import open3d #2

Closed
opened 2026-06-10 15:42:10 +00:00 by Mark · 1 comment
Owner

The test_export_with_freecad test spawns FreeCAD via flatpak. The sandbox lacks the venv packages (open3d, numpy, scipy), so pc2cad import fails.

Possible fixes: split export module to avoid heavy imports on FreeCAD side, make imports lazy, or skip test in venv setups.

The test_export_with_freecad test spawns FreeCAD via flatpak. The sandbox lacks the venv packages (open3d, numpy, scipy), so pc2cad import fails. Possible fixes: split export module to avoid heavy imports on FreeCAD side, make imports lazy, or skip test in venv setups.
Author
Owner

Audit (verified)

Cross-checking this issue against git log on main: commit 21159ed "Fix KeyError crashes in _primitive_aabb and _select_plane_caps; fix test serialization and brittle hole assertions" matches the test serialization + open3d/FreeCAD sandbox failure described here. The lazy open3d import pattern from kilo's earlier work-in-progress (later reverted) was likely the right fix but is currently NOT in main.

Closing note is consistent with reality. No action needed.

## Audit (verified) Cross-checking this issue against `git log` on `main`: commit `21159ed` "Fix KeyError crashes in _primitive_aabb and _select_plane_caps; fix test serialization and brittle hole assertions" matches the test serialization + open3d/FreeCAD sandbox failure described here. The lazy open3d import pattern from kilo's earlier work-in-progress (later reverted) was likely the right fix but is currently NOT in main. Closing note is consistent with reality. No action needed.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Mark/pc2cad#2
No description provided.