[Pkg-electronics-devel] Bug#1090095: bme280: FTBFS: ERROR: Invalid value `None` in intersphinx_mapping['https://docs.python.org/2/']. Expected a two-element tuple or list.

Santiago Vila sanvila at debian.org
Mon Dec 16 13:46:01 GMT 2024


Package: src:bme280
Version: 0.2.4-1
Severity: serious
Tags: ftbfs

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build:

--------------------------------------------------------------------------------
[...]
 debian/rules build
dh build --with python3 --with sphinxdoc --buildsystem=pybuild
   dh_update_autotools_config -O--buildsystem=pybuild
   dh_autoreconf -O--buildsystem=pybuild
   dh_auto_configure -O--buildsystem=pybuild
I: pybuild base:311: python3.12 setup.py config 
/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:261: UserWarning: Unknown distribution option: 'tests_require'
  warnings.warn(msg)
running config
   dh_auto_build -O--buildsystem=pybuild
I: pybuild base:311: /usr/bin/python3 setup.py build 
/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:261: UserWarning: Unknown distribution option: 'tests_require'
  warnings.warn(msg)
running build
running build_py
creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_bme280/build/bme280
copying bme280/reader.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_bme280/build/bme280
copying bme280/const.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_bme280/build/bme280
copying bme280/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_bme280/build/bme280
   dh_auto_test -O--buildsystem=pybuild
I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_bme280/build; python3.12 -m pytest tests
============================= test session starts ==============================
platform linux -- Python 3.12.8, pytest-8.3.4, pluggy-1.5.0
rootdir: /<<PKGBUILDDIR>>
plugins: typeguard-4.4.1
collected 14 items

tests/test_bme280.py ......                                              [ 42%]
tests/test_const.py ....                                                 [ 71%]
tests/test_reader.py ....                                                [100%]

=============================== warnings summary ===============================
.pybuild/cpython3_3.12_bme280/build/tests/test_bme280.py::test_sample_with_params
.pybuild/cpython3_3.12_bme280/build/tests/test_bme280.py::test_sample_without_params
.pybuild/cpython3_3.12_bme280/build/tests/test_bme280.py::test_compensated_readings_repr
.pybuild/cpython3_3.12_bme280/build/tests/test_bme280.py::test_compensated_readings_repr_zero_millis
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_bme280/build/bme280/__init__.py:81: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
    self.timestamp = datetime.datetime.utcnow().replace(tzinfo=pytz.UTC)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
======================== 14 passed, 4 warnings in 0.07s ========================
   create-stamp debian/debhelper-build-stamp
 fakeroot debian/rules binary
dh binary --with python3 --with sphinxdoc --buildsystem=pybuild
   dh_testroot -O--buildsystem=pybuild
   dh_prep -O--buildsystem=pybuild
   dh_auto_install -O--buildsystem=pybuild
I: pybuild base:311: /usr/bin/python3 setup.py install --root /<<PKGBUILDDIR>>/debian/python3-bme280 
/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:261: UserWarning: Unknown distribution option: 'tests_require'
  warnings.warn(msg)
running install
/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!

        ********************************************************************************
        Please avoid running ``setup.py`` directly.
        Instead, use pypa/build, pypa/installer or other
        standards-based tools.

        See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
        ********************************************************************************

!!
  self.initialize_options()
running build
running build_py
running install_lib
creating /<<PKGBUILDDIR>>/debian/python3-bme280/usr/lib/python3.12/dist-packages
creating /<<PKGBUILDDIR>>/debian/python3-bme280/usr/lib/python3.12/dist-packages/bme280
copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_bme280/build/bme280/reader.py -> /<<PKGBUILDDIR>>/debian/python3-bme280/usr/lib/python3.12/dist-packages/bme280
creating /<<PKGBUILDDIR>>/debian/python3-bme280/usr/lib/python3.12/dist-packages/bme280/__pycache__
copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_bme280/build/bme280/__pycache__/__init__.cpython-312.pyc -> /<<PKGBUILDDIR>>/debian/python3-bme280/usr/lib/python3.12/dist-packages/bme280/__pycache__
copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_bme280/build/bme280/__pycache__/reader.cpython-312.pyc -> /<<PKGBUILDDIR>>/debian/python3-bme280/usr/lib/python3.12/dist-packages/bme280/__pycache__
copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_bme280/build/bme280/__pycache__/const.cpython-312.pyc -> /<<PKGBUILDDIR>>/debian/python3-bme280/usr/lib/python3.12/dist-packages/bme280/__pycache__
copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_bme280/build/bme280/const.py -> /<<PKGBUILDDIR>>/debian/python3-bme280/usr/lib/python3.12/dist-packages/bme280
copying /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_bme280/build/bme280/__init__.py -> /<<PKGBUILDDIR>>/debian/python3-bme280/usr/lib/python3.12/dist-packages/bme280
byte-compiling /<<PKGBUILDDIR>>/debian/python3-bme280/usr/lib/python3.12/dist-packages/bme280/reader.py to reader.cpython-312.pyc
byte-compiling /<<PKGBUILDDIR>>/debian/python3-bme280/usr/lib/python3.12/dist-packages/bme280/const.py to const.cpython-312.pyc
byte-compiling /<<PKGBUILDDIR>>/debian/python3-bme280/usr/lib/python3.12/dist-packages/bme280/__init__.py to __init__.cpython-312.pyc
running install_egg_info
running egg_info
creating RPi.bme280.egg-info
writing RPi.bme280.egg-info/PKG-INFO
writing dependency_links to RPi.bme280.egg-info/dependency_links.txt
writing requirements to RPi.bme280.egg-info/requires.txt
writing top-level names to RPi.bme280.egg-info/top_level.txt
writing manifest file 'RPi.bme280.egg-info/SOURCES.txt'
reading manifest file 'RPi.bme280.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'docs/_build'
warning: no previously-included files matching '__pycache__' found under directory '*'
warning: no previously-included files matching '*.py[co]' found under directory '*'
warning: no previously-included files matching '*~' found under directory '*'
warning: no previously-included files matching '.coverage' found under directory '*'
adding license file 'LICENSE.rst'
writing manifest file 'RPi.bme280.egg-info/SOURCES.txt'
Copying RPi.bme280.egg-info to /<<PKGBUILDDIR>>/debian/python3-bme280/usr/lib/python3.12/dist-packages/RPi.bme280-0.2.4.egg-info
Skipping SOURCES.txt
running install_scripts
   debian/rules execute_before_dh_installdocs
make[1]: Entering directory '/<<PKGBUILDDIR>>'
cd /<<PKGBUILDDIR>>/doc && make html
make[2]: Entering directory '/<<PKGBUILDDIR>>/doc'
sphinx-build -b html -d _build/doctrees   . _build/html
Running Sphinx v8.1.3
WARNING: Invalid configuration value found: 'language = None'. Update your configuration to a valid language code. Falling back to 'en' (English).
loading translations [en]... done
making output directory... done
WARNING: html_static_path entry '_static' does not exist
Converting `source_suffix = '.rst'` to `source_suffix = {'.rst': 'restructuredtext'}`.
ERROR: Invalid value `None` in intersphinx_mapping['https://docs.python.org/2/']. Expected a two-element tuple or list.

Configuration error:
Invalid `intersphinx_mapping` configuration (1 error).
make[2]: *** [Makefile:53: html] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/doc'
make[1]: *** [debian/rules:12: execute_before_dh_installdocs] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:5: binary] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202412/

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

Thanks.



More information about the Pkg-electronics-devel mailing list