Skip to content

[bug/issue] meshio xdmf export format broken #39

Description

@otaolafranc

Hello,
the meshio xdmf format export by default (without installing extra things) in universal version of salome 9.15 is broken.
it looks like "gzip" is unavailable.
to test this, i simply create a 2D mesh from a square face with netgen 2D-1D and tried to export it in xdmf format.

I am getting the following error:

Mesh export failed.

MESHIO
Failed system("meshio convert  /tmp/392870/a.med /home/franco/a.xdmf 2> /tmp/39287126531_/meshio_errors.txt").

Traceback (most recent call last):
  File "/home/franco/Programs/Salome/SALOME-9.15.0/BINARIES-CO7/meshio/lib/python3.9/site-packages/bin/meshio", line 8, in <module>
    sys.exit(main())
  File "/home/franco/Programs/Salome/SALOME-9.15.0/BINARIES-CO7/meshio/lib/python3.9/site-packages/meshio/_cli/_main.py", line 52, in main
    return args.func(args)
  File "/home/franco/Programs/Salome/SALOME-9.15.0/BINARIES-CO7/meshio/lib/python3.9/site-packages/meshio/_cli/_convert.py", line 75, in convert
    write(args.outfile, mesh, **kwargs)
  File "/home/franco/Programs/Salome/SALOME-9.15.0/BINARIES-CO7/meshio/lib/python3.9/site-packages/meshio/_helpers.py", line 188, in write
    return writer(filename, mesh, **kwargs)
  File "/home/franco/Programs/Salome/SALOME-9.15.0/BINARIES-CO7/meshio/lib/python3.9/site-packages/meshio/xdmf/main.py", line 547, in write
    XdmfWriter(*args, **kwargs)
  File "/home/franco/Programs/Salome/SALOME-9.15.0/BINARIES-CO7/meshio/lib/python3.9/site-packages/meshio/xdmf/main.py", line 365, in __init__
    self.write_points(grid, mesh.points)
  File "/home/franco/Programs/Salome/SALOME-9.15.0/BINARIES-CO7/meshio/lib/python3.9/site-packages/meshio/xdmf/main.py", line 419, in write_points
    data_item.text = self.numpy_to_xml_string(points)
  File "/home/franco/Programs/Salome/SALOME-9.15.0/BINARIES-CO7/meshio/lib/python3.9/site-packages/meshio/xdmf/main.py", line 394, in numpy_to_xml_string
    self.h5_file.create_dataset(
  File "/home/franco/Programs/Salome/SALOME-9.15.0/BINARIES-CO7/h5py/lib/python3.9/site-packages/h5py/_hl/group.py", line 183, in create_dataset
    dsid = dataset.make_new_dset(group, shape, dtype, data, name, **kwds)
  File "/home/franco/Programs/Salome/SALOME-9.15.0/BINARIES-CO7/h5py/lib/python3.9/site-packages/h5py/_hl/dataset.py", line 104, in make_new_dset
    dcpl = filters.fill_dcpl(
  File "/home/franco/Programs/Salome/SALOME-9.15.0/BINARIES-CO7/h5py/lib/python3.9/site-packages/h5py/_hl/filters.py", line 186, in fill_dcpl
    raise ValueError('Compression filter "%s" is unavailable' % compression)
ValueError: Compression filter "gzip" is unavailable

Operation canceled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions