#1148198 libpysal: FTBFS: E AssertionError: 2 out of 2 geometries are not almost equal.

#1148198#5
Date:
2026-09-17 23:44:34 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202609/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:libpysal, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
                     precise,
                     _truncated_string(unequal_left_geoms.iloc[0]),
                     _truncated_string(unequal_right_geoms.iloc[0]),
                 )
             )
E           AssertionError: 2 out of 2 geometries are not almost equal.
E           Indices where geometries are not almost equal: [0, 1]
E           The first not almost equal geometry:
E           Left: POLYGON ((0.5 1, 0.5 0, 0 0, 0 1, 0.5 1))
E           Right: POLYGON ((0.5 0.95, 0.5 0, 0 0, 0 1, 0.5 0.95))

/usr/lib/python3/dist-packages/geopandas/testing.py:226: AssertionError
=============================== warnings summary ===============================
libpysal/cg/tests/test_voronoi.py::TestVoronoi::test_voronoi
   /<<PKGBUILDDIR>>/libpysal/cg/voronoi.py:67: FutureWarning: The 'voronoi_regions' function is considered private and will be removed in a future release.
     vor = voronoi_regions(Voronoi(points), radius=radius)

libpysal/cg/tests/test_voronoi.py::TestVoronoi::test_clip_chull
libpysal/cg/tests/test_voronoi.py::TestVoronoi::test_deprecated_clip[chull]
   /<<PKGBUILDDIR>>/libpysal/cg/voronoi.py:537: DeprecationWarning: The 'unary_union' attribute is deprecated, use the 'union_all()' method instead.
     return points.unary_union.convex_hull

libpysal/cg/tests/test_voronoi.py::TestVoronoi::test_radius
   /<<PKGBUILDDIR>>/libpysal/cg/tests/test_voronoi.py:198: FutureWarning: The 'as_gdf' parameter currently defaults to True but will default to False in a future release. Set it explicitly to avoid this warning.
     voronoi_frames(self.points2, radius=1)

libpysal/cg/tests/test_voronoi.py::TestVoronoi::test_radius
   /<<PKGBUILDDIR>>/libpysal/cg/tests/test_voronoi.py:198: FutureWarning: The 'return_input' parameter currently defaults to True but will default to False in a future release. Set it explicitly to avoid this warning.
     voronoi_frames(self.points2, radius=1)

libpysal/cg/tests/test_voronoi.py::TestVoronoi::test_deprecated_clip[none]
libpysal/cg/tests/test_voronoi.py::TestVoronoi::test_deprecated_clip[bounds]
libpysal/cg/tests/test_voronoi.py::TestVoronoi::test_deprecated_clip[chull]
libpysal/cg/tests/test_voronoi.py::TestVoronoi::test_deprecated_clip[ahull]
   /<<PKGBUILDDIR>>/libpysal/cg/tests/test_voronoi.py:206: FutureWarning: The 'as_gdf' parameter currently defaults to True but will default to False in a future release. Set it explicitly to avoid this warning.
     voronoi_frames(self.points2, clip=clip)

libpysal/cg/tests/test_voronoi.py::TestVoronoi::test_deprecated_clip[none]
libpysal/cg/tests/test_voronoi.py::TestVoronoi::test_deprecated_clip[bounds]
libpysal/cg/tests/test_voronoi.py::TestVoronoi::test_deprecated_clip[chull]
libpysal/cg/tests/test_voronoi.py::TestVoronoi::test_deprecated_clip[ahull]
   /<<PKGBUILDDIR>>/libpysal/cg/tests/test_voronoi.py:206: FutureWarning: The 'return_input' parameter currently defaults to True but will default to False in a future release. Set it explicitly to avoid this warning.
     voronoi_frames(self.points2, clip=clip)

libpysal/io/iohandlers/tests/test_arcgis_dbf.py::TesttestArcGISDbfIO::test_write
libpysal/io/iohandlers/tests/test_arcgis_dbf.py::TesttestArcGISDbfIO::test_write
libpysal/io/iohandlers/tests/test_pyDbfIO.py::TesttestDBF::test_write
libpysal/io/iohandlers/tests/test_pyDbfIO.py::TesttestDBF::test_write
libpysal/io/iohandlers/tests/test_pyDbfIO.py::TesttestDBF::test_write_nones
libpysal/io/iohandlers/tests/test_pyDbfIO.py::TesttestDBF::test_write_nones
libpysal/weights/tests/test_user.py::Testuser::test_build_lattice_shapefile
libpysal/weights/tests/test_user.py::Testuser::test_build_lattice_shapefile
   /<<PKGBUILDDIR>>/libpysal/io/iohandlers/pyDbfIO.py:354: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC).
     now = datetime.datetime.utcfromtimestamp(