Bug#1086548: python-meshio: autopkgtest fail in testing
Antonio Valentino
antonio.valentino at tiscali.it
Fri Nov 1 09:16:14 GMT 2024
Source: python-meshio
Version: 7.0.0-really-5.3.5-3
Severity: normal
X-Debbugs-Cc: antonio.valentino at tiscali.it
Dear Maintainer,
autopkgtest for msh2xdmf fail in testing: see
https://ci.debian.net/packages/p/python-meshio/testing/amd64/53937343/
The issue seems to be linked to the inability to import the "dolfin"
package.
This issue is blocking for the migration of h5py to testing and,
if not solved, will cause the autoremoval of several packages from
testing.
Please find below the relevant part of the log:
104s autopkgtest [17:08:24]: test test-msh2xdmf: [-----------------------
104s Testing msh2xdmf with python3.12:
104s Could not import dolfin. Continuing without Dolfin support.
104s <module 'msh2xdmf' from '/usr/lib/python3/dist-packages/msh2xdmf.py'>
105s ============================= test session starts
==============================
105s platform linux -- Python 3.12.7, pytest-8.3.3, pluggy-1.5.0
105s rootdir: /tmp/autopkgtest-lxc.7yuubose/downtmp/autopkgtest_tmp
105s plugins: typeguard-4.4.0
105s collected 2 items
105s
105s test/conversion/test_conversion.py .
[ 50%]
105s test/import/test_dolfin_import.py F
[100%]
105s
105s =================================== FAILURES
===================================
105s _________________________________ test_import
__________________________________
105s
105s def test_import():
105s """
105s Test the import from the xdmf file.
105s """
105s # Get the current directory
105s current_dir = "{}/{}".format(os.getcwd(), "test/import")
105s # Run the import
105s > mesh, boundaries, subdomains, labels = import_mesh(
105s prefix="multidomain",
105s dim=2,
105s directory=current_dir,
105s subdomains=True,
105s )
105s
105s test/import/test_dolfin_import.py:14:
105s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _ _ _
105s
105s prefix = 'multidomain', subdomains = True, dim = 2
105s directory =
'/tmp/autopkgtest-lxc.7yuubose/downtmp/autopkgtest_tmp/test/import'
105s
105s def import_mesh(
105s prefix="mesh",
105s subdomains=False,
105s dim=2,
105s directory=".",
105s ):
105s """Function importing a dolfin mesh.
105s
105s Arguments:
105s prefix (str, optional): mesh files prefix (eg. my_mesh.msh,
105s my_mesh_domain.xdmf, my_mesh_bondaries.xdmf).
Defaults to "mesh".
105s subdomains (bool, optional): True if there are
subdomains. Defaults to
105s False.
105s dim (int, optional): dimension of the domain. Defaults
to 2.
105s directory (str, optional): directory of the mesh files.
Defaults to ".".
105s
105s Output:
105s - dolfin Mesh object containing the domain;
105s - dolfin MeshFunction object containing the physical
lines (dim=2) or
105s surfaces (dim=3) defined in the msh file and the
sub-domains;
105s - association table
105s """
105s # Set the file name
105s domain = "{}_domain.xdmf".format(prefix)
105s boundaries = "{}_boundaries.xdmf".format(prefix)
105s
105s # create 2 xdmf files if not converted before
105s if not os.path.exists("{}/{}".format(directory, domain)) or \
105s not os.path.exists("{}/{}".format(directory, boundaries)):
105s msh2xdmf("{}.msh".format(prefix), dim=dim,
directory=directory)
105s
105s # Import the converted domain
105s > mesh = Mesh()
105s E NameError: name 'Mesh' is not defined
105s
105s /usr/lib/python3/dist-packages/msh2xdmf.py:217: NameError
105s =========================== short test summary info
============================
105s FAILED test/import/test_dolfin_import.py::test_import - NameError:
name 'Mesh...
105s ========================= 1 failed, 1 passed in 0.54s
==========================
105s autopkgtest [17:08:25]: test test-msh2xdmf: -----------------------]
-- System Information:
Debian Release: trixie/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 6.11.0-9-generic (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect
More information about the debian-science-maintainers
mailing list