Your message dated Sat, 3 Sep 2022 14:05:45 +0100
with message-id <c1fb97b9-b9e3-5a8a-1f97-98947c186...@sceal.ie>
and subject line Closing
has caused the Debian Bug report #1017257,
regarding cfgrib: FTBFS: make[1]: *** [debian/rules:19: override_dh_auto_test] 
Error 13
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
1017257: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1017257
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: cfgrib
Version: 0.9.10.1-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lu...@debian.org
Usertags: ftbfs-20220813 ftbfs-bookworm

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> for p in python3.10; do \
> PY3VERNUM=`echo $p | sed -e 's/python//' `; \
>       pybuild --test --test-pytest -i $p -p $PY3VERNUM  ;  \
>                 done
> I: pybuild base:239: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_cfgrib/build; 
> python3.10 -m pytest tests
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.10.6, pytest-7.1.2, pluggy-1.0.0+repack
> rootdir: /<<PKGBUILDDIR>>, configfile: pyproject.toml
> collected 113 items / 1 skipped
> 
> tests/test_10_cfunits.py .                                               [  
> 0%]
> tests/test_20_cfcoords.py .....                                          [  
> 5%]
> tests/test_20_main.py .                                                  [  
> 6%]
> tests/test_20_messages.py .........                                      [ 
> 14%]
> tests/test_25_cfmessage.py .....                                         [ 
> 18%]
> tests/test_30_dataset.py ..........................                      [ 
> 41%]
> tests/test_40_xarray_store.py .....x..                                   [ 
> 48%]
> tests/test_40_xarray_to_grib_regular_ll.py .....                         [ 
> 53%]
> tests/test_50_datamodels.py ..                                           [ 
> 54%]
> tests/test_50_sample_data.py .....................X.x....x.X.x.xx        [ 
> 86%]
> tests/test_50_xarray_getitem.py ..........                               [ 
> 95%]
> tests/test_50_xarray_plugin.py F.FF.                                     
> [100%]
> 
> =================================== FAILURES 
> ===================================
> _________________________________ test_plugin 
> __________________________________
> 
>     def test_plugin() -> None:
>         engines = xr.backends.list_engines()
>         cfgrib_entrypoint = engines["cfgrib"]
> >       assert cfgrib_entrypoint.__module__ == "cfgrib.xarray_plugin"
> E       AssertionError: assert 'xarray.backends.cfgrib_' == 
> 'cfgrib.xarray_plugin'
> E         - cfgrib.xarray_plugin
> E         + xarray.backends.cfgrib_
> 
> tests/test_50_xarray_plugin.py:16: AssertionError
> __________________________ test_xr_open_dataset_dict 
> ___________________________
> 
>     def test_xr_open_dataset_dict() -> None:
>         fieldset = {
>             -10: {
>                 "gridType": "regular_ll",
>                 "Nx": 2,
>                 "Ny": 3,
>                 "distinctLatitudes": [-10.0, 0.0, 10.0],
>                 "distinctLongitudes": [0.0, 10.0],
>                 "paramId": 167,
>                 "shortName": "2t",
>                 "values": [[1, 2], [3, 4], [5, 6]],
>             }
>         }
>     
> >       ds = xr.open_dataset(fieldset, engine="cfgrib")
> 
> tests/test_50_xarray_plugin.py:44: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> /usr/lib/python3/dist-packages/xarray/backends/api.py:531: in open_dataset
>     backend_ds = backend.open_dataset(
> /usr/lib/python3/dist-packages/xarray/backends/cfgrib_.py:129: in open_dataset
>     store = CfGribDataStore(
> /usr/lib/python3/dist-packages/xarray/backends/cfgrib_.py:68: in __init__
>     self.ds = cfgrib.open_file(filename, **backend_kwargs)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> path = {-10: {'Nx': 2, 'Ny': 3, 'distinctLatitudes': [-10.0, 0.0, 10.0], 
> 'distinctLongitudes': [0.0, 10.0], ...}}
> grib_errors = 'warn', indexpath = '{path}.{short_hash}.idx', filter_by_keys = 
> {}
> read_keys = [], time_dims = ('time', 'step'), extra_coords = {}
> kwargs = {'encode_cf': ('parameter', 'time', 'geography', 'vertical'), 
> 'squeeze': True}
> 
>     def open_file(
>         path: T.Union[str, "os.PathLike[str]"],
>         grib_errors: str = "warn",
>         indexpath: str = messages.DEFAULT_INDEXPATH,
>         filter_by_keys: T.Dict[str, T.Any] = {},
>         read_keys: T.Sequence[str] = (),
>         time_dims: T.Sequence[str] = ("time", "step"),
>         extra_coords: T.Dict[str, str] = {},
>         **kwargs: T.Any,
>     ) -> Dataset:
>         """Open a GRIB file as a ``cfgrib.Dataset``."""
> >       path = os.fspath(path)
> E       TypeError: expected str, bytes or os.PathLike object, not dict
> 
> cfgrib/dataset.py:758: TypeError
> __________________________ test_xr_open_dataset_list 
> ___________________________
> 
>     def test_xr_open_dataset_list() -> None:
>         fieldset = [
>             {
>                 "gridType": "regular_ll",
>                 "Nx": 2,
>                 "Ny": 3,
>                 "distinctLatitudes": [-10.0, 0.0, 10.0],
>                 "distinctLongitudes": [0.0, 10.0],
>                 "paramId": 167,
>                 "shortName": "2t",
>                 "values": [[1, 2], [3, 4], [5, 6]],
>             }
>         ]
>     
> >       ds = xr.open_dataset(fieldset, engine="cfgrib")
> 
> tests/test_50_xarray_plugin.py:64: 
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> /usr/lib/python3/dist-packages/xarray/backends/api.py:531: in open_dataset
>     backend_ds = backend.open_dataset(
> /usr/lib/python3/dist-packages/xarray/backends/cfgrib_.py:129: in open_dataset
>     store = CfGribDataStore(
> /usr/lib/python3/dist-packages/xarray/backends/cfgrib_.py:68: in __init__
>     self.ds = cfgrib.open_file(filename, **backend_kwargs)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
> _ 
> 
> path = [{'Nx': 2, 'Ny': 3, 'distinctLatitudes': [-10.0, 0.0, 10.0], 
> 'distinctLongitudes': [0.0, 10.0], ...}]
> grib_errors = 'warn', indexpath = '{path}.{short_hash}.idx', filter_by_keys = 
> {}
> read_keys = [], time_dims = ('time', 'step'), extra_coords = {}
> kwargs = {'encode_cf': ('parameter', 'time', 'geography', 'vertical'), 
> 'squeeze': True}
> 
>     def open_file(
>         path: T.Union[str, "os.PathLike[str]"],
>         grib_errors: str = "warn",
>         indexpath: str = messages.DEFAULT_INDEXPATH,
>         filter_by_keys: T.Dict[str, T.Any] = {},
>         read_keys: T.Sequence[str] = (),
>         time_dims: T.Sequence[str] = ("time", "step"),
>         extra_coords: T.Dict[str, str] = {},
>         **kwargs: T.Any,
>     ) -> Dataset:
>         """Open a GRIB file as a ``cfgrib.Dataset``."""
> >       path = os.fspath(path)
> E       TypeError: expected str, bytes or os.PathLike object, not list
> 
> cfgrib/dataset.py:758: TypeError
> =============================== warnings summary 
> ===============================
> .pybuild/cpython3_3.10_cfgrib/build/tests/test_50_xarray_plugin.py::test_read
>   
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_cfgrib/build/cfgrib/xarray_plugin.py:4:
>  DeprecationWarning: The distutils package is deprecated and slated for 
> removal in Python 3.12. Use setuptools or check PEP 632 for potential 
> alternatives
>     from distutils.version import LooseVersion
> 
> -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
> =========================== short test summary info 
> ============================
> FAILED tests/test_50_xarray_plugin.py::test_plugin - AssertionError: assert 
> '...
> FAILED tests/test_50_xarray_plugin.py::test_xr_open_dataset_dict - 
> TypeError:...
> FAILED tests/test_50_xarray_plugin.py::test_xr_open_dataset_list - 
> TypeError:...
> == 3 failed, 102 passed, 1 skipped, 6 xfailed, 2 xpassed, 1 warning in 8.49s 
> ===
> E: pybuild pybuild:369: test: plugin distutils failed with: exit code=1: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_cfgrib/build; python3.10 -m pytest 
> tests
> make[1]: *** [debian/rules:19: override_dh_auto_test] Error 13


The full build log is available from:
http://qa-logs.debian.net/2022/08/13/cfgrib_0.9.10.1-1_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20220813;users=lu...@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20220813&fusertaguser=lu...@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please marking it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.

--- End Message ---
--- Begin Message ---
Fixed in 0.9.10.1-2 release

thanks


--
Alastair McKinstry,
GPG: 82383CE9165B347C787081A2CBE6BB4E5D9AD3A5
ph: +353 87 6847928 e: alast...@sceal.ie, im: @sceal.ie:mckinstry

--- End Message ---

Reply via email to