[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#995021: osmnx: autopkgtest regression on armhf: iteration over a 0-d array



Source: osmnx
Version: 1.1.1+ds-2
X-Debbugs-CC: debian-ci@lists.debian.org
Severity: serious
User: debian-ci@lists.debian.org
Usertags: regression

Dear maintainer(s),

With a recent upload of osmnx the autopkgtest of osmnx fails in testing
on armhf when that autopkgtest is run with the binary packages of osmnx
from unstable. It passes when run with only packages from testing. In
tabular form:

                       pass            fail
osmnx                  from testing    1.1.1+ds-2
all others             from testing    from testing

I copied some of the output at the bottom of this report. On top of the
failure, you test seems to be sending requests to the internet, please
use the needs-internet restriction [0] to mark is as such.

Currently this regression is blocking the migration to testing [1]. Can
you please investigate the situation and fix it?

More information about this bug and the reason for filing it can be found on
https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation

Paul

[0]
https://salsa.debian.org/ci-team/autopkgtest/-/blob/master/doc/README.package-tests.rst
[1] https://qa.debian.org/excuses.php?package=osmnx

https://ci.debian.net/data/autopkgtest/testing/armhf/o/osmnx/15474259/log.gz

=================================== FAILURES
===================================
________________________________ test_elevation
________________________________
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
  File "/usr/lib/python3.9/multiprocessing/pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
  File "/usr/lib/python3.9/multiprocessing/pool.py", line 51, in starmapstar
    return list(itertools.starmap(args[0], args[1]))
  File
"/tmp/autopkgtest-lxc.2hzrzn35/downtmp/build.elV/src/osmnx/elevation.py", line
49, in _query_raster
    return zip(nodes.index, values)
TypeError: iteration over a 0-d array
"""

The above exception was the direct cause of the following exception:

    def test_elevation():

        G = ox.graph_from_address(address=address, dist=500,
dist_type="bbox", network_type="bike")
        rasters = list(Path("tests/input_data").glob("elevation*.tif"))

        # add node elevations from a single raster file (some nodes will
be null)
        G = ox.elevation.add_node_elevations_raster(G, rasters[0], cpus=1)

        # add node elevations from multiple raster files
>       G = ox.elevation.add_node_elevations_raster(G, rasters)

/usr/share/doc/python-osmnx-doc/examples/tests/test_osmnx.py:201:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _
osmnx/elevation.py:98: in add_node_elevations_raster
    results = sma.get()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
_ _ _ _

self = <multiprocessing.pool.MapResult object at 0xeaa7b5e0>, timeout = None

    def get(self, timeout=None):
        self.wait(timeout)
        if not self.ready():
            raise TimeoutError
        if self._success:
            return self._value
        else:
>           raise self._value
E           TypeError: iteration over a 0-d array

/usr/lib/python3.9/multiprocessing/pool.py:771: TypeError

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


Reply to: