Bug#1014452: pyresample: Test failures with rasterio 1.3.0
Antonio Valentino
antonio.valentino at tiscali.it
Fri Jul 8 08:03:57 BST 2022
Dear Bas,
On Wed, 06 Jul 2022 13:04:41 +0200 Bas Couwenberg <sebastic at xs4all.nl>
wrote:
> Source: pyresample
> Version: 1.23.0-1
> Severity: serious
> Tags: ftbfs upstream
>
> Dear Maintainer,
>
> Your package FTBFS with rasterio 1.3.0 due to test failures which also affect the autopkgtests:
>
> ____________________ TestMisc.test_get_area_def_from_raster ____________________
>
> self = <pyresample.test.test_utils.TestMisc testMethod=test_get_area_def_from_raster>
>
> def test_get_area_def_from_raster(self):
> from affine import Affine
> > from rasterio.crs import CRS as RCRS
>
> /usr/lib/python3/dist-packages/pyresample/test/test_utils.py:441:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> /usr/lib/python3/dist-packages/rasterio/__init__.py:14: in <module>
> from rasterio.crs import CRS
> rasterio/crs.pyx:1: in init rasterio.crs
> ???
> rasterio/_base.pyx:22: in init rasterio._base
> ???
> /usr/lib/python3/dist-packages/rasterio/dtypes.py:10: in <module>
> from rasterio.env import GDALVersion
> /usr/lib/python3/dist-packages/rasterio/env.py:16: in <module>
> from rasterio._env import (
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> > ???
> E ImportError: /usr/lib/python3/dist-packages/rasterio/_filepath.cpython-39-x86_64-linux-gnu.so: undefined symbol: VSIAllocFilesystemPluginCallbacksStruct
>
> rasterio/_env.pyx:1: ImportError
> ___________ TestMisc.test_get_area_def_from_raster_extracts_proj_id ____________
>
> self = <pyresample.test.test_utils.TestMisc testMethod=test_get_area_def_from_raster_extracts_proj_id>
>
> def test_get_area_def_from_raster_extracts_proj_id(self):
> > from rasterio.crs import CRS as RCRS
>
> /usr/lib/python3/dist-packages/pyresample/test/test_utils.py:465:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>
> """Rasterio"""
>
> from collections import namedtuple
> from contextlib import ExitStack
> import logging
> from logging import NullHandler
> import os
> import warnings
>
> import rasterio._loading
> > with rasterio._loading.add_gdal_dll_directories():
> E AttributeError: partially initialized module 'rasterio' has no attribute '_loading' (most likely due to a circular import)
>
> /usr/lib/python3/dist-packages/rasterio/__init__.py:11: AttributeError
I'm not able to reproduce the issue in sid.
Both the package build and autopkgtest seem to work with rasterionv1.3.0
Also rasterio seems to properly load the '_loading' module:
$ python3
Python 3.10.5 (main, Jun 8 2022, 09:26:22) [GCC 11.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import rasterio
>>> rasterio.__version__
'1.3.0'
>>> rasterio._loading
<module 'rasterio._loading' from
'/usr/lib/python3/dist-packages/rasterio/_loading.py'>
I see
> E ImportError:
/usr/lib/python3/dist-packages/rasterio/_filepath.cpython-39-x86_64-linux-gnu.so:
undefined symbol: VSIAllocFilesystemPluginCallbacksStruct
could it be a problem related to a mismatch with the GDAL version?
Any idea on how to proceed?
kind regards
--
Antonio Valentino
More information about the Pkg-grass-devel
mailing list