Bug#997486: pycoast: FTBFS: dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.9 returned exit code 13

Lucas Nussbaum lucas at debian.org
Sat Oct 23 21:40:07 BST 2021


Source: pycoast
Version: 1.5.0+dfsg-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20211023 ftbfs-bookworm

Hi,

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


Relevant part (hopefully):
> make[2]: Entering directory '/<<PKGBUILDDIR>>/docs'
> sphinx-build -b html -d build/doctrees  -a source build/html
> Running Sphinx v4.2.0
> making output directory... done
> loading intersphinx inventory from https://docs.python.org/3/objects.inv...
> loading intersphinx inventory from https://docs.scipy.org/doc/numpy/objects.inv...
> loading intersphinx inventory from https://docs.scipy.org/doc/scipy/reference/objects.inv...
> loading intersphinx inventory from https://xarray.pydata.org/en/stable/objects.inv...
> loading intersphinx inventory from https://dask.pydata.org/en/latest/objects.inv...
> loading intersphinx inventory from https://pyresample.readthedocs.io/en/stable/objects.inv...
> loading intersphinx inventory from https://trollsift.readthedocs.io/en/stable/objects.inv...
> loading intersphinx inventory from https://trollimage.readthedocs.io/en/stable/objects.inv...
> loading intersphinx inventory from https://pillow.readthedocs.io/en/stable/objects.inv...
> intersphinx inventory has moved: https://docs.scipy.org/doc/numpy/objects.inv -> https://numpy.org/doc/stable/objects.inv
> intersphinx inventory has moved: https://dask.pydata.org/en/latest/objects.inv -> https://docs.dask.org/en/latest/objects.inv
> building [mo]: all of 0 po files
> building [html]: all source files
> updating environment: [new config] 11 added, 0 changed, 0 removed
> reading sources... [  9%] api/pycoast
> reading sources... [ 18%] config
> reading sources... [ 27%] graticule
> reading sources... [ 36%] high_quality_contours
> reading sources... [ 45%] index
> reading sources... [ 54%] installation
> reading sources... [ 63%] points
> reading sources... [ 72%] polygons_and_lines
> reading sources... [ 81%] shapefiles
> reading sources... [ 90%] test
> reading sources... [100%] usage
> 
> looking for now-outdated files... none found
> pickling environment... done
> checking consistency... done
> preparing documents... done
> writing output... [  9%] api/pycoast
> writing output... [ 18%] config
> writing output... [ 27%] graticule
> writing output... [ 36%] high_quality_contours
> writing output... [ 45%] index
> writing output... [ 54%] installation
> writing output... [ 63%] points
> writing output... [ 72%] polygons_and_lines
> writing output... [ 81%] shapefiles
> writing output... [ 90%] test
> writing output... [100%] usage
> 
> generating indices... genindex py-modindex done
> writing additional pages... search done
> copying images... [  7%] images/euro_grid.png
> copying images... [ 15%] images/euro_grid_agg.png
> copying images... [ 23%] images/grid_geos_agg.png
> copying images... [ 30%] images/nh_grid_coarse_agg.png
> copying images... [ 38%] images/geos_coast_agg.png
> copying images... [ 46%] images/euro_coast_agg.png
> copying images... [ 53%] images/nh_points_agg.png
> copying images... [ 61%] images/nh_polygons_agg.png
> copying images... [ 69%] images/nh_polygons_lines_agg.png
> copying images... [ 76%] images/brazil_shapefiles_agg.png
> copying images... [ 84%] images/BMNG_clouds_201109181715_areaT2.png
> copying images... [ 92%] images/euro_coast.png
> copying images... [100%] images/geos_coast.png
> 
> copying static files... done
> copying extra files... done
> dumping search index in English (code: en)... done
> dumping object inventory... done
> build succeeded.
> 
> The HTML pages are in build/html.
> 
> Build finished. The HTML pages are in build/html.
> make[2]: Leaving directory '/<<PKGBUILDDIR>>/docs'
> rm -f -r docs/build/html/_images
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
>    dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:232: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pycoast/build; python3.9 -m pytest /<<PKGBUILDDIR>>/pycoast/tests
> ============================= test session starts ==============================
> platform linux -- Python 3.9.7, pytest-6.2.5, py-1.10.0, pluggy-0.13.0
> rootdir: /<<PKGBUILDDIR>>
> collected 33 items
> 
> ../../../pycoast/tests/test_pycoast.py F.s.F............s............... [100%]
> 
> =================================== FAILURES ===================================
> _________________________ TestPIL.test_add_points_pil __________________________
> 
> self = <pycoast.tests.test_pycoast.TestPIL testMethod=test_add_points_pil>
> 
>     def test_add_points_pil(self):
>         from pycoast import ContourWriterPIL
>         from pyresample.geometry import AreaDefinition
>     
>         font_file = os.path.join(os.path.dirname(__file__), 'test_data',
>                                  'DejaVuSerif.ttf')
>         grid_img = Image.open(os.path.join(os.path.dirname(__file__),
>                                            'nh_points_pil.png'))
>         grid_data = np.array(grid_img)
>     
>         img = Image.new('RGB', (1024, 1024), (255, 255, 255))
>     
>         proj4_string = '+proj=laea +lat_0=90 +lon_0=0 +a=6371228.0 +units=m'
>         area_extent = (-5326849.0625, -5326849.0625,
>                        5326849.0625, 5326849.0625)
>     
>         area_def = AreaDefinition('nh', 'nh', 'nh', proj4_string,
>                                   1024, 1024, area_extent)
>     
>         cw = ContourWriterPIL(gshhs_root_dir)
>         cw.add_coastlines(img, area_def, outline='black', resolution='l',
>                           level=4)
>         cw.add_borders(img, area_def, outline='black', level=1,
>                        resolution='c')
>     
>         points_list = [((13.4050, 52.5200), 'Berlin')]
>         cw.add_points(img, area_def, points_list=points_list, font_file=font_file,
>                       symbol='asterisk', ptsize=6, outline='red',
>                       box_outline='black')
>     
>         points_list = [((12.4964, 41.9028), 'Rome')]
>         cw.add_points(img, area_def, points_list=points_list, font_file=font_file,
>                       symbol='square', ptsize=6, outline='blue', fill='yellow',
>                       box_outline='black')
>     
>         res = np.array(img)
> >       self.assertTrue(fft_metric(grid_data, res),
>                         'Writing of nh points failed')
> E       AssertionError: False is not true : Writing of nh points failed
> 
> ../../../pycoast/tests/test_pycoast.py:392: AssertionError
> ------------------------------ Captured log call -------------------------------
> WARNING  pycoast.cw_pil:cw_pil.py:67 Box background will not be added; please use ContourWriterAGG module
> WARNING  pycoast.cw_pil:cw_pil.py:67 Box background will not be added; please use ContourWriterAGG module
> _______________ TestPIL.test_config_file_points_and_borders_pil ________________
> 
> self = <pycoast.tests.test_pycoast.TestPIL testMethod=test_config_file_points_and_borders_pil>
> 
>     def test_config_file_points_and_borders_pil(self):
>         from pycoast import ContourWriterPIL
>         from pyresample.geometry import AreaDefinition
>     
>         config_file = os.path.join(os.path.dirname(__file__),
>                                    'nh_points_pil.ini')
>     
>         grid_img = Image.open(os.path.join(os.path.dirname(__file__),
>                                            'nh_points_cfg_pil.png'))
>         grid_data = np.array(grid_img)
>     
>         img = Image.new('RGB', (1024, 1024), (255, 255, 255))
>     
>         proj4_string = '+proj=laea +lat_0=90 +lon_0=0 +a=6371228.0 +units=m'
>         area_extent = (-5326849.0625, -5326849.0625,
>                        5326849.0625, 5326849.0625)
>     
>         area_def = AreaDefinition('nh', 'nh', 'nh', proj4_string,
>                                   1024, 1024, area_extent)
>     
>         cw = ContourWriterPIL(gshhs_root_dir)
>     
>         cw.add_overlay_from_config(config_file, area_def, img)
>     
>         res = np.array(img)
> >       self.assertTrue(fft_metric(grid_data, res),
>                         'Writing of nh points failed')
> E       AssertionError: False is not true : Writing of nh points failed
> 
> ../../../pycoast/tests/test_pycoast.py:476: AssertionError
> ------------------------------ Captured log call -------------------------------
> WARNING  pycoast.cw_pil:cw_pil.py:67 Box background will not be added; please use ContourWriterAGG module
> WARNING  pycoast.cw_pil:cw_pil.py:67 Box background will not be added; please use ContourWriterAGG module
> =============================== warnings summary ===============================
> pycoast/tests/test_pycoast.py::TestPIL::test_add_points_pil
>   /usr/lib/python3/dist-packages/pyresample/bilinear/__init__.py:49: UserWarning: XArray and/or zarr not found, XArrayBilinearResampler won't be available.
>     warnings.warn("XArray and/or zarr not found, XArrayBilinearResampler won't be available.")
> 
> pycoast/tests/test_pycoast.py::TestPIL::test_add_points_pil
> pycoast/tests/test_pycoast.py::TestPIL::test_add_points_pil
> pycoast/tests/test_pycoast.py::TestPIL::test_config_file_points_and_borders_pil
> pycoast/tests/test_pycoast.py::TestPIL::test_config_file_points_and_borders_pil
> pycoast/tests/test_pycoast.py::TestPILAGG::test_add_points_agg
> pycoast/tests/test_pycoast.py::TestPILAGG::test_add_points_agg
> pycoast/tests/test_pycoast.py::TestPILAGG::test_config_file_points_and_borders_agg
> pycoast/tests/test_pycoast.py::TestPILAGG::test_config_file_points_and_borders_agg
>   /usr/lib/python3/dist-packages/pyresample/geometry.py:1921: DeprecationWarning: 'get_xy_from_lonlat' is deprecated, please use 'get_array_indices_from_lonlat' instead.
>     warnings.warn("'get_xy_from_lonlat' is deprecated, please use "
> 
> -- Docs: https://docs.pytest.org/en/stable/warnings.html
> =========================== short test summary info ============================
> FAILED ../../../pycoast/tests/test_pycoast.py::TestPIL::test_add_points_pil
> FAILED ../../../pycoast/tests/test_pycoast.py::TestPIL::test_config_file_points_and_borders_pil
> ============= 2 failed, 29 passed, 2 skipped, 9 warnings in 27.89s =============
> E: pybuild pybuild:354: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_pycoast/build; python3.9 -m pytest /<<PKGBUILDDIR>>/pycoast/tests
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.9 returned exit code 13


The full build log is available from:
http://qa-logs.debian.net/2021/10/23/pycoast_1.5.0+dfsg-1_unstable.log

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.



More information about the Pkg-grass-devel mailing list