Bug#1030492: pyorbital: FTBFS: AssertionError: 0.7875583269985472 != 0.7875583269985473

Lucas Nussbaum lucas at debian.org
Sat Feb 4 07:57:58 GMT 2023


Source: pyorbital
Version: 1.7.3-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lucas at debian.org
Usertags: ftbfs-20230203 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>>'
> dh_auto_build --buildsystem=pybuild
> 	pybuild --build -i python{version} -p 3.11
> I: pybuild base:240: /usr/bin/python3 setup.py build 
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pyorbital/build/pyorbital
> copying pyorbital/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pyorbital/build/pyorbital
> copying pyorbital/geoloc_example.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pyorbital/build/pyorbital
> copying pyorbital/tlefile.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pyorbital/build/pyorbital
> copying pyorbital/orbital.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pyorbital/build/pyorbital
> copying pyorbital/astronomy.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pyorbital/build/pyorbital
> copying pyorbital/geoloc.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pyorbital/build/pyorbital
> copying pyorbital/geoloc_instrument_definitions.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pyorbital/build/pyorbital
> copying pyorbital/version.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pyorbital/build/pyorbital
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pyorbital/build/pyorbital/tests
> copying pyorbital/tests/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pyorbital/build/pyorbital/tests
> copying pyorbital/tests/test_orbital.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pyorbital/build/pyorbital/tests
> copying pyorbital/tests/test_tlefile.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pyorbital/build/pyorbital/tests
> copying pyorbital/tests/test_astronomy.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pyorbital/build/pyorbital/tests
> copying pyorbital/tests/test_geoloc.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pyorbital/build/pyorbital/tests
> copying pyorbital/tests/test_aiaa.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pyorbital/build/pyorbital/tests
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pyorbital/build/pyorbital/etc
> copying pyorbital/etc/platforms.txt -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pyorbital/build/pyorbital/etc
> running build_scripts
> creating build
> creating build/scripts-3.11
> copying and adjusting bin/fetch_tles.py -> build/scripts-3.11
> changing mode of build/scripts-3.11/fetch_tles.py from 644 to 755
> PYTHONPATH=. python3 -m sphinx -N -bhtml doc/source/ doc/build/html # HTML generator
> Running Sphinx v5.3.0
> making output directory... done
> WARNING: html_static_path entry '.static' does not exist
> building [mo]: targets for 0 po files that are out of date
> building [html]: targets for 1 source files that are out of date
> updating environment: [new config] 1 added, 0 changed, 0 removed
> reading sources... [100%] index
> 
> /<<PKGBUILDDIR>>/pyorbital/orbital.py:docstring of pyorbital.orbital.Orbital.get_equatorial_crossing_time:10: ERROR: Unexpected indentation.
> /<<PKGBUILDDIR>>/pyorbital/orbital.py:docstring of pyorbital.orbital.OrbitElements:3: WARNING: Block quote ends without a blank line; unexpected unindent.
> /<<PKGBUILDDIR>>/pyorbital/tlefile.py:docstring of pyorbital.tlefile:1: WARNING: Include file '/<<PKGBUILDDIR>>/etc/platforms.txt' not found or reading it failed
> looking for now-outdated files... none found
> pickling environment... done
> checking consistency... done
> preparing documents... done
> writing output... [100%] index
> 
> generating indices... genindex py-modindex done
> writing additional pages... search done
> copying static files... done
> copying extra files... done
> dumping search index in English (code: en)... done
> dumping object inventory... done
> build succeeded, 4 warnings.
> 
> The HTML pages are in doc/build/html.
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
>    dh_auto_test -O--buildsystem=pybuild
> 	pybuild --test -i python{version} -p 3.11
> I: pybuild base:240: python3.11 setup.py test 
> running test
> WARNING: Testing via this command is deprecated and will be removed in a future version. Users looking for a generic test entry point independent of test runner are encouraged to use tox.
> running egg_info
> creating pyorbital.egg-info
> writing pyorbital.egg-info/PKG-INFO
> writing dependency_links to pyorbital.egg-info/dependency_links.txt
> writing requirements to pyorbital.egg-info/requires.txt
> writing top-level names to pyorbital.egg-info/top_level.txt
> writing manifest file 'pyorbital.egg-info/SOURCES.txt'
> reading manifest file 'pyorbital.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> warning: no files found matching 'README'
> adding license file 'LICENSE.txt'
> writing manifest file 'pyorbital.egg-info/SOURCES.txt'
> running build_ext
> test_aiaa (pyorbital.tests.test_aiaa.AIAAIntegrationTest.test_aiaa)
> Do the tests against AIAA test cases. ... ok
> test_from_file (pyorbital.tests.test_tlefile.TLETest.test_from_file)
> Test reading and parsing from a file. ... /<<PKGBUILDDIR>>/pyorbital/tlefile.py:284: ResourceWarning: unclosed file <_io.BufferedReader name='/tmp/tmpoips2rhj'>
>   return _get_tles_from_uris(uris, open_func, platform=platform, only_first=True)
> ResourceWarning: Enable tracemalloc to get the object allocation traceback
> ok
> test_from_file_with_hyphenated_platform_name (pyorbital.tests.test_tlefile.TLETest.test_from_file_with_hyphenated_platform_name)
> Test reading and parsing from a file with a slightly different name. ... /<<PKGBUILDDIR>>/pyorbital/tlefile.py:284: ResourceWarning: unclosed file <_io.BufferedReader name='/tmp/tmpkqrowg16'>
>   return _get_tles_from_uris(uris, open_func, platform=platform, only_first=True)
> ResourceWarning: Enable tracemalloc to get the object allocation traceback
> ok
> test_from_file_with_no_platform_name (pyorbital.tests.test_tlefile.TLETest.test_from_file_with_no_platform_name)
> Test reading and parsing from a file with a slightly different name. ... /<<PKGBUILDDIR>>/pyorbital/tlefile.py:284: ResourceWarning: unclosed file <_io.BufferedReader name='/tmp/tmpmburv_pt'>
>   return _get_tles_from_uris(uris, open_func, platform=platform, only_first=True)
> ResourceWarning: Enable tracemalloc to get the object allocation traceback
> ok
> test_from_line (pyorbital.tests.test_tlefile.TLETest.test_from_line)
> Test parsing from line elements. ... ok
> test_from_mmam_xml (pyorbital.tests.test_tlefile.TLETest.test_from_mmam_xml)
> Test reading from an MMAM XML file. ... ok
> test_fetch_plain_tle_not_configured (pyorbital.tests.test_tlefile.TestDownloader.test_fetch_plain_tle_not_configured)
> Test downloading and a TLE file from internet. ... ok
> test_fetch_plain_tle_server_is_a_teapot (pyorbital.tests.test_tlefile.TestDownloader.test_fetch_plain_tle_server_is_a_teapot)
> Test downloading and a TLE file from internet. ... Could not fetch TLEs from source_1, 3 failure(s): [mocked_url_1, mocked_url_2, mocked_url_3]
> Downloaded 0 TLEs from source_1
> Could not fetch TLEs from source_2, 1 failure(s): [mocked_url_4]
> Downloaded 0 TLEs from source_2
> ok
> test_fetch_plain_tle_two_sources (pyorbital.tests.test_tlefile.TestDownloader.test_fetch_plain_tle_two_sources)
> Test downloading and a TLE file from internet. ... Downloaded 3 TLEs from source_1
> Downloaded 1 TLEs from source_2
> ok
> test_fetch_spacetrack_get_fails (pyorbital.tests.test_tlefile.TestDownloader.test_fetch_spacetrack_get_fails)
> Test downloading and TLEs from space-track.org. ... Could not retrieve TLEs from Space-Track
> Downloaded 0 TLEs from spacetrack
> ok
> test_fetch_spacetrack_login_fails (pyorbital.tests.test_tlefile.TestDownloader.test_fetch_spacetrack_login_fails)
> Test downloading and TLEs from space-track.org. ... Could not login to Space-Track
> ok
> test_fetch_spacetrack_success (pyorbital.tests.test_tlefile.TestDownloader.test_fetch_spacetrack_success)
> Test downloading and TLEs from space-track.org. ... Downloaded 1 TLEs from spacetrack
> ok
> test_init (pyorbital.tests.test_tlefile.TestDownloader.test_init)
> Test the initialization. ... ok
> test_read_tle_files (pyorbital.tests.test_tlefile.TestDownloader.test_read_tle_files)
> Test reading TLE files from a file system. ... File /tmp/tmp5au7ly76/not_here.txt doesn't exist.
> /<<PKGBUILDDIR>>/pyorbital/tlefile.py:291: ResourceWarning: unclosed file <_io.TextIOWrapper name='/tmp/tmp5au7ly76/tle_20200129_1600.txt' mode='r' encoding='UTF-8'>
>   fid = open_func(url)
> ResourceWarning: Enable tracemalloc to get the object allocation traceback
> /<<PKGBUILDDIR>>/pyorbital/tlefile.py:417: ResourceWarning: unclosed file <_io.TextIOWrapper name='/tmp/tmp5au7ly76/tle_20200129_1600.txt' mode='r' encoding='UTF-8'>
>   _get_tles_from_uris(item, open_func, platform='', only_first=False)]
> ResourceWarning: Enable tracemalloc to get the object allocation traceback
> Loaded 2 TLEs from local files
> ok
> test_read_xml_admin_messages (pyorbital.tests.test_tlefile.TestDownloader.test_read_xml_admin_messages)
> Test reading TLE files from a file system. ... File /tmp/tmpjrwsq2yw/not_here.txt doesn't exist.
> Loaded 4 TLEs from admin message XML files
> ok
> test_init (pyorbital.tests.test_tlefile.TestSQLiteTLE.test_init)
> Test that the init did what it should have. ... Created database table 'platform_names'
> ok
> test_update_db (pyorbital.tests.test_tlefile.TestSQLiteTLE.test_update_db)
> Test updating database with new data. ... Created database table 'platform_names'
> Created database table '25544'
> Added platform name 'ISS' for ID '25544'
> Added TLE for 25544 (ISS), epoch: 2008-09-20T12:25:40.104192, source: foo
> ok
> test_write_tle_txt (pyorbital.tests.test_tlefile.TestSQLiteTLE.test_write_tle_txt)
> Test reading data from the database and writing it to a file. ... Created database table 'platform_names'
> Created database table '25544'
> Added platform name 'ISS' for ID '25544'
> Added TLE for 25544 (ISS), epoch: 2008-09-20T12:25:40.104192, source: foo
> Created directory /tmp/tmpn72y_8ht/tle_dir
> Latest TLE for '25544' (ISS) is 125990 hours old.
> Wrote 2 TLEs to /tmp/tmpn72y_8ht/tle_dir/tle_20230204_030255.381740.txt
> Latest TLE for '25544' (ISS) is 125990 hours old.
> Wrote 1 TLEs to /tmp/tmpn72y_8ht/tle_dir/tle_20230204_030255.382605.txt
> ok
> test_get_equatorial_crossing_time (pyorbital.tests.test_orbital.Test.test_get_equatorial_crossing_time) ... ok
> test_get_next_passes_apogee (pyorbital.tests.test_orbital.Test.test_get_next_passes_apogee)
> Regression test #22. ... ok
> test_get_next_passes_issue_22 (pyorbital.tests.test_orbital.Test.test_get_next_passes_issue_22)
> Check that max ... Parabolic interpolation did not converge, returning best guess so far.
> ok
> test_get_next_passes_tricky (pyorbital.tests.test_orbital.Test.test_get_next_passes_tricky)
> Check issue #34 for reference ... ok
> test_get_orbit_number (pyorbital.tests.test_orbital.Test.test_get_orbit_number)
> Testing getting the orbitnumber from the tle ... ok
> test_observer_look (pyorbital.tests.test_orbital.Test.test_observer_look) ... ok
> test_orbit_num_an (pyorbital.tests.test_orbital.Test.test_orbit_num_an) ... ok
> test_orbit_num_equator (pyorbital.tests.test_orbital.Test.test_orbit_num_equator) ... ok
> test_orbit_num_non_an (pyorbital.tests.test_orbital.Test.test_orbit_num_non_an) ... ok
> test_sublonlat (pyorbital.tests.test_orbital.Test.test_sublonlat) ... ok
> test_utc2local (pyorbital.tests.test_orbital.Test.test_utc2local) ... ok
> test_basic_dask (pyorbital.tests.test_orbital.TestGetObserverLook.test_basic_dask)
> Test with dask array inputs ... ok
> test_basic_numpy (pyorbital.tests.test_orbital.TestGetObserverLook.test_basic_numpy)
> Test with numpy array inputs ... ok
> test_scalar (pyorbital.tests.test_orbital.TestGetObserverLook.test_scalar)
> Test with scalar inputs. ... ok
> test_xarray_with_dask (pyorbital.tests.test_orbital.TestGetObserverLook.test_xarray_with_dask)
> Test with xarray DataArray with dask array as inputs ... ok
> test_xarray_with_numpy (pyorbital.tests.test_orbital.TestGetObserverLook.test_xarray_with_numpy)
> Test with xarray DataArray with numpy array as inputs ... ok
> test_basic_dask (pyorbital.tests.test_orbital.TestGetObserverLookNadir.test_basic_dask)
> Test with dask array inputs ... ok
> test_basic_numpy (pyorbital.tests.test_orbital.TestGetObserverLookNadir.test_basic_numpy)
> Test with numpy array inputs ... ok
> test_xarray_with_dask (pyorbital.tests.test_orbital.TestGetObserverLookNadir.test_xarray_with_dask)
> Test with xarray DataArray with dask array as inputs ... ok
> test_xarray_with_numpy (pyorbital.tests.test_orbital.TestGetObserverLookNadir.test_xarray_with_numpy)
> Test with xarray DataArray with numpy array as inputs ... ok
> test_63 (pyorbital.tests.test_orbital.TestRegressions.test_63)
> Check that no runtimewarning is raised, #63. ... [(datetime.datetime(2021, 3, 9, 22, 17, 42, 81863), datetime.datetime(2021, 3, 9, 22, 33, 32, 845020), datetime.datetime(2021, 3, 9, 22, 25, 36, 552868))]
> Parabolic interpolation did not converge, returning best guess so far.
> Parabolic interpolation did not converge, returning best guess so far.
> ok
> test_jdays (pyorbital.tests.test_astronomy.TestAstronomy.test_jdays)
> Test julian day functions. ... ok
> test_sun_earth_distance_correction (pyorbital.tests.test_astronomy.TestAstronomy.test_sun_earth_distance_correction)
> Test the sun-earth distance correction. ... ok
> test_sunangles (pyorbital.tests.test_astronomy.TestAstronomy.test_sunangles)
> Test the sun-angle calculations. ... ok
> test_qrotate (pyorbital.tests.test_geoloc.TestQuaternion.test_qrotate)
> Test quaternion rotation. ... ok
> test_geodetic_lat (pyorbital.tests.test_geoloc.TestGeoloc.test_geodetic_lat)
> Test the determination of the geodetic latitude. ... FAIL
> test_scan_geometry (pyorbital.tests.test_geoloc.TestGeoloc.test_scan_geometry)
> Test the ScanGeometry object. ... ok
> test_subpoint (pyorbital.tests.test_geoloc.TestGeoloc.test_subpoint)
> Test nadir determination. ... ok
> test_amsua (pyorbital.tests.test_geoloc.TestGeolocDefs.test_amsua)
> Test the definition of the amsua instrument ... ok
> test_ascat (pyorbital.tests.test_geoloc.TestGeolocDefs.test_ascat)
> Test the definition of the ASCAT instrument onboard Metop ... ok
> test_atms (pyorbital.tests.test_geoloc.TestGeolocDefs.test_atms)
> Test the definition of the atms instrument ... ok
> test_avhrr (pyorbital.tests.test_geoloc.TestGeolocDefs.test_avhrr)
> Test the definition of the avhrr instrument ... ok
> test_hirs4 (pyorbital.tests.test_geoloc.TestGeolocDefs.test_hirs4)
> Test the definition of the hirs4 instrument ... ok
> test_mhs (pyorbital.tests.test_geoloc.TestGeolocDefs.test_mhs)
> Test the definition of the mhs instrument ... ok
> test_viirs (pyorbital.tests.test_geoloc.TestGeolocDefs.test_viirs)
> Test the definition of the viirs instrument ... ok
> 
> ======================================================================
> FAIL: test_geodetic_lat (pyorbital.tests.test_geoloc.TestGeoloc.test_geodetic_lat)
> Test the determination of the geodetic latitude.
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/pyorbital/tests/test_geoloc.py", line 121, in test_geodetic_lat
>     self.assertEqual(geodetic_lat(point), 0.78755832699854733)
> AssertionError: 0.7875583269985472 != 0.7875583269985473
> 
> ----------------------------------------------------------------------
> Ran 53 tests in 1.117s
> 
> FAILED (failures=1)
> Test failed: <unittest.runner.TextTestResult run=53 errors=0 failures=1>
> error: Test failed: <unittest.runner.TextTestResult run=53 errors=0 failures=1>
> E: pybuild pybuild:388: test: plugin distutils failed with: exit code=1: python3.11 setup.py test 
> dh_auto_test: error: pybuild --test -i python{version} -p 3.11 returned exit code 13


The full build log is available from:
http://qa-logs.debian.net/2023/02/03/pyorbital_1.7.3-1_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20230203;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20230203&fusertaguser=lucas@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 mark 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