Bug 2298452

Summary: python-cascadio: Tests for cascadio fail on s390x, wrong endianness
Product: [Fedora] Fedora Reporter: Ben Beasley <code>
Component: python-cascadioAssignee: Ben Beasley <code>
Status: NEW --- QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 42CC: code, neuro-sig
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 485231    

Description Ben Beasley 2024-07-17 14:39:28 UTC
Description of problem:

The (sole) test is failing on s390x (the sole big-endian architecture). This is clearly a case of an endianness mixup; trimesh and opencascade are involved too, and it’s not clear exactly where the problem is.

Version-Release number of selected component (if applicable): 0.0.12-4


How reproducible:

Steps to Reproduce:
1. Remove s390x from ExcludeArch in the spec file.
2. Run fedpkg scratch-build --srpm --arches s390x (or fedpkg mockbuild --root fedora-rawhide-s390x, with qemu-user-static installed).

Actual results:
=================================== FAILURES ===================================
_________________________________ test_convert _________________________________
    def test_convert():
        infile = os.path.join(cwd, "models", "featuretype.STEP")
    
        with tempfile.TemporaryDirectory() as D:
            outfile = os.path.join(D, "outfile.glb")
            # do the conversion
            cascadio.step_to_glb(infile, outfile, 0.1, 0.5)
>           scene = trimesh.load(outfile, merge_primitives=True)
tests/test_load.py:16: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[... many lines omitted ...]
>           raise NotImplementedError(f"only GLTF 2 is supported not `{head[1]}`")
E           NotImplementedError: only GLTF 2 is supported not `33554432`
/usr/lib/python3.13/site-packages/trimesh/exchange/gltf.py:388: NotImplementedError
=========================== short test summary info ============================
FAILED tests/test_load.py::test_convert - NotImplementedError: only GLTF 2 is...
============================== 1 failed in 0.27s ===============================

Expected results:

All tests pass.

Additional info:

This was filed upstream on trimesh as https://github.com/mikedh/trimesh/issues/2251.

Comment 1 Aoife Moloney 2025-02-26 13:05:14 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 42 development cycle.
Changing version to 42.