#1142638 test_explicit_structured_grid_compute_connectivity fails on 32-bit systems with vtk 9.6

#1142638#5
Date:
2026-07-23 09:40:06 UTC
From:
To:
pyvista's tests are failing in debci on 32-bit arches (armhf and i386).

The problem appears to be triggered by vtk 9.6

The symptom is that the connectivities generated by
grid.compute_connectivity() and grid.compute_connections() have value
0, not matching the reference values.

A second observation is that the dtype is mildly discrepant (int vs
uint8 or uint32), though I don't think this would cause test error if
the values matched.

Reported upstream https://github.com/pyvista/pyvista/issues/8841
but perhaps it is a VTK issue.


e.g. on i386

$ pytest-3 -v tests/core/test_grid.py -k structured_grid_compute
==================================================================================================================== test session starts =====================================================================================================================
platform linux -- Python 3.14.6, pytest-9.1.1, pluggy-1.6.0 -- /usr/bin/python3
cachedir: .pytest_cache
hypothesis profile 'default'
Test order randomisation NOT enabled. Enable with --random-order or --random-order-bucket=<bucket_type>
required packages: cyclopts-4.17.0, matplotlib-3.10.7+dfsg1, numpy-2.4.6, pillow-12.3.0, pooch-1.9.0, scooby-0.11.0, typing-extensions-4.16.0, vtk (not found), vtk (not found), vtk (not found), vtk (not found)
optional 'colormaps' package: colorcet-3.1.0
optional 'io' packages: imageio-2.37.4, meshio-5.3.5
optional packages not found: cmcrameri, cmocean, fsspec, pyvista-zstd, ipywidgets, jupyter-server-proxy, nest-asyncio2, trame-client, trame-server, trame-vtk, trame-vtk, trame-vuetify, trame
rootdir: /home/dparsons/pyvista/python-pyvista-0.48.4
configfile: pyproject.toml
plugins: cases-3.10.1, hypothesis-6.152.4, typeguard-4.4.4, mock-3.15.1, random-order-1.2.0+ds
collected 198 items / 196 deselected / 2 selected

tests/core/test_grid.py::test_explicit_structured_grid_compute_connectivity FAILED                                                                                                                                                                     [ 50%]
tests/core/test_grid.py::test_explicit_structured_grid_compute_connections FAILED                                                                                                                                                                      [100%]

========================================================================================================================== FAILURES ==========================================================================================================================
E       assert False
E        +  where False = <function array_equal at 0xf5965ce0>(pyvista_ndarray([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\n                 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\n                 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\n                 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\n                 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\n                 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\n                 0, 0, 0, 0, 0, 0], dtype=uint8), array([42, 43, 43, 41, 46, 47, 47, 45, 46, 47, 47, 45, 46, 47, 47, 45, 38,\n       39, 39, 37, 58, 59, 59, 57, 62, 63, 63, 61, 62, 63, 63, 61, 62, 63,\n       63, 61, 54, 55, 55, 53, 58, 59, 59, 57, 62, 63, 63, 61, 62, 63, 63,\n       61, 62, 63, 63, 61, 54, 55, 55, 53, 58, 59, 59, 57, 62, 63, 63, 61,\n       62, 63, 63, 61, 62, 63, 63, 61, 54, 55, 55, 53, 58, 59, 59, 57, 62,\n       63, 63, 61, 62, 63, 63, 61, 62, 63, 63, 61, 54, 55, 55, 53, 26, 27,\n       27, 25, 30, 31, 31, 29, 30, 31, 31, 29, 30, 31, 31, 29, 22, 23, 23,\n       21]))
E        +    where <function array_equal at 0xf5965ce0> = np.array_equal

tests/core/test_grid.py:1806: AssertionError

E       assert False
E        +  where False = <function array_equal at 0xf5965ce0>(pyvista_ndarray([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\n                 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\n                 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\n                 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\n                 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\n                 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,\n                 0, 0, 0, 0, 0, 0], dtype=uint32), array([3, 4, 4, 3, 4, 5, 5, 4, 4, 5, 5, 4, 4, 5, 5, 4, 3, 4, 4, 3, 4, 5,\n       5, 4, 5, 6, 6, 5, 5, 6, 6, 5, 5, 6, 6, 5, 4, 5, 5, 4, 4, 5, 5, 4,\n       5, 6, 6, 5, 5, 6, 6, 5, 5, 6, 6, 5, 4, 5, 5, 4, 4, 5, 5, 4, 5, 6,\n       6, 5, 5, 6, 6, 5, 5, 6, 6, 5, 4, 5, 5, 4, 4, 5, 5, 4, 5, 6, 6, 5,\n       5, 6, 6, 5, 5, 6, 6, 5, 4, 5, 5, 4, 3, 4, 4, 3, 4, 5, 5, 4, 4, 5,\n       5, 4, 4, 5, 5, 4, 3, 4, 4, 3]))
E        +    where <function array_equal at 0xf5965ce0> = np.array_equal

