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
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.parametriz e(
helpers. tri_mesh mark.parametriz e( stl.write( *args, binary=binary, **kwargs)
"mesh",
[
# helpers.empty_mesh,
],
)
@pytest.
"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.
> helpers. write_read( writer, meshio.stl.read, mesh, tol)
test/test_ stl.py: 26: py:367: in write_read python3/ dist-packages/ meshio/ stl/_stl. py:40: in read python3/ dist-packages/ meshio/ stl/_stl. py:105: in _read_ascii python3/ dist-packages/ meshio/ stl/_stl. py:69: in iter_loadtxt iter_func( ), dtype=dtype)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test/helpers.
mesh = reader(p)
/usr/lib/
out = _read_ascii(f)
/usr/lib/
data = iter_loadtxt(
/usr/lib/
data = np.fromiter(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
def iter_func():
next( infile)
raise ReadError("EOF Skipped too many rows")
items = None
for _ in range(skiprows):
try:
except StopIteration:
for line in infile: "utf-8" ).strip( )
> line = line.decode(
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 ======= ======= ======= ======= ===
=======