[Pkg-electronics-devel] Bug#1135496: bme280: FTBFS: AttributeError: '_const' object has no attribute '__name__'. Did you mean: '__ne__'?
Santiago Vila
sanvila at debian.org
Sat May 2 00:29:07 BST 2026
Package: src:bme280
Version: 0.2.4-3
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:bme280, 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
debian/rules execute_after_dh_auto_clean
make[1]: Entering directory '/<<PKGBUILDDIR>>'
rm -rf *bme280.egg-info
rm -rf .mypy_cache
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
dh_autoreconf_clean -O--buildsystem=pybuild
dh_clean -O--buildsystem=pybuild
debian/rules binary
dh binary --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:142: Building wheel for python3.14 with "build" module
I: pybuild base:385: python3.14 -m build --skip-dependency-check --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_bme280
* Building wheel...
/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:289: UserWarning: Unknown distribution option: 'tests_require'
warnings.warn(msg)
/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 :: MIT License
See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
********************************************************************************
!!
self._finalize_license_expression()
running bdist_wheel
/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:135: SetuptoolsDeprecationWarning: bdist_wheel.universal is deprecated
!!
********************************************************************************
With Python 2.7 end-of-life, support for building universal wheels
(i.e., wheels that support both Python 2 and Python 3)
is being obviated.
Please discontinue using this option, or if you still need it,
file an issue with pypa/setuptools describing your use case.
This deprecation is overdue, please update your project and remove deprecated
calls to avoid build errors in the future.
********************************************************************************
!!
self.finalize_options()
running build
running build_py
creating build/lib/bme280
copying bme280/__init__.py -> build/lib/bme280
copying bme280/const.py -> build/lib/bme280
copying bme280/reader.py -> build/lib/bme280
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/bme280
copying build/lib/bme280/__init__.py -> build/bdist.linux-x86_64/wheel/./bme280
copying build/lib/bme280/const.py -> build/bdist.linux-x86_64/wheel/./bme280
copying build/lib/bme280/reader.py -> build/bdist.linux-x86_64/wheel/./bme280
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 build/bdist.linux-x86_64/wheel/./RPi.bme280-0.2.4.egg-info
running install_scripts
creating build/bdist.linux-x86_64/wheel/rpi_bme280-0.2.4.dist-info/WHEEL
creating '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_bme280/.tmp-1ks_ylh6/rpi_bme280-0.2.4-py2.py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it
adding 'bme280/__init__.py'
adding 'bme280/const.py'
adding 'bme280/reader.py'
adding 'rpi_bme280-0.2.4.dist-info/licenses/LICENSE.rst'
adding 'rpi_bme280-0.2.4.dist-info/METADATA'
adding 'rpi_bme280-0.2.4.dist-info/WHEEL'
adding 'rpi_bme280-0.2.4.dist-info/top_level.txt'
adding 'rpi_bme280-0.2.4.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
Successfully built rpi_bme280-0.2.4-py2.py3-none-any.whl
I: pybuild plugin_pyproject:168: Unpacking wheel built for python3.14 with "installer" module
I: pybuild plugin_pyproject:142: Building wheel for python3.13 with "build" module
I: pybuild base:385: python3.13 -m build --skip-dependency-check --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_bme280
* Building wheel...
/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:289: UserWarning: Unknown distribution option: 'tests_require'
warnings.warn(msg)
/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 :: MIT License
See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
********************************************************************************
!!
self._finalize_license_expression()
running bdist_wheel
/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py:135: SetuptoolsDeprecationWarning: bdist_wheel.universal is deprecated
!!
********************************************************************************
With Python 2.7 end-of-life, support for building universal wheels
(i.e., wheels that support both Python 2 and Python 3)
is being obviated.
Please discontinue using this option, or if you still need it,
file an issue with pypa/setuptools describing your use case.
This deprecation is overdue, please update your project and remove deprecated
calls to avoid build errors in the future.
********************************************************************************
!!
self.finalize_options()
running build
running build_py
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/bme280
copying build/lib/bme280/__init__.py -> build/bdist.linux-x86_64/wheel/./bme280
copying build/lib/bme280/const.py -> build/bdist.linux-x86_64/wheel/./bme280
copying build/lib/bme280/reader.py -> build/bdist.linux-x86_64/wheel/./bme280
running install_egg_info
running 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
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 build/bdist.linux-x86_64/wheel/./RPi.bme280-0.2.4.egg-info
running install_scripts
creating build/bdist.linux-x86_64/wheel/rpi_bme280-0.2.4.dist-info/WHEEL
creating '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_bme280/.tmp-qgd5c7dp/rpi_bme280-0.2.4-py2.py3-none-any.whl' and adding 'build/bdist.linux-x86_64/wheel' to it
adding 'bme280/__init__.py'
adding 'bme280/const.py'
adding 'bme280/reader.py'
adding 'rpi_bme280-0.2.4.dist-info/licenses/LICENSE.rst'
adding 'rpi_bme280-0.2.4.dist-info/METADATA'
adding 'rpi_bme280-0.2.4.dist-info/WHEEL'
adding 'rpi_bme280-0.2.4.dist-info/top_level.txt'
adding 'rpi_bme280-0.2.4.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
Successfully built rpi_bme280-0.2.4-py2.py3-none-any.whl
I: pybuild plugin_pyproject:168: Unpacking wheel built for python3.13 with "installer" module
dh_auto_test -O--buildsystem=pybuild
I: pybuild base:385: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_bme280/build; python3.14 -m pytest tests
============================= test session starts ==============================
platform linux -- Python 3.14.4, pytest-9.0.3, pluggy-1.6.0
rootdir: /<<PKGBUILDDIR>>
plugins: typeguard-4.4.4
collected 14 items
tests/test_bme280.py ...... [ 42%]
tests/test_const.py .... [ 71%]
tests/test_reader.py .... [100%]
=============================== warnings summary ===============================
.pybuild/cpython3_3.14_bme280/build/tests/test_bme280.py::test_sample_with_params
.pybuild/cpython3_3.14_bme280/build/tests/test_bme280.py::test_sample_without_params
.pybuild/cpython3_3.14_bme280/build/tests/test_bme280.py::test_compensated_readings_repr
.pybuild/cpython3_3.14_bme280/build/tests/test_bme280.py::test_compensated_readings_repr_zero_millis
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_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 ========================
I: pybuild base:385: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_bme280/build; python3.13 -m pytest tests
============================= test session starts ==============================
platform linux -- Python 3.13.12, pytest-9.0.3, pluggy-1.6.0
rootdir: /<<PKGBUILDDIR>>
plugins: typeguard-4.4.4
collected 14 items
tests/test_bme280.py ...... [ 42%]
tests/test_const.py .... [ 71%]
tests/test_reader.py .... [100%]
=============================== warnings summary ===============================
.pybuild/cpython3_3.13_bme280/build/tests/test_bme280.py::test_sample_with_params
.pybuild/cpython3_3.13_bme280/build/tests/test_bme280.py::test_sample_without_params
.pybuild/cpython3_3.13_bme280/build/tests/test_bme280.py::test_compensated_readings_repr
.pybuild/cpython3_3.13_bme280/build/tests/test_bme280.py::test_compensated_readings_repr_zero_millis
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_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.08s ========================
create-stamp debian/debhelper-build-stamp
dh_testroot -O--buildsystem=pybuild
dh_prep -O--buildsystem=pybuild
dh_auto_install -O--buildsystem=pybuild
I: pybuild plugin_pyproject:199: Copying package built for python3.14 to destdir
I: pybuild plugin_pyproject:199: Copying package built for python3.13 to destdir
dh_installdocs -O--buildsystem=pybuild
debian/rules override_dh_sphinxdoc
make[1]: Entering directory '/<<PKGBUILDDIR>>'
PYTHONPATH=/<<PKGBUILDDIR>>/bme \
python3 -m sphinx -b html -N doc/ /<<PKGBUILDDIR>>/debian/bme280-doc/usr/share/doc/bme280-doc/html
Running Sphinx v9.1.0
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'}`.
loading intersphinx inventory 'python' from /usr/share/doc/python3-doc/html/objects.inv ...
building [mo]: targets for 0 po files that are out of date
writing output...
building [html]: targets for 3 source files that are out of date
updating environment: [new config] 3 added, 0 changed, 0 removed
reading sources... [ 33%] bme280
Versions
========
* Platform: linux; (Linux-6.12.74+deb13+1-cloud-amd64-x86_64-with-glibc2.42)
* Python version: 3.13.12 (CPython)
* Sphinx version: 9.1.0
* Docutils version: 0.22.4
* Jinja2 version: 3.1.6
* Pygments version: 2.19.2
Last Messages
=============
building [mo]: targets for 0 po files that are out of date
writing output...
building [html]: targets for 3 source files that are out of date
updating environment:
[new config]
3 added, 0 changed, 0 removed
reading sources... [ 33%]
bme280
Loaded Extensions
=================
* sphinx.ext.mathjax (9.1.0)
* alabaster (1.0.0)
* sphinx.ext.autodoc (9.1.0)
* sphinx.ext.intersphinx (9.1.0)
Traceback
=========
File "/usr/lib/python3/dist-packages/sphinx/ext/autodoc/_dynamic/_loader.py", line 204, in _make_props_from_imported_object
_obj___module__=obj.__name__,
^^^^^^^^^^^^
AttributeError: '_const' object has no attribute '__name__'. Did you mean: '__ne__'?
The full traceback has been saved in:
/tmp/sphinx-err-tmwflike.log
To report this error to the developers, please open an issue at <https://github.com/sphinx-doc/sphinx/issues/>. Thanks!
Please also report this if it was a user error, so that a better error message can be provided next time.
make[1]: *** [debian/rules:17: override_dh_sphinxdoc] Error 2
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:9: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2
--------------------------------------------------------------------------------
More information about the Pkg-electronics-devel
mailing list