#1120258 lektor: FTBFS: ERROR: Could not find a version that satisfies the requirement setuptools>=40.8.0 (from versions: none)

Package:
src:lektor
Source:
src:lektor
Submitter:
Santiago Vila
Date:
2025-11-06 12:25:37 UTC
Severity:
normal
Tags:
#1120258#5
Date:
2025-11-06 11:59:12 UTC
From:
To:
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/202511/

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:lektor, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean --with python3 --buildsystem=pybuild
   dh_auto_clean -O--buildsystem=pybuild
   dh_autoreconf_clean -O--buildsystem=pybuild
   dh_clean -O--buildsystem=pybuild
 debian/rules binary
dh binary --with python3 --buildsystem=pybuild
   dh_update_autotools_config -O--buildsystem=pybuild
   dh_autoreconf -O--buildsystem=pybuild
   dh_auto_configure -O--buildsystem=pybuild
   dh_auto_build -O--buildsystem=pybuild
I: pybuild plugin_pyproject:129: Building wheel for python3.13 with "build" module
I: pybuild base:311: python3.13 -m build --skip-dependency-check --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_lektor
* Building wheel...
/usr/lib/python3/dist-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!

        ********************************************************************************
        Please consider removing the following classifiers in favor of a SPDX license expression:

        License :: OSI Approved :: BSD License

        See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
        ********************************************************************************

!!
  self._finalize_license_expression()
