Comment 0 for bug 1939057

Revision history for this message
Bryce Harrington (bryce) wrote :

https://autopkgtest.ubuntu.com/results/autopkgtest-impish/impish/s390x/p/python-meshio/20210731_000740_21465@/log.gz

Version 4.3.9-1 passes, but all tests for 4.3.11-1 and 4.4.6-1 fail son s390x with this error:

=================================== FAILURES ===================================
__________________________ test_stl[True-1e-08-mesh0] __________________________

mesh = <meshio mesh object>
  Number of points: 4
  Number of cells:
    triangle: 2
  Cell sets: grain0, grain1
binary = True, tol = 1e-08

    @pytest.mark.parametrize(
        "mesh",
        [
            # helpers.empty_mesh,
            helpers.tri_mesh
        ],
    )
    @pytest.mark.parametrize(
        "binary, tol",
        [
            (False, 1.0e-15),
            # binary STL only operates in single precision
            (True, 1.0e-8),
        ],
    )
    def test_stl(mesh, binary, tol):
        def writer(*args, **kwargs):
            return meshio.stl.write(*args, binary=binary, **kwargs)

> helpers.write_read(writer, meshio.stl.read, mesh, tol)

test/test_stl.py:26:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test/helpers.py:367: in write_read
    mesh = reader(p)
/usr/lib/python3/dist-packages/meshio/stl/_stl.py:40: in read
    out = _read_ascii(f)
/usr/lib/python3/dist-packages/meshio/stl/_stl.py:105: in _read_ascii
    data = iter_loadtxt(
/usr/lib/python3/dist-packages/meshio/stl/_stl.py:69: in iter_loadtxt
    data = np.fromiter(iter_func(), dtype=dtype)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

    def iter_func():
        items = None
        for _ in range(skiprows):
            try:
                next(infile)
            except StopIteration:
                raise ReadError("EOF Skipped too many rows")

        for line in infile:
> line = line.decode("utf-8").strip()
E UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 14: invalid start byte

/usr/lib/python3/dist-packages/meshio/stl/_stl.py:56: UnicodeDecodeError
=============================== warnings summary ===============================