tests/core/test_grid.py:1832: AssertionError
================================================================================================================== short test summary info ===================================================================================================================
FAILED tests/core/test_grid.py::test_explicit_structured_grid_compute_connectivity - assert False
FAILED tests/core/test_grid.py::test_explicit_structured_grid_compute_connections - assert False
============================================================================================================= 2 failed, 196 deselected in 0.90s ==============================================================================================================

#1142638#10
Date:
2026-07-28 12:55:27 UTC
From:
To:
Hello,

Bug #1142638 in python-pyvista reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/science-team/python-pyvista/-/commit/3ae1d13aae08677d5c2b8b02d2bb7085f82c5e9e
------------------------------------------------------------------------
add debian patch test_32bit_skip_test_explicit_structured_grid.patch

skips explicit_structured grid_compute tests,
see upstream Issue#8841
https://github.com/pyvista/pyvista/issues/8841

Closes: #1142638
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1142638

#1142638#17
Date:
2026-07-28 13:04:36 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
python-pyvista, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1142638@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Drew Parsons <dparsons@debian.org> (supplier of updated python-pyvista package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Tue, 28 Jul 2026 14:36:44 +0200
Source: python-pyvista
Architecture: source
Version: 0.48.4-5
Distribution: unstable
Urgency: medium
Maintainer: Debian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
Changed-By: Drew Parsons <dparsons@debian.org>
Closes: 1142638
Changes:
 python-pyvista (0.48.4-5) unstable; urgency=medium
 .
   * debian patch test_32bit_skip_test_explicit_structured_grid.patch
     skips explicit_structured grid_compute tests, see upstream
     Issue#8841. Closes: #1142638.
Checksums-Sha1:
 e33082ad99a7d6cd1bcd85ac37ca0cc714597187 2908 python-pyvista_0.48.4-5.dsc
 2fadf35d1caa03585892f2968adb200d76b3d600 15700 python-pyvista_0.48.4-5.debian.tar.xz
 d5c9178a92ff26f2bd8dcb85aae2f5ef7e2639c7 19054 python-pyvista_0.48.4-5_amd64.buildinfo
Checksums-Sha256:
 50049fe0137c6f48cca82bf03d5b39efc24a998502cf2940b3e8896c2170db83 2908 python-pyvista_0.48.4-5.dsc
 c5a766d3c8f98032f3319ec7dc962814944054738f5e70c78d723568ab26e4ba 15700 python-pyvista_0.48.4-5.debian.tar.xz
 71ee2423983df6a22a62d655fcf62f564de8b670e8ce42f54679d9eafb9244a0 19054 python-pyvista_0.48.4-5_amd64.buildinfo
Files:
 0461e271675a9146cc20607b047a014e 2908 science optional python-pyvista_0.48.4-5.dsc
 75ef8016f58da3bee8dcc983151c5348 15700 science optional python-pyvista_0.48.4-5.debian.tar.xz
 52a9c7ffefafc91ddd3aeb9cc5a442fc 19054 science optional python-pyvista_0.48.4-5_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEI8mpPlhYGekSbQo2Vz7x5L1aAfoFAmpopSIACgkQVz7x5L1a
AfrqCA/7BHKNJUnBBJW+Y8Q3wbGy7mkoTNbCg/Go6r8bNGkN4odvgNaJVkVdDSsv
JUgCZfbo1jph2IAP4OofcdztExH8tcOYUfo+XHP5kfZzOgrcSCoKTAHsmaHHe6H1
wIDVBaisb5qbTJTTVqgaESvPXL3jR9PyMefzcYSNLVKzTnQMB+xl9lQB0KcUAQ96
/65ArXUk73tegPqbOQNsk+/e9SZgHUqKzAwT47tZJvDWINxmGBHSwgsdoeuXOc9i
aK9lDZoP1ca9rZws6ZIHggaF4Eqki45uQxssTMlUggwAYM27884tpPR/x0yKV/T5
JX+pI59pPDkAwG0NWvWEaHptNPKYuOqm0UDLOWutf1mJk8bLnYB0yLC8Fw88NhOp
A/J836SxhGEZ+AWPu1BO0ZPeqSIrfJ4rYMIS8WuWRfKQMLx2hICNBjA6MqMq6LEp
0gUpw18J1zQflSdMWtOEeVehmEckzcYrlGq2b2GfWTz0HHz2ImC1VY/ZVOJR1w5R
gW82K4JEdJPK0HQOiZzENMXmxf2M4bl/0250AcKMgPDU1EpB/kvK3Dk4+uGtTVB9
OUuDY2/vnvv3Ee1qCx7x2xbg//NcxQxOcv+RyA+LPqRSPNvX67EEfbWRmZOGEwEH
DF4fbVA0BUNigEe81KkgP1WvMcrHedOik45GANM2lYow58yM3gE=
=nDL8
-----END PGP SIGNATURE-----