Package: src:python-aioshelly
Version: 11.2.0-1
Severity: serious
Tags: ftbfs

Dear maintainer:

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

--------------------------------------------------------------------------------
[...]
 debian/rules build
make: pyversions: No such file or directory
py3versions: no X-Python3-Version in control file, using supported versions
dh build --buildsystem=pybuild --with python3
   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.12 with "build" 
module
I: pybuild base:311: python3.12 -m build --skip-dependency-check --no-isolation --wheel 
--outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12
* Building wheel...
running bdist_wheel
running build
running build_py
creating build
creating build/lib
creating build/lib/aioshelly
copying aioshelly/exceptions.py -> build/lib/aioshelly
copying aioshelly/__init__.py -> build/lib/aioshelly
copying aioshelly/common.py -> build/lib/aioshelly
copying aioshelly/const.py -> build/lib/aioshelly
copying aioshelly/json.py -> build/lib/aioshelly
creating build/lib/tools
copying tools/verify.py -> build/lib/tools
copying tools/example.py -> build/lib/tools
copying tools/__init__.py -> build/lib/tools
copying tools/fixture.py -> build/lib/tools
creating build/lib/aioshelly/rpc_device
copying aioshelly/rpc_device/device.py -> build/lib/aioshelly/rpc_device
copying aioshelly/rpc_device/wsrpc.py -> build/lib/aioshelly/rpc_device
copying aioshelly/rpc_device/__init__.py -> build/lib/aioshelly/rpc_device
copying aioshelly/rpc_device/models.py -> build/lib/aioshelly/rpc_device
creating build/lib/aioshelly/block_device
copying aioshelly/block_device/device.py -> build/lib/aioshelly/block_device
copying aioshelly/block_device/__init__.py -> build/lib/aioshelly/block_device
copying aioshelly/block_device/coap.py -> build/lib/aioshelly/block_device
creating build/lib/aioshelly/ble
copying aioshelly/ble/__init__.py -> build/lib/aioshelly/ble
copying aioshelly/ble/const.py -> build/lib/aioshelly/ble
copying aioshelly/ble/parser.py -> build/lib/aioshelly/ble
creating build/lib/aioshelly/ble/backend
copying aioshelly/ble/backend/__init__.py -> build/lib/aioshelly/ble/backend
copying aioshelly/ble/backend/scanner.py -> build/lib/aioshelly/ble/backend
creating build/lib/tools/common
copying tools/common/__init__.py -> build/lib/tools/common
copying aioshelly/py.typed -> build/lib/aioshelly
installing to build/bdist.linux-x86_64/wheel
running install
running install_lib
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/wheel
creating build/bdist.linux-x86_64/wheel/aioshelly
creating build/bdist.linux-x86_64/wheel/aioshelly/rpc_device
copying build/lib/aioshelly/rpc_device/device.py -> 
build/bdist.linux-x86_64/wheel/aioshelly/rpc_device
copying build/lib/aioshelly/rpc_device/wsrpc.py -> 
build/bdist.linux-x86_64/wheel/aioshelly/rpc_device
copying build/lib/aioshelly/rpc_device/__init__.py -> 
build/bdist.linux-x86_64/wheel/aioshelly/rpc_device
copying build/lib/aioshelly/rpc_device/models.py -> 
build/bdist.linux-x86_64/wheel/aioshelly/rpc_device
creating build/bdist.linux-x86_64/wheel/aioshelly/block_device
copying build/lib/aioshelly/block_device/device.py -> 
build/bdist.linux-x86_64/wheel/aioshelly/block_device
copying build/lib/aioshelly/block_device/__init__.py -> 
build/bdist.linux-x86_64/wheel/aioshelly/block_device
copying build/lib/aioshelly/block_device/coap.py -> 
build/bdist.linux-x86_64/wheel/aioshelly/block_device
copying build/lib/aioshelly/exceptions.py -> 
build/bdist.linux-x86_64/wheel/aioshelly
creating build/bdist.linux-x86_64/wheel/aioshelly/ble
creating build/bdist.linux-x86_64/wheel/aioshelly/ble/backend
copying build/lib/aioshelly/ble/backend/__init__.py -> 
build/bdist.linux-x86_64/wheel/aioshelly/ble/backend
copying build/lib/aioshelly/ble/backend/scanner.py -> 
build/bdist.linux-x86_64/wheel/aioshelly/ble/backend
copying build/lib/aioshelly/ble/__init__.py -> 
build/bdist.linux-x86_64/wheel/aioshelly/ble
copying build/lib/aioshelly/ble/const.py -> 
build/bdist.linux-x86_64/wheel/aioshelly/ble
copying build/lib/aioshelly/ble/parser.py -> 
build/bdist.linux-x86_64/wheel/aioshelly/ble
copying build/lib/aioshelly/__init__.py -> 
build/bdist.linux-x86_64/wheel/aioshelly
copying build/lib/aioshelly/common.py -> 
build/bdist.linux-x86_64/wheel/aioshelly
copying build/lib/aioshelly/const.py -> build/bdist.linux-x86_64/wheel/aioshelly
copying build/lib/aioshelly/json.py -> build/bdist.linux-x86_64/wheel/aioshelly
copying build/lib/aioshelly/py.typed -> build/bdist.linux-x86_64/wheel/aioshelly
creating build/bdist.linux-x86_64/wheel/tools
copying build/lib/tools/verify.py -> build/bdist.linux-x86_64/wheel/tools
copying build/lib/tools/example.py -> build/bdist.linux-x86_64/wheel/tools
creating build/bdist.linux-x86_64/wheel/tools/common
copying build/lib/tools/common/__init__.py -> 
build/bdist.linux-x86_64/wheel/tools/common
copying build/lib/tools/__init__.py -> build/bdist.linux-x86_64/wheel/tools
copying build/lib/tools/fixture.py -> build/bdist.linux-x86_64/wheel/tools
running install_egg_info
running egg_info
creating aioshelly.egg-info
writing aioshelly.egg-info/PKG-INFO
writing dependency_links to aioshelly.egg-info/dependency_links.txt
writing requirements to aioshelly.egg-info/requires.txt
writing top-level names to aioshelly.egg-info/top_level.txt
writing manifest file 'aioshelly.egg-info/SOURCES.txt'
reading manifest file 'aioshelly.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'aioshelly.egg-info/SOURCES.txt'
Copying aioshelly.egg-info to 
build/bdist.linux-x86_64/wheel/aioshelly-11.2.0.egg-info
running install_scripts
creating build/bdist.linux-x86_64/wheel/aioshelly-11.2.0.dist-info/WHEEL
creating 
'/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/.tmp-elqcmc7y/aioshelly-11.2.0-py3-none-any.whl'
 and adding 'build/bdist.linux-x86_64/wheel' to it
