[Bug 2044216] Re: FTBFS due to legacy resampler code

Simon Quigley 2044216 at bugs.launchpad.net
Wed Nov 22 13:49:25 UTC 2023


Uploaded, thanks!

** Changed in: satpy (Ubuntu)
       Status: New => Fix Committed

** Changed in: satpy (Ubuntu)
   Importance: Undecided => Wishlist

** Changed in: satpy (Ubuntu)
     Assignee: (unassigned) => Aaron Rainbolt (arraybolt3)

** Changed in: satpy (Ubuntu)
   Importance: Wishlist => High

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/2044216

Title:
  FTBFS due to legacy resampler code

Status in satpy package in Ubuntu:
  Fix Committed

Bug description:
  Legacy resampler code in the satpy package is causing an FTBFS due to
  a failed `_fornav` import.

  ```
  dh_auto_test -O--buildsystem=pybuild
  I: pybuild base:310: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_satpy/build; python3.12 -m pytest -k " not test_retrieve and not test_offline_retrieve and not test_retrieve_all and not test_download_script and not test_start_time and not test_end_time and not test_mimic_TPW2_nc and not TestAngleGeneration and not test_get_luts and not test_convert_remote_files_to_fsspec_fsfile and not test_convert_remote_files_to_fsspec_filename_dict and not test_convert_remote_files_to_fsspec_mixed_sources and not test_get_satpos_from_satname and not test_distributed and not test_rayleigh_corrector and not test_rayleigh_with_angles and not test_float_write_with_unit_conversion and not test_aggregate and not test_median and not test_no_downloads_in_tests and not test_colorize_with_interpolation and not test_colorize" --ignore=satpy/tests/reader_tests/test_insat3d_img_l1b_h5.py --ignore=satpy/tests/reader_tests/gms/test_gms5_vissr_l1b.py --ignore=satpy/tests/reader_tests/gms/test_gms5_vissr_navigation.py satpy/tests
  ImportError while loading conftest '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_satpy/build/satpy/conftest.py'.
  satpy/__init__.py:29: in <module>
      from satpy.dataset import DataID, DataQuery  # noqa
  satpy/dataset/__init__.py:23: in <module>
      from .metadata import combine_metadata  # noqa
  satpy/dataset/metadata.py:27: in <module>
      from satpy.writers.utils import flatten_dict
  satpy/writers/__init__.py:37: in <module>
      from satpy.resample import get_area_def
  satpy/resample.py:156: in <module>
      from pyresample.ewa import fornav, ll2cr
  /usr/lib/python3/dist-packages/pyresample/ewa/__init__.py:69: in <module>
      from .ewa import fornav, ll2cr  # noqa
  /usr/lib/python3/dist-packages/pyresample/ewa/ewa.py:24: in <module>
      from pyresample.ewa import _fornav, _ll2cr
  E   ImportError: cannot import name '_fornav' from partially initialized module 'pyresample.ewa' (most likely due to a circular import) (/usr/lib/python3/dist-packages/pyresample/ewa/__init__.py)
  E: pybuild pybuild:395: test: plugin pyproject failed with: exit code=4: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_satpy/build; python3.12 -m pytest -k " not test_retrieve and not test_offline_retrieve and not test_retrieve_all and not test_download_script and not test_start_time and not test_end_time and not test_mimic_TPW2_nc and not TestAngleGeneration and not test_get_luts and not test_convert_remote_files_to_fsspec_fsfile and not test_convert_remote_files_to_fsspec_filename_dict and not test_convert_remote_files_to_fsspec_mixed_sources and not test_get_satpos_from_satname and not test_distributed and not test_rayleigh_corrector and not test_rayleigh_with_angles and not test_float_write_with_unit_conversion and not test_aggregate and not test_median and not test_no_downloads_in_tests and not test_colorize_with_interpolation and not test_colorize" --ignore=satpy/tests/reader_tests/test_insat3d_img_l1b_h5.py --ignore=satpy/tests/reader_tests/gms/test_gms5_vissr_l1b.py --ignore=satpy/tests/reader_tests/gms/test_gms5_vissr_navigation.py satpy/tests
  ```

  Upstream commit
  https://github.com/pytroll/satpy/commit/dc3ee7d30151584caaae05e6fb21401702614cfd
  corrects the issue. A patch is attached to fix the issue.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/satpy/+bug/2044216/+subscriptions





More information about the Ubuntu-sponsors mailing list