running bdist_wheel
running build
running build_py
creating build/lib/lektor
copying lektor/sourceobj.py -> build/lib/lektor
copying lektor/project.py -> build/lib/lektor
copying lektor/__init__.py -> build/lib/lektor
copying lektor/pluginsystem.py -> build/lib/lektor
copying lektor/i18n.py -> build/lib/lektor
copying lektor/constants.py -> build/lib/lektor
copying lektor/exception.py -> build/lib/lektor
copying lektor/db.py -> build/lib/lektor
copying lektor/builder.py -> build/lib/lektor
copying lektor/context.py -> build/lib/lektor
copying lektor/__main__.py -> build/lib/lektor
copying lektor/watcher.py -> build/lib/lektor
copying lektor/devcli.py -> build/lib/lektor
copying lektor/buildfailures.py -> build/lib/lektor
copying lektor/editor.py -> build/lib/lektor
copying lektor/pagination.py -> build/lib/lektor
copying lektor/datamodel.py -> build/lib/lektor
copying lektor/quickstart.py -> build/lib/lektor
copying lektor/cli.py -> build/lib/lektor
copying lektor/packages.py -> build/lib/lektor
copying lektor/markdown.py -> build/lib/lektor
copying lektor/publisher.py -> build/lib/lektor
copying lektor/devserver.py -> build/lib/lektor
copying lektor/databags.py -> build/lib/lektor
copying lektor/cli_utils.py -> build/lib/lektor
copying lektor/filecontents.py -> build/lib/lektor
copying lektor/metaformat.py -> build/lib/lektor
copying lektor/build_programs.py -> build/lib/lektor
copying lektor/videotools.py -> build/lib/lektor
copying lektor/assets.py -> build/lib/lektor
copying lektor/reporter.py -> build/lib/lektor
copying lektor/imagetools.py -> build/lib/lektor
copying lektor/utils.py -> build/lib/lektor
copying lektor/sourcesearch.py -> build/lib/lektor
creating build/lib/lektor/types
copying lektor/types/fake.py -> build/lib/lektor/types
copying lektor/types/__init__.py -> build/lib/lektor/types
copying lektor/types/base.py -> build/lib/lektor/types
copying lektor/types/special.py -> build/lib/lektor/types
copying lektor/types/flow.py -> build/lib/lektor/types
copying lektor/types/multi.py -> build/lib/lektor/types
copying lektor/types/primitives.py -> build/lib/lektor/types
copying lektor/types/formats.py -> build/lib/lektor/types
creating build/lib/lektor/admin
copying lektor/admin/__init__.py -> build/lib/lektor/admin
copying lektor/admin/utils.py -> build/lib/lektor/admin
copying lektor/admin/webui.py -> build/lib/lektor/admin
creating build/lib/lektor/environment
copying lektor/environment/__init__.py -> build/lib/lektor/environment
copying lektor/environment/expressions.py -> build/lib/lektor/environment
copying lektor/environment/config.py -> build/lib/lektor/environment
creating build/lib/lektor/admin/modules
copying lektor/admin/modules/__init__.py -> build/lib/lektor/admin/modules
copying lektor/admin/modules/common.py -> build/lib/lektor/admin/modules
copying lektor/admin/modules/api.py -> build/lib/lektor/admin/modules
copying lektor/admin/modules/dash.py -> build/lib/lektor/admin/modules
copying lektor/admin/modules/serve.py -> build/lib/lektor/admin/modules
running egg_info
creating Lektor.egg-info
writing Lektor.egg-info/PKG-INFO
writing dependency_links to Lektor.egg-info/dependency_links.txt
writing entry points to Lektor.egg-info/entry_points.txt
writing requirements to Lektor.egg-info/requires.txt
writing top-level names to Lektor.egg-info/top_level.txt
writing manifest file 'Lektor.egg-info/SOURCES.txt'
reading manifest file 'Lektor.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'frontend'
warning: no directories found matching 'lektor/admin/static'
warning: no previously-included files matching '*.py[cdo]' found anywhere in distribution
warning: no previously-included files matching '__pycache__' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
warning: no previously-included files matching '.DS_Store' found anywhere in distribution
warning: no previously-included files matching '.gitkeep' found anywhere in distribution
warning: no previously-included files matching '*~' found anywhere in distribution
no previously-included directories found matching '.github'
warning: no previously-included files found matching '.gitignore'
warning: no previously-included files found matching '.git-blame-ignore-revs'
warning: no previously-included files found matching '.codecov.yml'
warning: no previously-included files found matching '.editorconfig'
warning: no previously-included files found matching '.pre-commit-config.yaml'
warning: no previously-included files found matching 'Makefile'
warning: no previously-included files found matching 'pylintrc'
no previously-included directories found matching 'example'
adding license file 'LICENSE'
writing manifest file 'Lektor.egg-info/SOURCES.txt'
installing to build/bdist.linux-x86_64/wheel
running install
running install_lib
creating build/bdist.linux-x86_64/wheel
creating build/bdist.linux-x86_64/wheel/lektor
copying build/lib/lektor/sourceobj.py -> build/bdist.linux-x86_64/wheel/./lektor
copying build/lib/lektor/project.py -> build/bdist.linux-x86_64/wheel/./lektor
copying build/lib/lektor/__init__.py -> build/bdist.linux-x86_64/wheel/./lektor
copying build/lib/lektor/pluginsystem.py -> build/bdist.linux-x86_64/wheel/./lektor
copying build/lib/lektor/i18n.py -> build/bdist.linux-x86_64/wheel/./lektor
copying build/lib/lektor/constants.py -> build/bdist.linux-x86_64/wheel/./lektor
copying build/lib/lektor/exception.py -> build/bdist.linux-x86_64/wheel/./lektor
copying build/lib/lektor/db.py -> build/bdist.linux-x86_64/wheel/./lektor
copying build/lib/lektor/builder.py -> build/bdist.linux-x86_64/wheel/./lektor
copying build/lib/lektor/context.py -> build/bdist.linux-x86_64/wheel/./lektor
copying build/lib/lektor/__main__.py -> build/bdist.linux-x86_64/wheel/./lektor
copying build/lib/lektor/watcher.py -> build/bdist.linux-x86_64/wheel/./lektor
copying build/lib/lektor/devcli.py -> build/bdist.linux-x86_64/wheel/./lektor
copying build/lib/lektor/buildfailures.py -> build/bdist.linux-x86_64/wheel/./lektor
copying build/lib/lektor/editor.py -> build/bdist.linux-x86_64/wheel/./lektor
copying build/lib/lektor/pagination.py -> build/bdist.linux-x86_64/wheel/./lektor
copying build/lib/lektor/datamodel.py -> build/bdist.linux-x86_64/wheel/./lektor
creating build/bdist.linux-x86_64/wheel/lektor/types
copying build/lib/lektor/types/fake.py -> build/bdist.linux-x86_64/wheel/./lektor/types
copying build/lib/lektor/types/__init__.py -> build/bdist.linux-x86_64/wheel/./lektor/types
copying build/lib/lektor/types/base.py -> build/bdist.linux-x86_64/wheel/./lektor/types
copying build/lib/lektor/types/special.py -> build/bdist.linux-x86_64/wheel/./lektor/types
copying build/lib/lektor/types/flow.py -> build/bdist.linux-x86_64/wheel/./lektor/types
copying build/lib/lektor/types/multi.py -> build/bdist.linux-x86_64/wheel/./lektor/types
copying build/lib/lektor/types/primitives.py -> build/bdist.linux-x86_64/wheel/./lektor/types
copying build/lib/lektor/types/formats.py -> build/bdist.linux-x86_64/wheel/./lektor/types
copying build/lib/lektor/quickstart.py -> build/bdist.linux-x86_64/wheel/./lektor
copying build/lib/lektor/cli.py -> build/bdist.linux-x86_64/wheel/./lektor
creating build/bdist.linux-x86_64/wheel/lektor/admin
copying build/lib/lektor/admin/__init__.py -> build/bdist.linux-x86_64/wheel/./lektor/admin
copying build/lib/lektor/admin/utils.py -> build/bdist.linux-x86_64/wheel/./lektor/admin
creating build/bdist.linux-x86_64/wheel/lektor/admin/modules
copying build/lib/lektor/admin/modules/__init__.py -> build/bdist.linux-x86_64/wheel/./lektor/admin/modules
copying build/lib/lektor/admin/modules/common.py -> build/bdist.linux-x86_64/wheel/./lektor/admin/modules
copying build/lib/lektor/admin/modules/api.py -> build/bdist.linux-x86_64/wheel/./lektor/admin/modules
copying build/lib/lektor/admin/modules/dash.py -> build/bdist.linux-x86_64/wheel/./lektor/admin/modules
copying build/lib/lektor/admin/modules/serve.py -> build/bdist.linux-x86_64/wheel/./lektor/admin/modules
copying build/lib/lektor/admin/webui.py -> build/bdist.linux-x86_64/wheel/./lektor/admin
copying build/lib/lektor/packages.py -> build/bdist.linux-x86_64/wheel/./lektor
copying build/lib/lektor/markdown.py -> build/bdist.linux-x86_64/wheel/./lektor
copying build/lib/lektor/publisher.py -> build/bdist.linux-x86_64/wheel/./lektor
copying build/lib/lektor/devserver.py -> build/bdist.linux-x86_64/wheel/./lektor
copying build/lib/lektor/databags.py -> build/bdist.linux-x86_64/wheel/./lektor
creating build/bdist.linux-x86_64/wheel/lektor/environment
copying build/lib/lektor/environment/__init__.py -> build/bdist.linux-x86_64/wheel/./lektor/environment
copying build/lib/lektor/environment/expressions.py -> build/bdist.linux-x86_64/wheel/./lektor/environment
copying build/lib/lektor/environment/config.py -> build/bdist.linux-x86_64/wheel/./lektor/environment
copying build/lib/lektor/cli_utils.py -> build/bdist.linux-x86_64/wheel/./lektor
copying build/lib/lektor/filecontents.py -> build/bdist.linux-x86_64/wheel/./lektor
copying build/lib/lektor/metaformat.py -> build/bdist.linux-x86_64/wheel/./lektor
copying build/lib/lektor/build_programs.py -> build/bdist.linux-x86_64/wheel/./lektor
copying build/lib/lektor/videotools.py -> build/bdist.linux-x86_64/wheel/./lektor
copying build/lib/lektor/assets.py -> build/bdist.linux-x86_64/wheel/./lektor
copying build/lib/lektor/reporter.py -> build/bdist.linux-x86_64/wheel/./lektor
copying build/lib/lektor/imagetools.py -> build/bdist.linux-x86_64/wheel/./lektor
copying build/lib/lektor/utils.py -> build/bdist.linux-x86_64/wheel/./lektor
copying build/lib/lektor/sourcesearch.py -> build/bdist.linux-x86_64/wheel/./lektor
running install_egg_info
Copying Lektor.egg-info to build/bdist.linux-x86_64/wheel/./Lektor-3.3.12.egg-info
running install_scripts
creating build/bdist.linux-x86_64/wheel/lektor-3.3.12.dist-info/WHEEL
creating '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_lektor/.tmp-1faiw2h1/lektor-3.3.12-py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it
adding 'lektor/__init__.py'
adding 'lektor/__main__.py'
adding 'lektor/assets.py'
adding 'lektor/build_programs.py'
adding 'lektor/builder.py'
adding 'lektor/buildfailures.py'
adding 'lektor/cli.py'
adding 'lektor/cli_utils.py'
adding 'lektor/constants.py'
adding 'lektor/context.py'
adding 'lektor/databags.py'
adding 'lektor/datamodel.py'
adding 'lektor/db.py'
adding 'lektor/devcli.py'
adding 'lektor/devserver.py'
adding 'lektor/editor.py'
adding 'lektor/exception.py'
adding 'lektor/filecontents.py'
adding 'lektor/i18n.py'
adding 'lektor/imagetools.py'
adding 'lektor/markdown.py'
adding 'lektor/metaformat.py'
adding 'lektor/packages.py'
adding 'lektor/pagination.py'
adding 'lektor/pluginsystem.py'
adding 'lektor/project.py'
adding 'lektor/publisher.py'
adding 'lektor/quickstart.py'
adding 'lektor/reporter.py'
adding 'lektor/sourceobj.py'
adding 'lektor/sourcesearch.py'
adding 'lektor/utils.py'
adding 'lektor/videotools.py'
adding 'lektor/watcher.py'
adding 'lektor/admin/__init__.py'
adding 'lektor/admin/utils.py'
adding 'lektor/admin/webui.py'
adding 'lektor/admin/modules/__init__.py'
adding 'lektor/admin/modules/api.py'
adding 'lektor/admin/modules/common.py'
adding 'lektor/admin/modules/dash.py'
adding 'lektor/admin/modules/serve.py'
adding 'lektor/environment/__init__.py'
adding 'lektor/environment/config.py'
adding 'lektor/environment/expressions.py'
adding 'lektor/types/__init__.py'
adding 'lektor/types/base.py'
adding 'lektor/types/fake.py'
adding 'lektor/types/flow.py'
adding 'lektor/types/formats.py'
adding 'lektor/types/multi.py'
adding 'lektor/types/primitives.py'
adding 'lektor/types/special.py'
adding 'lektor-3.3.12.dist-info/licenses/LICENSE'
adding 'lektor-3.3.12.dist-info/METADATA'
adding 'lektor-3.3.12.dist-info/WHEEL'
adding 'lektor-3.3.12.dist-info/entry_points.txt'
adding 'lektor-3.3.12.dist-info/top_level.txt'
adding 'lektor-3.3.12.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
Successfully built lektor-3.3.12-py3-none-any.whl
I: pybuild plugin_pyproject:144: Unpacking wheel built for python3.13 with "installer" module
   dh_auto_test -O--buildsystem=pybuild
