Bug#1122394: aiohttp-sse: FTBFS: AttributeError: 'Constant' object has no attribute 's'

2025-12-11 Thread Tianyu Chen
Control: tags -1 pending

Hi, 

This has been fixed in the Git repository.

https://salsa.debian.org/homeassistant-team/deps/aiohttp-sse/-/commit/91750098c6a89518afb7459c68682571416b1b24

Best Regards,
Tianyu Chen



Bug#1122394: aiohttp-sse: FTBFS: AttributeError: 'Constant' object has no attribute 's'

2025-12-10 Thread Santiago Vila
Package: src:aiohttp-sse
Version: 2.2.0-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/202512/

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:aiohttp-sse, 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
   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:131: Building wheel for python3.14 with "build" 
module
I: pybuild base:317: python3.14 -m build --skip-dependency-check --no-isolation 
--wheel --outdir /<>/.pybuild/cpython3_3.14  
* Building wheel...
:15: DeprecationWarning: codecs.open() is deprecated. Use open() 
instead.
Traceback (most recent call last):
  File 
"/usr/lib/python3/dist-packages/pyproject_hooks/_in_process/_in_process.py", 
line 389, in 
main()
^^
  File 
"/usr/lib/python3/dist-packages/pyproject_hooks/_in_process/_in_process.py", 
line 373, in main
json_out["return_val"] = hook(**hook_input["kwargs"])
 
  File 
"/usr/lib/python3/dist-packages/pyproject_hooks/_in_process/_in_process.py", 
line 280, in build_wheel
return _build_backend().build_wheel(
   ^
wheel_directory, config_settings, metadata_directory

)
^
  File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 435, in 
build_wheel
return _build(['bdist_wheel'])
  File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 426, in 
_build
return self._build_with_temp_dir(
   ~^
cmd,

...<3 lines>...
self._arbitrary_args(config_settings),
^^
)
^
  File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 407, in 
_build_with_temp_dir
self.run_setup()
~~^^
  File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 320, in 
run_setup
exec(code, locals())

  File "", line 46, in 
  File "", line 34, in read_version
  File "/usr/lib/python3.14/ast.py", line 506, in visit
return visitor(node)
  File "/usr/lib/python3.14/ast.py", line 514, in generic_visit
self.visit(item)
~~^^
  File "/usr/lib/python3.14/ast.py", line 506, in visit
return visitor(node)
  File "", line 28, in visit_Assign
AttributeError: 'Constant' object has no attribute 's'

ERROR Backend subprocess exited when trying to invoke build_wheel
E: pybuild pybuild:389: build: plugin pyproject failed with: exit code=1: 
python3.14 -m build --skip-dependency-check --no-isolation --wheel --outdir 
/<>/.pybuild/cpython3_3.14  
I: pybuild plugin_pyproject:131: Building wheel for python3.13 with "build" 
module
I: pybuild base:317: python3.13 -m build --skip-dependency-check --no-isolation 
--wheel --outdir /<>/.pybuild/cpython3_3.13  
* Building wheel...
:28: DeprecationWarning: Attribute s is deprecated and will be removed 
in Python 3.14; use value instead
/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 :: Apache Software 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/aiohttp_sse
copying aiohttp_sse/helpers.py -> build/lib/aiohttp_sse
copying aiohttp_sse/__init__.py -> build/lib/aiohttp_sse
running egg_info
creating aiohttp_sse.egg-info
writing aiohttp_sse.eg