adding 'aioshelly/__init__.py'
adding 'aioshelly/common.py'
adding 'aioshelly/const.py'
adding 'aioshelly/exceptions.py'
adding 'aioshelly/json.py'
adding 'aioshelly/py.typed'
adding 'aioshelly/ble/__init__.py'
adding 'aioshelly/ble/const.py'
adding 'aioshelly/ble/parser.py'
adding 'aioshelly/ble/backend/__init__.py'
adding 'aioshelly/ble/backend/scanner.py'
adding 'aioshelly/block_device/__init__.py'
adding 'aioshelly/block_device/coap.py'
adding 'aioshelly/block_device/device.py'
adding 'aioshelly/rpc_device/__init__.py'
adding 'aioshelly/rpc_device/device.py'
adding 'aioshelly/rpc_device/models.py'
adding 'aioshelly/rpc_device/wsrpc.py'
adding 'tools/__init__.py'
adding 'tools/example.py'
adding 'tools/fixture.py'
adding 'tools/verify.py'
adding 'tools/common/__init__.py'
adding 'aioshelly-11.2.0.dist-info/LICENSE'
adding 'aioshelly-11.2.0.dist-info/METADATA'
adding 'aioshelly-11.2.0.dist-info/WHEEL'
adding 'aioshelly-11.2.0.dist-info/top_level.txt'
adding 'aioshelly-11.2.0.dist-info/zip-safe'
adding 'aioshelly-11.2.0.dist-info/RECORD'
removing build/bdist.linux-x86_64/wheel
Successfully built aioshelly-11.2.0-py3-none-any.whl
I: pybuild plugin_pyproject:144: Unpacking wheel built for python3.12 with 
"installer" module
   dh_auto_test -O--buildsystem=pybuild
I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build; 
python3.12 -m unittest discover -v
aioshelly.ble (unittest.loader._FailedTest.aioshelly.ble) ... ERROR

======================================================================
ERROR: aioshelly.ble (unittest.loader._FailedTest.aioshelly.ble)
----------------------------------------------------------------------
ImportError: Failed to import test module: aioshelly.ble
Traceback (most recent call last):
  File "/usr/lib/python3.12/unittest/loader.py", line 429, in _find_test_path
    package = self._get_module_from_name(name)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/unittest/loader.py", line 339, in 
_get_module_from_name
    __import__(name)
  File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/aioshelly/ble/__init__.py", 
line 7, in <module>
    from habluetooth import HaBluetoothConnector
  File "/usr/lib/python3/dist-packages/habluetooth/__init__.py", line 7, in 
<module>
    from .base_scanner import BaseHaRemoteScanner, BaseHaScanner
  File "/usr/lib/python3/dist-packages/habluetooth/base_scanner.py", line 14, in 
<module>
    from bluetooth_data_tools import monotonic_time_coarse
  File "/usr/lib/python3/dist-packages/bluetooth_data_tools/__init__.py", line 12, in 
<module>
    from .privacy import get_cipher_for_irk, resolve_private_address
  File "/usr/lib/python3/dist-packages/bluetooth_data_tools/privacy.py", line 14, in 
<module>
    from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes
  File 
"/usr/lib/python3/dist-packages/cryptography/hazmat/primitives/ciphers/__init__.py", 
line 11, in <module>
    from cryptography.hazmat.primitives.ciphers.base import (
  File 
"/usr/lib/python3/dist-packages/cryptography/hazmat/primitives/ciphers/base.py", line 
10, in <module>
    from cryptography.exceptions import (
  File "/usr/lib/python3/dist-packages/cryptography/exceptions.py", line 9, in 
<module>
    from cryptography.hazmat.bindings._rust import exceptions as rust_exceptions
RuntimeError: OpenSSL 3.0's legacy provider failed to load. This is a fatal 
error by default, but cryptography supports running without legacy algorithms 
by setting the environment variable CRYPTOGRAPHY_OPENSSL_NO_LEGACY. If you did 
not expect this error, you have likely made a mistake with your OpenSSL 
configuration.


----------------------------------------------------------------------
Ran 1 test in 0.000s

FAILED (errors=1)
E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build; python3.12 -m unittest discover 
-v
dh_auto_test: error: pybuild --test -i python{version} -p 3.12 returned exit 
code 13
make: *** [debian/rules:7: build] Error 25
dpkg-buildpackage: error: debian/rules build 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/202408/

See also:

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/python-aioshelly.html

About the archive rebuild: The build was made on virtual machines
of type m6a.large and r6a.large 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.

Reply via email to