I: pybuild pybuild:308: cp -r /<<PKGBUILDDIR>>/lektor/translations /<<PKGBUILDDIR>>/lektor/quickstart-templates /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_lektor/build/lektor
I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_lektor/build; python3.13 -m pytest -m 'not requiresinternet'
============================= test session starts ==============================
platform linux -- Python 3.13.9, pytest-8.4.2, pluggy-1.6.0
rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_lektor/build
configfile: pyproject.toml
plugins: mock-3.15.1, pytest_click-1.1.0, typeguard-4.4.4, cov-5.0.0
collected 754 items / 1 deselected / 753 selected

tests/test_api.py ........                                               [  1%]
tests/test_builder.py s............                                      [  2%]
tests/test_buildfailures.py .....                                        [  3%]
tests/test_cli.py .s.....s.......                                        [  5%]
tests/test_config.py .........                                           [  6%]
tests/test_datamodel.py .......                                          [  7%]
tests/test_db.py .............................................           [ 13%]
tests/test_deploy.py ...................                                 [ 16%]
tests/test_devcli.py .......................                             [ 19%]
tests/test_editor.py ............x................                       [ 22%]
tests/test_environment.py .......................                        [ 26%]
tests/test_i18n.py .                                                     [ 26%]
tests/test_images.py ......sssss................                         [ 29%]
tests/test_imports.py .................................................. [ 36%]
..                                                                       [ 36%]
tests/test_issue_410.py ..                                               [ 36%]
tests/test_markdown.py x..............................................   [ 43%]
tests/test_packages.py F                                                 [ 43%]
tests/test_pagination.py ....................................            [ 48%]
tests/test_pluginsystem.py ..............................                [ 52%]
tests/test_prev_next_sibling.py ..                                       [ 52%]
tests/test_publisher.py .ss                                              [ 52%]
tests/test_quickstart.py ..s..                                           [ 53%]
tests/test_themes.py ...................                                 [ 55%]
tests/test_tree.py ..................................................... [ 62%]
........................................................................ [ 72%]
.                                                                        [ 72%]
tests/test_types.py ....................................                 [ 77%]
tests/test_unicode.py ...                                                [ 77%]
tests/test_urls.py ...............................                       [ 81%]
tests/test_utils.py ...................................x................ [ 88%]
..........................                                               [ 92%]
tests/test_videotools.py ......................ss                        [ 95%]
tests/test_watcher.py .........................                          [ 98%]
tests/test_webui.py .........                                            [100%]

