Bug#973177: python-geojson: FTBFS: dh_auto_test: error: pybuild --test -i python{version} -p "3.9 3.8" returned exit code 13

Lucas Nussbaum lucas at debian.org
Tue Oct 27 17:20:31 GMT 2020


Source: python-geojson
Version: 2.5.0-2
Severity: serious
Justification: FTBFS on amd64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20201027 ftbfs-bullseye

Hi,

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

Relevant part (hopefully):
>  debian/rules build
> dh  build --with python3 --buildsystem pybuild
> dh: warning: Compatibility levels before 10 are deprecated (level 9 in use)
>    dh_update_autotools_config -O--buildsystem=pybuild
>    dh_auto_configure -O--buildsystem=pybuild
> dh_auto_configure: warning: Compatibility levels before 10 are deprecated (level 9 in use)
> I: pybuild base:217: python3.9 setup.py config 
> running config
> I: pybuild base:217: python3.8 setup.py config 
> running config
>    dh_auto_build -O--buildsystem=pybuild
> dh_auto_build: warning: Compatibility levels before 10 are deprecated (level 9 in use)
> I: pybuild base:217: /usr/bin/python3.9 setup.py build 
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_geojson/build/geojson
> copying geojson/geometry.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_geojson/build/geojson
> copying geojson/mapping.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_geojson/build/geojson
> copying geojson/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_geojson/build/geojson
> copying geojson/feature.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_geojson/build/geojson
> copying geojson/factory.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_geojson/build/geojson
> copying geojson/codec.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_geojson/build/geojson
> copying geojson/_version.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_geojson/build/geojson
> copying geojson/examples.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_geojson/build/geojson
> copying geojson/base.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_geojson/build/geojson
> copying geojson/utils.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_geojson/build/geojson
> I: pybuild base:217: /usr/bin/python3 setup.py build 
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_geojson/build/geojson
> copying geojson/geometry.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_geojson/build/geojson
> copying geojson/mapping.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_geojson/build/geojson
> copying geojson/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_geojson/build/geojson
> copying geojson/feature.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_geojson/build/geojson
> copying geojson/factory.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_geojson/build/geojson
> copying geojson/codec.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_geojson/build/geojson
> copying geojson/_version.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_geojson/build/geojson
> copying geojson/examples.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_geojson/build/geojson
> copying geojson/base.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_geojson/build/geojson
> copying geojson/utils.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_geojson/build/geojson
>    dh_auto_test -O--buildsystem=pybuild
> dh_auto_test: warning: Compatibility levels before 10 are deprecated (level 9 in use)
> I: pybuild base:217: python3.9 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 geojson.egg-info
> writing geojson.egg-info/PKG-INFO
> writing dependency_links to geojson.egg-info/dependency_links.txt
> writing top-level names to geojson.egg-info/top_level.txt
> writing manifest file 'geojson.egg-info/SOURCES.txt'
> reading manifest file 'geojson.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> warning: no files found matching '*.txt' under directory 'tests'
> writing manifest file 'geojson.egg-info/SOURCES.txt'
> running build_ext
> 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
> writing geojson.egg-info/PKG-INFO
> writing dependency_links to geojson.egg-info/dependency_links.txt
> writing top-level names to geojson.egg-info/top_level.txt
> reading manifest file 'geojson.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> warning: no files found matching '*.txt' under directory 'tests'
> writing manifest file 'geojson.egg-info/SOURCES.txt'
> running build_ext
> test_errors (test_base.BaseTestCase) ... ok
> test_to_instance (test_base.BaseTestCase) ... ok
> test_delattr (test_base.OperatorOverloadingTestCase) ... ok
> test_getattr (test_base.OperatorOverloadingTestCase) ... ok
> test_setattr (test_base.OperatorOverloadingTestCase) ... ok
> test_type_property (test_base.TypePropertyTestCase) ... ok
> test_copy_construction (test_constructor.TestGeoJSONConstructor) ... ok
> test_nested_constructors (test_constructor.TestGeoJSONConstructor) ... ok
> test_dict (test_coords.CoordsTestCase) ... ok
> test_featurecollection (test_coords.CoordsTestCase) ... ok
> test_map_feature (test_coords.CoordsTestCase) ... ok
> test_map_invalid (test_coords.CoordsTestCase) ... ok
> test_map_linestring (test_coords.CoordsTestCase) ... ok
> test_map_multipolygon (test_coords.CoordsTestCase) ... ok
> test_map_point (test_coords.CoordsTestCase) ... ok
> test_map_polygon (test_coords.CoordsTestCase) ... ok
> test_multipolygon (test_coords.CoordsTestCase) ... ok
> test_point (test_coords.CoordsTestCase) ... ok
> test_point_feature (test_coords.CoordsTestCase) ... ok
> test_point_rounding (test_coords.CoordsTestCase) ... ok
> test_feature_class (test_features.FeaturesTest)
> Test the Feature class ... ERROR
> test_geo_interface (test_features.FeaturesTest) ... ok
> test_protocol (test_features.FeaturesTest)
> A dictionary can satisfy the protocol ... ok
> test_unicode_properties (test_features.FeaturesTest) ... ok
> test_GeoJSON (test_geo_interface.EncodingDecodingTest) ... ok
> test_decode (test_geo_interface.EncodingDecodingTest)
> Ensure a GeoJSON string can be decoded into GeoJSON objects ... ok
> test_decode_nested (test_geo_interface.EncodingDecodingTest)
> Ensure a GeoJSON string can be decoded into nested GeoJSON objects ... ok
> test_encode (test_geo_interface.EncodingDecodingTest)
> Ensure objects that implement __geo_interface__ can be encoded into ... ok
> test_encode_nested (test_geo_interface.EncodingDecodingTest)
> Ensure nested objects that implement __geo_interface__ can be encoded ... ok
> test_invalid (test_geo_interface.EncodingDecodingTest) ... ok
> test_mapping (test_geo_interface.EncodingDecodingTest) ... ok
> test_null_geometry_explicit (test_null_geometries.NullGeometriesTest) ... ok
> test_null_geometry_implicit (test_null_geometries.NullGeometriesTest) ... ok
> test_decode_inf (test_strict_json.StrictJsonTest)
> Ensure Error is raised when decoding Infinity or -Infinity ... ok
> test_decode_nan (test_strict_json.StrictJsonTest)
> Ensure Error is raised when decoding NaN ... ok
> test_encode_inf (test_strict_json.StrictJsonTest)
> Ensure Error is raised when encoding inf or -inf ... ok
> test_encode_nan (test_strict_json.StrictJsonTest)
> Ensure Error is raised when encoding nan ... ok
> test_valid_jsonobject (test_validation.TestValidationGeoJSONObject) ... ok
> test_invalid_geometry_with_validate (test_validation.TestValidationGeometry) ... ok
> test_invalid_geometry_without_validate (test_validation.TestValidationGeometry) ... ok
> test_not_number (test_validation.TestValidationGeometry) ... ok
> test_not_sequence (test_validation.TestValidationGeometry) ... ok
> test_valid_geometry (test_validation.TestValidationGeometry) ... ok
> test_valid_geometry_with_elevation (test_validation.TestValidationGeometry) ... ok
> test_invalid_geometrycollection (test_validation.TestValidationGeometryCollection) ... ok
> test_valid_geometrycollection (test_validation.TestValidationGeometryCollection) ... ok
> test_invalid_linestring (test_validation.TestValidationLineString) ... ok
> test_valid_linestring (test_validation.TestValidationLineString) ... ok
> test_invalid_multilinestring (test_validation.TestValidationMultiLineString) ... ok
> test_valid_multilinestring (test_validation.TestValidationMultiLineString) ... ok
> test_invalid_multipolygon (test_validation.TestValidationMultiPolygon) ... ok
> test_valid_multipolygon (test_validation.TestValidationMultiPolygon) ... ok
> test_invalid_multipoint (test_validation.TestValidationMultipoint) ... ok
> test_valid_multipoint (test_validation.TestValidationMultipoint) ... ok
> test_valid_multipoint_with_elevation (test_validation.TestValidationMultipoint) ... ok
> test_invalid_point (test_validation.TestValidationPoint) ... ok
> test_valid_point (test_validation.TestValidationPoint) ... ok
> test_valid_point_with_elevation (test_validation.TestValidationPoint) ... ok
> test_invalid_polygon (test_validation.TestValidationPolygon) ... ok
> test_valid_polygon (test_validation.TestValidationPolygon) ... ok
> /<<PKGBUILDDIR>>/README.rst
> Doctest: README.rst ... ok
> 
> ======================================================================
> ERROR: test_feature_class (test_features.FeaturesTest)
> Test the Feature class
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/tests/test_features.py", line 85, in test_feature_class
>     feature = geojson.loads(json, object_hook=factory, encoding="utf-8")
>   File "/<<PKGBUILDDIR>>/geojson/codec.py", line 51, in loads
>     return json.loads(s,
>   File "/usr/lib/python3.9/json/__init__.py", line 359, in loads
>     return cls(**kw).decode(s)
> TypeError: __init__() got an unexpected keyword argument 'encoding'
> 
> ----------------------------------------------------------------------
> Ran 61 tests in 0.011s
> 
> FAILED (errors=1)
> Test failed: <unittest.runner.TextTestResult run=61 errors=1 failures=0>
> error: Test failed: <unittest.runner.TextTestResult run=61 errors=1 failures=0>
> E: pybuild pybuild:352: test: plugin distutils failed with: exit code=1: python3.9 setup.py test 
> dh_auto_test: error: pybuild --test -i python{version} -p "3.9 3.8" returned exit code 13

The full build log is available from:
   http://qa-logs.debian.net/2020/10/27/python-geojson_2.5.0-2_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!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.



More information about the Pkg-grass-devel mailing list