Package: src:python-momepy
Version: 0.7.0-3
Severity: serious
Tags: ftbfs
Dear maintainer:
During a rebuild of all packages in unstable, your package failed to build:
--------------------------------------------------------------------------------
[...]
debian/rules build
make: pyversions: No such file or directory
py3versions: no X-Python3-Version in control file, using supported versions
dh build --buildsystem=pybuild --with python3,sphinxdoc
dh_update_autotools_config -O--buildsystem=pybuild
dh_autoreconf -O--buildsystem=pybuild
dh_auto_configure -O--buildsystem=pybuild
dh_auto_build -O--buildsystem=pybuild
I: pybuild plugin_pyproject:129: Building wheel for python3.12 with "build"
module
I: pybuild base:311: python3.12 -m build --skip-dependency-check --no-isolation --wheel
--outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_monepy
* Building wheel...
running bdist_wheel
running build
running build_py
[... snipped ...]
dtype: geometry]
enclosure_id = 'eID', clip = False
def enclosures(
primary_barriers,
limit=None,
additional_barriers=None,
enclosure_id="eID",
clip=False,
):
"""
Generate enclosures based on passed barriers. Enclosures are areas
enclosed from
all sides by at least one type of a barrier. Barriers are typically
roads,
railways, natural features like rivers and other water bodies or
coastline.
Enclosures are a result of polygonization of the ``primary_barrier``
and ``limit``
and its subdivision based on additional_barriers.
Parameters
----------
primary_barriers : GeoDataFrame, GeoSeries
A GeoDataFrame or GeoSeries containing primary barriers.
(Multi)LineString geometry is expected.
limit : GeoDataFrame, GeoSeries, shapely geometry (default None)
A GeoDataFrame, GeoSeries or shapely geometry containing external
limit
of enclosures, i.e. the area which gets partitioned. If ``None`` is
passed,
the internal area of ``primary_barriers`` will be used.
additional_barriers : GeoDataFrame
A GeoDataFrame or GeoSeries containing additional barriers.
(Multi)LineString geometry is expected.
enclosure_id : str (default 'eID')
The name of the ``enclosure_id`` (to be created).
clip : bool (default False)
If ``True``, returns enclosures with representative point within
the limit
(if given). Requires ``limit`` composed of Polygon or MultiPolygon
geometries.
Returns
-------
enclosures : GeoDataFrame
A GeoDataFrame containing enclosure geometries and ``enclosure_id``.
Examples
--------
>>> enclosures = mm.enclosures(streets, admin_boundary, [railway,
rivers])
"""
if limit is not None:
if isinstance(limit, BaseGeometry):
limit = gpd.GeoSeries([limit])
if limit.geom_type.isin(["Polygon", "MultiPolygon"]).any():
limit_b = limit.boundary
else:
limit_b = limit
barriers = pd.concat([primary_barriers.geometry, limit_b.geometry])
else:
barriers = primary_barriers
unioned = barriers.unary_union
polygons = polygonize(unioned)
enclosures = gpd.GeoSeries(list(polygons), crs=primary_barriers.crs)
if additional_barriers is not None:
if not isinstance(additional_barriers, list):
raise TypeError(
"`additional_barriers` expects a list of GeoDataFrames "
f"or GeoSeries. Got {type(additional_barriers)}."
)
additional = pd.concat([gdf.geometry for gdf in
additional_barriers])
inp, res = enclosures.sindex.query_bulk(
additional.geometry, predicate="intersects"
)
E AttributeError: 'SpatialIndex' object has no attribute 'query_bulk'
momepy/elements.py:1001: AttributeError
_____________________ TestElements.test_get_network_ratio ______________________
self = <momepy.tests.test_elements.TestElements object at 0x7f5879b9ee40>
def test_get_network_ratio(self):
convex_hull = self.df_streets.unary_union.convex_hull
enclosures = mm.enclosures(self.df_streets,
limit=gpd.GeoSeries([convex_hull]))
enclosed_tess = mm.Tessellation(
self.df_buildings, unique_id="uID", enclosures=enclosures
).tessellation
momepy/tests/test_elements.py:218:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
momepy/elements.py:232: in __init__
self.tessellation = self._enclosed_tessellation(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <momepy.elements.Tessellation object at 0x7f5874888500>
buildings = uID geometry
0 1 POLYGON ((257.627 248.18, 261.389 244.9, 255.5......678 -34.283,
-143.88 -32.409, -...
143 144 POLYGON ((156.281 -54.537, 153.665 -65.228, 16...
[144 rows x 2 columns]
enclosures = eID geometry
position
0 0 POLYGON ((244.046 307.139, 71.612 107.09...(21.963 -89.751, 34.431
-92.701, 203.... 15
16 16 POLYGON ((308.856 246.965, 323.227 233.462, 33... 16
unique_id = 'uID', threshold = 0.05, use_dask = True, n_chunks = None
kwargs = {}
def _enclosed_tessellation(
self,
buildings,
enclosures,
unique_id,
threshold=0.05,
use_dask=True,
n_chunks=None,
**kwargs,
):
"""
Generate enclosed tessellation based on barriers
defining enclosures and building footprints.
Parameters
----------
buildings : GeoDataFrame
A GeoDataFrame containing building footprints.
Expects (Multi)Polygon geometry.
enclosures : GeoDataFrame
Enclosures geometry. Can be generated using
:func:`momepy.enclosures`.
unique_id : str
The name of the column with the unique ID of ``buildings`` gdf.
threshold : float (default 0.05)
The minimum threshold for a building to be considered within an
enclosure.
Threshold is a ratio of building area which needs to be within an
enclosure
to inlude it in the tessellation of that enclosure.
Resolves sliver geometry issues.
use_dask : bool (default True)
Use parallelised algorithm based on ``dask.dataframe``. Requires
dask.
n_chunks : None
The number of chunks to be used in parallelization. Ideal is one
chunk per
thread. Applies only if ``enclosures`` are passed. Default
automatically
uses ``n == dask.system.cpu_count``.
**kwargs : dict
Keyword arguments passed to Tessellation algorithm
(such as ``'shrink'`` or ``'segment'``).
Returns
-------
tessellation : GeoDataFrame
A GeoDataFrame containing three columns:
- ``geometry``,
- ``unique_id`` matching with parent building,
- ``enclosure_id`` matching with enclosure integer index
Examples
--------
>>> enclosures = mm.enclosures(streets, admin_boundary, [railway,
rivers])
>>> enclosed_tess = mm.enclosed_tessellation(buildings, enclosures)
"""
enclosures = enclosures.reset_index(drop=True)
enclosures["position"] = range(len(enclosures))
# determine which polygons should be split
inp, res = buildings.sindex.query_bulk(
enclosures.geometry, predicate="intersects"
)
E AttributeError: 'SpatialIndex' object has no attribute 'query_bulk'
momepy/elements.py:451: AttributeError
___________ TestPreprocessing.test_roundabout_simplification_default ___________
self = <momepy.tests.test_preprocess.TestPreprocessing object at 0x7f5879bed8e0>
def test_roundabout_simplification_default(self):
check = mm.roundabout_simplification(self.df_streets_rabs)
momepy/tests/test_preprocess.py:135:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
momepy/preprocessing.py:1028: in roundabout_simplification
incoming_all, idx_drop = _selecting_incoming_lines(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rab_multipolygons =
geometry center_pt
index_right ...T (599418.751 659579.739)
12 GEOMETRYCOLLECTION (POLYGON ((603738.911 64467... POINT
(603746.613 644699.524)
edges = geometry
0 LINESTRING (599879.298 645412.868, 599869.276 ...
1 LINEST...ING (603642.445 644752.951, 603681.131 ...
87 LINESTRING (603790.11 644674.653, 603794.733 6...
[88 rows x 1 columns]
angle_threshold = 0
def _selecting_incoming_lines(rab_multipolygons, edges, angle_threshold=0):
"""Selecting only the lines that are touching but not covered by
the ``rab_plus``.
If more than one LineString is incoming to ``rab_plus``, COINS algorithm
is used to select the line to be extended further.
"""
# selecting the lines that are touching but not covered by
touching = gpd.sjoin(edges, rab_multipolygons, predicate="touches")
edges_idx, rabs_idx = rab_multipolygons.sindex.query_bulk(
edges.geometry, predicate="covered_by"
)
E AttributeError: 'SpatialIndex' object has no attribute 'query_bulk'
momepy/preprocessing.py:854: AttributeError
____ TestPreprocessing.test_roundabout_simplification_high_circom_threshold ____
self = <momepy.tests.test_preprocess.TestPreprocessing object at 0x7f5879bed040>
def test_roundabout_simplification_high_circom_threshold(self):
check = mm.roundabout_simplification(
self.df_streets_rabs, self.df_rab_polys, circom_threshold=0.97
)
momepy/tests/test_preprocess.py:140:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
momepy/preprocessing.py:1028: in roundabout_simplification
incoming_all, idx_drop = _selecting_incoming_lines(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rab_multipolygons =
geometry center_pt
index_right ...T (599606.069 645326.918)
8 GEOMETRYCOLLECTION (POLYGON ((599446.636 65952... POINT
(599418.751 659579.739)
edges = geometry
0 LINESTRING (599879.298 645412.868, 599869.276 ...
1 LINEST...ING (603642.445 644752.951, 603681.131 ...
87 LINESTRING (603790.11 644674.653, 603794.733 6...
[88 rows x 1 columns]
angle_threshold = 0
def _selecting_incoming_lines(rab_multipolygons, edges, angle_threshold=0):
"""Selecting only the lines that are touching but not covered by
the ``rab_plus``.
If more than one LineString is incoming to ``rab_plus``, COINS algorithm
is used to select the line to be extended further.
"""
# selecting the lines that are touching but not covered by
touching = gpd.sjoin(edges, rab_multipolygons, predicate="touches")
edges_idx, rabs_idx = rab_multipolygons.sindex.query_bulk(
edges.geometry, predicate="covered_by"
)
E AttributeError: 'SpatialIndex' object has no attribute 'query_bulk'
momepy/preprocessing.py:854: AttributeError
_____ TestPreprocessing.test_roundabout_simplification_low_area_threshold ______
self = <momepy.tests.test_preprocess.TestPreprocessing object at 0x7f5879bedc10>
def test_roundabout_simplification_low_area_threshold(self):
check = mm.roundabout_simplification(
self.df_streets_rabs, self.df_rab_polys, area_threshold=0.8
)
momepy/tests/test_preprocess.py:147:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
momepy/preprocessing.py:1028: in roundabout_simplification
incoming_all, idx_drop = _selecting_incoming_lines(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rab_multipolygons =
geometry center_pt
index_right ...T (599418.751 659579.739)
12 GEOMETRYCOLLECTION (POLYGON ((603738.911 64467... POINT
(603746.613 644699.524)
edges = geometry
0 LINESTRING (599879.298 645412.868, 599869.276 ...
1 LINEST...ING (603642.445 644752.951, 603681.131 ...
87 LINESTRING (603790.11 644674.653, 603794.733 6...
[88 rows x 1 columns]
angle_threshold = 0
def _selecting_incoming_lines(rab_multipolygons, edges, angle_threshold=0):
"""Selecting only the lines that are touching but not covered by
the ``rab_plus``.
If more than one LineString is incoming to ``rab_plus``, COINS algorithm
is used to select the line to be extended further.
"""
# selecting the lines that are touching but not covered by
touching = gpd.sjoin(edges, rab_multipolygons, predicate="touches")
edges_idx, rabs_idx = rab_multipolygons.sindex.query_bulk(
edges.geometry, predicate="covered_by"
)
E AttributeError: 'SpatialIndex' object has no attribute 'query_bulk'
momepy/preprocessing.py:854: AttributeError
______ TestPreprocessing.test_roundabout_simplification_exclude_adjacent _______
self = <momepy.tests.test_preprocess.TestPreprocessing object at 0x7f5879bedf70>
def test_roundabout_simplification_exclude_adjacent(self):
check = mm.roundabout_simplification(
self.df_streets_rabs, self.df_rab_polys, include_adjacent=False
)
momepy/tests/test_preprocess.py:154:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
momepy/preprocessing.py:1028: in roundabout_simplification
incoming_all, idx_drop = _selecting_incoming_lines(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rab_multipolygons =
geometry center_pt
index_right ...T (599418.751 659579.739)
12 MULTIPOLYGON (((603763.387 644717.407, 603768.... POINT
(603746.613 644699.524)
edges = geometry
0 LINESTRING (599879.298 645412.868, 599869.276 ...
1 LINEST...ING (603642.445 644752.951, 603681.131 ...
87 LINESTRING (603790.11 644674.653, 603794.733 6...
[88 rows x 1 columns]
angle_threshold = 0
def _selecting_incoming_lines(rab_multipolygons, edges, angle_threshold=0):
"""Selecting only the lines that are touching but not covered by
the ``rab_plus``.
If more than one LineString is incoming to ``rab_plus``, COINS algorithm
is used to select the line to be extended further.
"""
# selecting the lines that are touching but not covered by
touching = gpd.sjoin(edges, rab_multipolygons, predicate="touches")
edges_idx, rabs_idx = rab_multipolygons.sindex.query_bulk(
edges.geometry, predicate="covered_by"
)
E AttributeError: 'SpatialIndex' object has no attribute 'query_bulk'
momepy/preprocessing.py:854: AttributeError
______ TestPreprocessing.test_roundabout_simplification_center_type_mean _______
self = <momepy.tests.test_preprocess.TestPreprocessing object at 0x7f5879bee150>
def test_roundabout_simplification_center_type_mean(self):
check = mm.roundabout_simplification(
self.df_streets_rabs, self.df_rab_polys, center_type="mean"
)
momepy/tests/test_preprocess.py:161:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
momepy/preprocessing.py:1028: in roundabout_simplification
incoming_all, idx_drop = _selecting_incoming_lines(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
rab_multipolygons =
geometry center_pt
index_right ...T (599418.756 659576.885)
12 GEOMETRYCOLLECTION (POLYGON ((603738.911 64467... POINT
(603746.494 644701.237)
edges = geometry
0 LINESTRING (599879.298 645412.868, 599869.276 ...
1 LINEST...ING (603642.445 644752.951, 603681.131 ...
87 LINESTRING (603790.11 644674.653, 603794.733 6...
[88 rows x 1 columns]
angle_threshold = 0
def _selecting_incoming_lines(rab_multipolygons, edges, angle_threshold=0):
"""Selecting only the lines that are touching but not covered by
the ``rab_plus``.
If more than one LineString is incoming to ``rab_plus``, COINS algorithm
is used to select the line to be extended further.
"""
# selecting the lines that are touching but not covered by
touching = gpd.sjoin(edges, rab_multipolygons, predicate="touches")
edges_idx, rabs_idx = rab_multipolygons.sindex.query_bulk(
edges.geometry, predicate="covered_by"
)
E AttributeError: 'SpatialIndex' object has no attribute 'query_bulk'
momepy/preprocessing.py:854: AttributeError
=============================== warnings summary ===============================
momepy/tests/test_dimension.py::TestDimensions::test_PerimeterWall
momepy/tests/test_intensity.py::TestIntensity::test_Reached
momepy/tests/test_weights.py::TestWeights::test_sw_high
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_monepy/build/momepy/weights.py:124:
FutureWarning: `use_index` defaults to False but will default to True in future. Set
True/False directly to control this behavior and silence this warning
first_order = libpysal.weights.Queen.from_dataframe(
momepy/tests/test_dimension.py::TestDimensions::test_PerimeterWall
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_monepy/build/momepy/dimension.py:890:
FutureWarning: `use_index` defaults to False but will default to True in future. Set
True/False directly to control this behavior and silence this warning
spatial_weights = Queen.from_dataframe(gdf, silence_warnings=True)
momepy/tests/test_dimension.py: 56 warnings
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_monepy/build/momepy/dimension.py:908:
DeprecationWarning: The 'unary_union' attribute is deprecated, use the 'union_all()' method
instead.
dissolved = joined.buffer(0.01).unary_union
momepy/tests/test_dimension.py::TestDimensions::test_SegmentsLength
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_monepy/build/momepy/dimension.py:969:
FutureWarning: `use_index` defaults to False but will default to True in future. Set
True/False directly to control this behavior and silence this warning
spatial_weights = Queen.from_dataframe(gdf, silence_warnings=True)
momepy/tests/test_diversity.py: 2 warnings
momepy/tests/test_elements.py: 20 warnings
/usr/lib/python3/dist-packages/geopandas/array.py:1638: UserWarning: CRS not
set for some of the concatenation inputs. Setting output's CRS as WGS 84 /
Pseudo-Mercator (the single non-null crs provided).
return GeometryArray(data, crs=_get_common_crs(to_concat))
momepy/tests/test_elements.py: 16 warnings
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_monepy/build/momepy/elements.py:52:
DeprecationWarning: The 'unary_union' attribute is deprecated, use the 'union_all()' method
instead.
return gdf.buffer(buffer).unary_union
momepy/tests/test_elements.py: 21 warnings
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_monepy/build/momepy/elements.py:989:
DeprecationWarning: The 'unary_union' attribute is deprecated, use the 'union_all()' method
instead.
unioned = barriers.unary_union
momepy/tests/test_elements.py::TestElements::test_erroroneous_geom
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_monepy/build/momepy/tests/test_elements.py:86:
UserWarning: Tessellation contains MultiPolygon elements. Initial objects should be
edited. `unique_id` of affected elements: [146, 1, 147].
mm.Tessellation(df, "uID", self.limit)
momepy/tests/test_elements.py::TestElements::test_erroroneous_geom
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_monepy/build/momepy/tests/test_elements.py:91:
UserWarning: Tessellation does not fully match buildings. 1 element(s) collapsed during
generation - unique_id: {145}.
tess = mm.Tessellation(df, "uID", self.limit)
momepy/tests/test_elements.py: 3 warnings
momepy/tests/test_intensity.py: 7 warnings
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_monepy/build/momepy/elements.py:619:
FutureWarning: `use_index` defaults to False but will default to True in future. Set
True/False directly to control this behavior and silence this warning
weights = libpysal.weights.Queen.from_dataframe(cut, silence_warnings=True)
momepy/tests/test_elements.py::TestElements::test_get_node_id_ratio
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_monepy/build/momepy/tests/test_elements.py:164:
DeprecationWarning: The 'unary_union' attribute is deprecated, use the 'union_all()'
method instead.
convex_hull = edges.unary_union.convex_hull
momepy/tests/test_elements.py::TestElements::test_get_network_ratio
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_monepy/build/momepy/tests/test_elements.py:216:
DeprecationWarning: The 'unary_union' attribute is deprecated, use the 'union_all()'
method instead.
convex_hull = self.df_streets.unary_union.convex_hull
momepy/tests/test_graph.py: 16 warnings
momepy/tests/test_utils.py: 7 warnings
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_monepy/build/momepy/utils.py:99:
FutureWarning: `use_index` defaults to False but will default to True in future. Set
True/False directly to control this behavior and silence this warning
sw = libpysal.weights.Queen.from_dataframe(gdf_network,
silence_warnings=True)
momepy/tests/test_intensity.py::TestIntensity::test_Courtyards
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_monepy/build/momepy/intensity.py:250:
FutureWarning: `use_index` defaults to False but will default to True in future. Set
True/False directly to control this behavior and silence this warning
spatial_weights = Queen.from_dataframe(gdf, silence_warnings=True)
momepy/tests/test_intensity.py: 56 warnings
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_monepy/build/momepy/intensity.py:267:
DeprecationWarning: The 'unary_union' attribute is deprecated, use the 'union_all()' method
instead.
dissolved = joined.geometry.buffer(0.01).unary_union
momepy/tests/test_intensity.py::TestIntensity::test_Courtyards
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_monepy/build/momepy/tests/test_intensity.py:110:
FutureWarning: `use_index` defaults to False but will default to True in future. Set
True/False directly to control this behavior and silence this warning
sw = Queen.from_dataframe(self.df_buildings, silence_warnings=True)
momepy/tests/test_preprocess.py::TestPreprocessing::test_preprocess
momepy/tests/test_preprocess.py::TestPreprocessing::test_preprocess
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_monepy/build/momepy/preprocessing.py:84:
FutureWarning: `use_index` defaults to False but will default to True in future. Set
True/False directly to control this behavior and silence this warning
sw = libpysal.weights.contiguity.Rook.from_dataframe(blg,
silence_warnings=True)
momepy/tests/test_preprocess.py::TestPreprocessing::test_remove_false_nodes
momepy/tests/test_preprocess.py::TestPreprocessing::test_remove_false_nodes
momepy/tests/test_preprocess.py::TestPreprocessing::test_remove_false_nodes
/usr/lib/python3/dist-packages/geopandas/array.py:1638: UserWarning: CRS not
set for some of the concatenation inputs. Setting output's CRS as S-JTSK
(Ferro) / Krovak East North (the single non-null crs provided).
return GeometryArray(data, crs=_get_common_crs(to_concat))
momepy/tests/test_preprocess.py::TestPreprocessing::test_roundabout_simplification_default
momepy/tests/test_preprocess.py::TestPreprocessing::test_roundabout_simplification_high_circom_threshold
momepy/tests/test_preprocess.py::TestPreprocessing::test_roundabout_simplification_center_type_mean
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_monepy/build/momepy/preprocessing.py:758:
FutureWarning: Setting an item of incompatible dtype is deprecated and will raise an error
in a future version of pandas. Value '65.76687172246541' has dtype incompatible with int64,
please explicitly cast to a compatible dtype first.
rab_adj.loc[g.Index, "hdist"] = hdist
momepy/tests/test_preprocess.py::TestPreprocessing::test_roundabout_simplification_low_area_threshold
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_monepy/build/momepy/preprocessing.py:758:
FutureWarning: Setting an item of incompatible dtype is deprecated and will raise an error
in a future version of pandas. Value '38.03088320697853' has dtype incompatible with int64,
please explicitly cast to a compatible dtype first.
rab_adj.loc[g.Index, "hdist"] = hdist
momepy/tests/test_weights.py::TestWeights::test_sw_high
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_monepy/build/momepy/tests/test_weights.py:16:
FutureWarning: `use_index` defaults to False but will default to True in future. Set
True/False directly to control this behavior and silence this warning
first_order = libpysal.weights.Queen.from_dataframe(self.df_tessellation)
momepy/tests/test_weights.py::TestWeights::test_sw_high
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_monepy/build/momepy/weights.py:128:
FutureWarning: `use_index` defaults to False but will default to True in future. Set
True/False directly to control this behavior and silence this warning
first_order = libpysal.weights.Rook.from_dataframe(
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED momepy/tests/test_distribution.py::TestDistribution::test_SharedWalls
FAILED
momepy/tests/test_distribution.py::TestDistribution::test_SharedWallsRatio
FAILED
momepy/tests/test_distribution.py::TestDistribution::test_NeighboringStreetOrientationDeviation
FAILED momepy/tests/test_elements.py::TestElements::test_enclosed_tess - Attr...
FAILED momepy/tests/test_elements.py::TestElements::test_custom_enclosure_id
FAILED momepy/tests/test_elements.py::TestElements::test_Blocks_inner - Attri...
FAILED momepy/tests/test_elements.py::TestElements::test_get_node_id_ratio - ...
FAILED momepy/tests/test_elements.py::TestElements::test_enclosures - Attribu...
FAILED momepy/tests/test_elements.py::TestElements::test_get_network_ratio - ...
FAILED
momepy/tests/test_preprocess.py::TestPreprocessing::test_roundabout_simplification_default
FAILED
momepy/tests/test_preprocess.py::TestPreprocessing::test_roundabout_simplification_high_circom_threshold
FAILED
momepy/tests/test_preprocess.py::TestPreprocessing::test_roundabout_simplification_low_area_threshold
FAILED
momepy/tests/test_preprocess.py::TestPreprocessing::test_roundabout_simplification_exclude_adjacent
FAILED
momepy/tests/test_preprocess.py::TestPreprocessing::test_roundabout_simplification_center_type_mean
==== 14 failed, 88 passed, 2 skipped, 3 deselected, 226 warnings in 10.76s =====
E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_monepy/build; python3.12 -m pytest
momepy/tests -v -k 'not test_Theil and not test_Gini and not test_Alignment'
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.12
returned exit code 13
make: *** [debian/rules:12: build] Error 25
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
--------------------------------------------------------------------------------
The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:
https://people.debian.org/~sanvila/build-logs/202410/
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 could not 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 affects, so that this is still visible in the BTS web
page for this package.
Thanks.