=================================== FAILURES ===================================


tests/test_packages.py:15:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

package_root = '/tmp/pytest-of-sbuild/pytest-0/test_install_local_package0/package_root'
path = '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_lektor/build/tests/setup_py-dummy-plugin'

    def install_local_package(package_root, path):
        """This installs a local dependency of a package."""
        # XXX: windows
        rv = portable_popen(
            [
                sys.executable,
                "-m",
                "pip",
                "install",
                "--target",
                package_root,
                "--editable",
                path,
            ],
        ).wait()
        if rv != 0:
lektor/packages.py:119: RuntimeError
----------------------------- Captured stdout call -----------------------------
Obtaining file:///<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_lektor/build/tests/setup_py-dummy-plugin
  Installing build dependencies: started
  Installing build dependencies: finished with status 'error'
----------------------------- Captured stderr call -----------------------------
  error: subprocess-exited-with-error

  × installing build dependencies did not run successfully.
  │ exit code: 1
  ╰─> [7 lines of output]
      WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fe0fb63dfd0>: Failed to establish a new connection: [Errno 111] Connection refused'))': /simple/setuptools/
      WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fe0fb802350>: Failed to establish a new connection: [Errno 111] Connection refused'))': /simple/setuptools/
      WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fe0fb802490>: Failed to establish a new connection: [Errno 111] Connection refused'))': /simple/setuptools/
      WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fe0fb8025d0>: Failed to establish a new connection: [Errno 111] Connection refused'))': /simple/setuptools/
      WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7fe0fb802710>: Failed to establish a new connection: [Errno 111] Connection refused'))': /simple/setuptools/
      ERROR: Could not find a version that satisfies the requirement setuptools>=40.8.0 (from versions: none)
      ERROR: No matching distribution found for setuptools>=40.8.0
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed to build 'file:///<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_lektor/build/tests/setup_py-dummy-plugin' when installing build dependencies
=============================== warnings summary ===============================
tests/conftest.py:6
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_lektor/build/tests/conftest.py:6: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
    import pkg_resources