Bug#1025612: pyresample: FTBFS with Shapely 2.0

Bas Couwenberg sebastic at xs4all.nl
Tue Dec 6 15:57:42 GMT 2022


Source: pyresample
Version: 1.26.0-4
Severity: important
Tags: upstream ftbfs
User: debian-gis at lists.debian.org
Usertags: shapely-2.0
Control: forwarded -1 https://github.com/pytroll/pyresample/issues/484
Control: block -1 by 1025611

Dear Maintainer,

Your package FTBFS with Shapely 2.0:

 =================================== FAILURES ===================================
 ___________________ Test.test_area_def_geocentric_resolution ___________________
 
 self = <pyresample.test.test_geometry.Test testMethod=test_area_def_geocentric_resolution>
 
     def test_area_def_geocentric_resolution(self):
         """Test the AreaDefinition.geocentric_resolution method."""
         from pyresample import get_area_def
         area_extent = (-5570248.477339745, -5561247.267842293, 5567248.074173927, 5570248.477339745)
         proj_dict = {'a': 6378169.0, 'b': 6356583.8, 'h': 35785831.0,
                      'lon_0': 0.0, 'proj': 'geos', 'units': 'm'}
         # metered projection
         area_def = get_area_def('orig', 'Test area', 'test',
                                 proj_dict,
                                 3712, 3712,
                                 area_extent)
         geo_res = area_def.geocentric_resolution()
 >       np.testing.assert_allclose(10646.562531, geo_res)
 E       AssertionError: 
 E       Not equal to tolerance rtol=1e-07, atol=0
 E       
 E       Mismatched elements: 1 / 1 (100%)
 E       Max absolute difference: 0.09742581
 E       Max relative difference: 9.15100108e-06
 E        x: array(10646.562531)
 E        y: array(10646.465105)
 
 pyresample/test/test_geometry.py:1432: AssertionError
 ____________________________ Test.test_cartopy_crs _____________________________
 
 self = <pyresample.test.test_geometry.Test testMethod=test_cartopy_crs>
 
     def test_cartopy_crs(self):
         """Test conversion from area definition to cartopy crs."""
         europe = geometry.AreaDefinition(area_id='areaD',
                                          description='Europe (3km, HRV, VTC)',
                                          proj_id='areaD',
                                          projection={'a': '6378144.0',
                                                      'b': '6356759.0',
                                                      'lat_0': '50.00',
                                                      'lat_ts': '50.00',
                                                      'lon_0': '8.00',
                                                      'proj': 'stere'},
                                          width=800, height=800,
                                          area_extent=[-1370912.72,
                                                       -909968.64000000001,
                                                       1029087.28,
                                                       1490031.3600000001])
         seviri = geometry.AreaDefinition(area_id='seviri',
                                          description='SEVIRI HRIT like (flipped, south up)',
                                          proj_id='seviri',
                                          projection={'proj': 'geos',
                                                      'lon_0': 0.0,
                                                      'a': 6378169.00,
                                                      'b': 6356583.80,
                                                      'h': 35785831.00,
                                                      'units': 'm'},
                                          width=123, height=123,
                                          area_extent=[5500000, 5500000, -5500000, -5500000])
     
         for area_def in [europe, seviri]:
 >           crs = area_def.to_cartopy_crs()
 
 pyresample/test/test_geometry.py:120: 
 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
 pyresample/geometry.py:1929: in to_cartopy_crs
     import cartopy.crs as ccrs
 /usr/lib/python3/dist-packages/cartopy/__init__.py:107: in <module>
     import cartopy.crs  # noqa: E402  module-level imports
 /usr/lib/python3/dist-packages/cartopy/crs.py:27: in <module>
     import cartopy.trace
 _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
 
 >   ???
 E   ImportError: cannot import name lgeos
 
 lib/cartopy/trace.pyx:56: ImportError

This last test failure is caused by python-cartopy: #1025611

Kind Regards,

Bas



More information about the Pkg-grass-devel mailing list