Bug#1135488: stac-check: FTBFS: E importlib.metadata.PackageNotFoundError: No package metadata was found for stac-validator
Santiago Vila
sanvila at debian.org
Sat May 2 00:15:27 BST 2026
Package: src:stac-check
Version: 1.11.1-4
Severity: serious
Tags: ftbfs forky sid
Dear maintainer:
During a rebuild of all packages in unstable, this package failed to build.
Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:
https://people.debian.org/~sanvila/build-logs/202605/
About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.
If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.
If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:stac-check, so that this is still
visible in the BTS web page for this package.
Thanks.
--------------------------------------------------------------------------------
[...]
debian/rules clean
dh clean --buildsystem=pybuild
dh_auto_clean -O--buildsystem=pybuild
I: pybuild base:385: python3.14 setup.py clean
/usr/lib/python3/dist-packages/setuptools/__init__.py:94: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!
********************************************************************************
Requirements should be satisfied by a PEP 517 installer.
If you are using pip, you can try `pip install --use-pep517`.
********************************************************************************
!!
dist.fetch_build_eggs(dist.setup_requires)
/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:289: UserWarning: Unknown distribution option: 'tests_require'
[... snipped ...]
"bbox": [
170.0, # west
-10.0, # south
-170.0, # east (west > east indicates antimeridian crossing)
10.0, # north
],
"geometry": {
"type": "Polygon",
"coordinates": [
[
[170.0, -10.0],
[-170.0, -10.0],
[-170.0, 10.0],
[170.0, 10.0],
[170.0, -10.0],
]
],
},
"properties": {"datetime": "2023-01-01T00:00:00Z"},
}
# Test with the incorrect item (belting the globe)
> linter = Linter(incorrect_item)
^^^^^^^^^^^^^^^^^^^^^^
../../../tests/test_lint_geometry.py:217:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
<string>:13: in __init__
???
../../../stac_check/lint.py:177: in __post_init__
self.validator_version = importlib.metadata.distribution(
/usr/lib/python3.13/importlib/metadata/__init__.py:960: in distribution
return Distribution.from_name(distribution_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls = <class 'importlib.metadata.Distribution'>, name = 'stac-validator'
@classmethod
def from_name(cls, name: str) -> Distribution:
"""Return the Distribution for the given package name.
:param name: The name of the distribution package to search for.
:return: The Distribution instance (or subclass thereof) for the named
package, if found.
:raises PackageNotFoundError: When the named package's distribution
metadata cannot be found.
:raises ValueError: When an invalid value is supplied for name.
"""
if not name:
raise ValueError("A distribution name is required.")
try:
return next(iter(cls.discover(name=name)))
except StopIteration:
> raise PackageNotFoundError(name)
E importlib.metadata.PackageNotFoundError: No package metadata was found for stac-validator
/usr/lib/python3.13/importlib/metadata/__init__.py:409: PackageNotFoundError
__________________________ test_bbox_matches_geometry __________________________
cls = <class 'importlib.metadata.Distribution'>, name = 'stac-validator'
@classmethod
def from_name(cls, name: str) -> Distribution:
"""Return the Distribution for the given package name.
:param name: The name of the distribution package to search for.
:return: The Distribution instance (or subclass thereof) for the named
package, if found.
:raises PackageNotFoundError: When the named package's distribution
metadata cannot be found.
:raises ValueError: When an invalid value is supplied for name.
"""
if not name:
raise ValueError("A distribution name is required.")
try:
> return next(iter(cls.discover(name=name)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E StopIteration
/usr/lib/python3.13/importlib/metadata/__init__.py:407: StopIteration
During handling of the above exception, another exception occurred:
def test_bbox_matches_geometry():
# Test with matching bbox and geometry
file = "sample_files/1.0.0/core-item.json"
> linter = Linter(file)
^^^^^^^^^^^^
../../../tests/test_lint_geometry.py:269:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
<string>:13: in __init__
???
../../../stac_check/lint.py:177: in __post_init__
self.validator_version = importlib.metadata.distribution(
/usr/lib/python3.13/importlib/metadata/__init__.py:960: in distribution
return Distribution.from_name(distribution_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls = <class 'importlib.metadata.Distribution'>, name = 'stac-validator'
@classmethod
def from_name(cls, name: str) -> Distribution:
"""Return the Distribution for the given package name.
:param name: The name of the distribution package to search for.
:return: The Distribution instance (or subclass thereof) for the named
package, if found.
:raises PackageNotFoundError: When the named package's distribution
metadata cannot be found.
:raises ValueError: When an invalid value is supplied for name.
"""
if not name:
raise ValueError("A distribution name is required.")
try:
return next(iter(cls.discover(name=name)))
except StopIteration:
> raise PackageNotFoundError(name)
E importlib.metadata.PackageNotFoundError: No package metadata was found for stac-validator
/usr/lib/python3.13/importlib/metadata/__init__.py:409: PackageNotFoundError
_____________________ test_lint_pydantic_validation_valid ______________________
cls = <class 'importlib.metadata.Distribution'>, name = 'stac-validator'
@classmethod
def from_name(cls, name: str) -> Distribution:
"""Return the Distribution for the given package name.
:param name: The name of the distribution package to search for.
:return: The Distribution instance (or subclass thereof) for the named
package, if found.
:raises PackageNotFoundError: When the named package's distribution
metadata cannot be found.
:raises ValueError: When an invalid value is supplied for name.
"""
if not name:
raise ValueError("A distribution name is required.")
try:
> return next(iter(cls.discover(name=name)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E StopIteration
/usr/lib/python3.13/importlib/metadata/__init__.py:407: StopIteration
During handling of the above exception, another exception occurred:
@pytest.mark.pydantic
def test_lint_pydantic_validation_valid():
"""Test pydantic validation with a valid STAC item."""
file = "sample_files/1.0.0/core-item.json"
> linter = Linter(file, pydantic=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
../../../tests/test_lint_pydantic.py:25:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
<string>:13: in __init__
???
../../../stac_check/lint.py:177: in __post_init__
self.validator_version = importlib.metadata.distribution(
/usr/lib/python3.13/importlib/metadata/__init__.py:960: in distribution
return Distribution.from_name(distribution_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls = <class 'importlib.metadata.Distribution'>, name = 'stac-validator'
@classmethod
def from_name(cls, name: str) -> Distribution:
"""Return the Distribution for the given package name.
:param name: The name of the distribution package to search for.
:return: The Distribution instance (or subclass thereof) for the named
package, if found.
:raises PackageNotFoundError: When the named package's distribution
metadata cannot be found.
:raises ValueError: When an invalid value is supplied for name.
"""
if not name:
raise ValueError("A distribution name is required.")
try:
return next(iter(cls.discover(name=name)))
except StopIteration:
> raise PackageNotFoundError(name)
E importlib.metadata.PackageNotFoundError: No package metadata was found for stac-validator
/usr/lib/python3.13/importlib/metadata/__init__.py:409: PackageNotFoundError
____________________ test_lint_pydantic_validation_invalid _____________________
cls = <class 'importlib.metadata.Distribution'>, name = 'stac-validator'
@classmethod
def from_name(cls, name: str) -> Distribution:
"""Return the Distribution for the given package name.
:param name: The name of the distribution package to search for.
:return: The Distribution instance (or subclass thereof) for the named
package, if found.
:raises PackageNotFoundError: When the named package's distribution
metadata cannot be found.
:raises ValueError: When an invalid value is supplied for name.
"""
if not name:
raise ValueError("A distribution name is required.")
try:
> return next(iter(cls.discover(name=name)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E StopIteration
/usr/lib/python3.13/importlib/metadata/__init__.py:407: StopIteration
During handling of the above exception, another exception occurred:
@pytest.mark.pydantic
def test_lint_pydantic_validation_invalid():
"""Test pydantic validation with an invalid STAC item (missing required fields)."""
file = "sample_files/1.0.0/bad-item.json"
> linter = Linter(file, pydantic=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
../../../tests/test_lint_pydantic.py:37:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
<string>:13: in __init__
???
../../../stac_check/lint.py:177: in __post_init__
self.validator_version = importlib.metadata.distribution(
/usr/lib/python3.13/importlib/metadata/__init__.py:960: in distribution
return Distribution.from_name(distribution_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls = <class 'importlib.metadata.Distribution'>, name = 'stac-validator'
@classmethod
def from_name(cls, name: str) -> Distribution:
"""Return the Distribution for the given package name.
:param name: The name of the distribution package to search for.
:return: The Distribution instance (or subclass thereof) for the named
package, if found.
:raises PackageNotFoundError: When the named package's distribution
metadata cannot be found.
:raises ValueError: When an invalid value is supplied for name.
"""
if not name:
raise ValueError("A distribution name is required.")
try:
return next(iter(cls.discover(name=name)))
except StopIteration:
> raise PackageNotFoundError(name)
E importlib.metadata.PackageNotFoundError: No package metadata was found for stac-validator
/usr/lib/python3.13/importlib/metadata/__init__.py:409: PackageNotFoundError
=========================== short test summary info ============================
FAILED ../../../tests/test_config.py::test_linter_config_file - importlib.met...
FAILED ../../../tests/test_config.py::test_linter_max_links - importlib.metad...
FAILED ../../../tests/test_lint.py::test_linter_item_id_not_matching_file_name
FAILED ../../../tests/test_lint.py::test_linter_collection_catalog_id - impor...
FAILED ../../../tests/test_lint.py::test_linter_item_id_format_best_practices
FAILED ../../../tests/test_lint.py::test_datetime_set_to_null - importlib.met...
FAILED ../../../tests/test_lint.py::test_unlocated_item - importlib.metadata....
FAILED ../../../tests/test_lint.py::test_bloated_item - importlib.metadata.Pa...
FAILED ../../../tests/test_lint.py::test_small_thumbnail - importlib.metadata...
FAILED ../../../tests/test_lint.py::test_title_field - importlib.metadata.Pac...
FAILED ../../../tests/test_lint.py::test_self_in_links - importlib.metadata.P...
FAILED ../../../tests/test_lint.py::test_catalog_name - importlib.metadata.Pa...
FAILED ../../../tests/test_lint_geometry.py::test_geometry_coordinates_order
FAILED ../../../tests/test_lint_geometry.py::test_bbox_antimeridian - importl...
FAILED ../../../tests/test_lint_geometry.py::test_bbox_matches_geometry - imp...
FAILED ../../../tests/test_lint_pydantic.py::test_lint_pydantic_validation_valid
FAILED ../../../tests/test_lint_pydantic.py::test_lint_pydantic_validation_invalid
=========== 17 failed, 10 passed, 1 skipped, 24 deselected in 0.58s ============
E: pybuild pybuild:485: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_stac_check/build; python3.13 -m pytest -v -m "not network" /<<PKGBUILDDIR>>/tests
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.14 3.13" --parallel=2 returned exit code 13
make: *** [debian/rules:9: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------
More information about the Pkg-grass-devel
mailing list