Bug 2298452 - python-cascadio: Tests for cascadio fail on s390x, wrong endianness
Summary: python-cascadio: Tests for cascadio fail on s390x, wrong endianness
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: python-cascadio
Version: 42
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ben Beasley
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: F-ExcludeArch-s390x
TreeView+ depends on / blocked
 
Reported: 2024-07-17 14:39 UTC by Ben Beasley
Modified: 2025-02-26 13:05 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github mikedh trimesh issues 2251 0 None open Tests for cascadio fail on s390x, wrong endianness 2024-07-17 14:39:28 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.