#1116618 Breaks with new python3-typer: AttributeError: module 'typer' has no attribute 'rich_utils' #1116618
- Package:
- zabbix-cli
- Source:
- zabbix-cli
- Submitter:
- Jakob Haufe
- Date:
- 2025-09-30 08:45:02 UTC
- Severity:
- normal
- Tags:
With python3-typer 0.19 in testing, zabbix-cli fails to start:
$ zabbix-cli
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/zabbix_cli/_patches/typer.py", line 313, in patch
patch_help_text_style()
~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/lib/python3/dist-packages/zabbix_cli/_patches/typer.py", line 41, in patch_help_text_style
typer.rich_utils.STYLE_HELPTEXT = ""
^^^^^^^^^^^^^^^^
AttributeError: module 'typer' has no attribute 'rich_utils'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/zabbix-cli", line 5, in <module>
from zabbix_cli.main import main
File "/usr/lib/python3/dist-packages/zabbix_cli/__init__.py", line 5, in <module>
patch_all()
~~~~~~~~~^^
File "/usr/lib/python3/dist-packages/zabbix_cli/_patches/__init__.py", line 8, in patch_all
typ.patch()
~~~~~~~~~^^
File "/usr/lib/python3/dist-packages/zabbix_cli/_patches/typer.py", line 312, in patch
with patcher("typer.rich_utils.STYLE_HELPTEXT"):
~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/zabbix_cli/_patches/common.py", line 43, in __exit__
console = rich.console.Console(stderr=True)
^^^^^^^^^^^^
AttributeError: module 'rich' has no attribute 'console'
This is not due to the fact that typer changed API but due to
zabbix-cli doing runtime patching of typer internals.
Hello, Bug #1116618 in zabbix-cli reported by you has been fixed in the Git repository and is awaiting an upload. You can see the commit message below and you can check the diff of the fix at: https://salsa.debian.org/python-team/packages/zabbix-cli/-/commit/c825dd005da63512d7377291d140fbb072ca95fe (this message was generated automatically) -- Greetings https://bugs.debian.org/1116618
Hello, Bug #1116618 in zabbix-cli reported by you has been fixed in the Git repository and is awaiting an upload. You can see the commit message below and you can check the diff of the fix at: https://salsa.debian.org/python-team/packages/zabbix-cli/-/commit/c825dd005da63512d7377291d140fbb072ca95fe (this message was generated automatically) -- Greetings https://bugs.debian.org/1116618
We believe that the bug you reported is fixed in the latest version of zabbix-cli, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to 1116618@bugs.debian.org, and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Jakob Haufe <sur5r@debian.org> (supplier of updated zabbix-cli package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing ftpmaster@ftp-master.debian.org) Format: 1.8 Date: Tue, 30 Sep 2025 10:06:57 +0200 Source: zabbix-cli Architecture: source Version: 3.5.2-3 Distribution: unstable Urgency: medium Maintainer: Debian Python Team <team+python@tracker.debian.org> Changed-By: Jakob Haufe <sur5r@debian.org> Closes: 1116618 Changes: zabbix-cli (3.5.2-3) unstable; urgency=medium . * Add patch to work with typer >= 0.17.0 (Closes: #1116618) Checksums-Sha1: 3d38ec90b7f4f0d17f39ece73dbe912e3ab450ba 2260 zabbix-cli_3.5.2-3.dsc 9cada73970091cba3aa436c163823013043a3211 4356 zabbix-cli_3.5.2-3.debian.tar.xz 2869a1a2e0bd03fe7356383787212d44111440ce 5941 zabbix-cli_3.5.2-3_source.buildinfo Checksums-Sha256: f69a9e96c51b419eae0f4d534aa5b5125f6a4cbfc3fad70cea04731277063f5d 2260 zabbix-cli_3.5.2-3.dsc d9c3773db2797d24e1b27f4a4ceb96c8023bbe7007c6976e69a15187c5218099 4356 zabbix-cli_3.5.2-3.debian.tar.xz 3abe4a363bf40623c01fa438ed69263f37a4957071b2de7967854a8961e04060 5941 zabbix-cli_3.5.2-3_source.buildinfo Files: 1d05585ac26bfc7e7e751a955029ee78 2260 utils optional zabbix-cli_3.5.2-3.dsc 89403a83b9aa1ecb9e944cc748b0e6d7 4356 utils optional zabbix-cli_3.5.2-3.debian.tar.xz 180014a4a9fe81c38d94ce575bae2f52 5941 utils optional zabbix-cli_3.5.2-3_source.buildinfo -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEe/X2rDZDH11A3BN6TPKyGPVNrj0FAmjbkMUACgkQTPKyGPVN rj376g//bTol5nXbWunZCTwbEzPdtFII5Bf3uLs429q8DGBuZyqpcZSdbRgmBxL/ NDFUcxNw8QZS/L3EWT0ujPCZ6UX+L2ONVC9GT7geMSO0YjN23gxP6XsnSsWtsaWg 6C0gc5PxGMu05ue/NhNnTUYZuWa1j6449FbHdZp5B72JNcaHXo2aBhAfra+S87tT FXxx94KTsaJDkqXYSjCLdL1Yrl59uQlgN2Uj4SzrBQiA0G8vG1+qUcxbbMlLk3eD MXwMVcNpeKY8LR9HfMTwkcnrMgdaQ+9Ufycg7E2o/nQbsPPmW5aNO2DmZs26wraP xrxKn7wh1tDzonJcwyHjkHFvntSY13cRtmOdfZssjOcMUBJ8HBfYqrCE7DuLO6/Y n1dAfFCLtCTPafFQUkUixpc9CHdqKDgkgFRg6xey8fuQSd6ecqxXLMr8dc4dumEw oC9/npzxAbBYmi+pf1y/I1l+EAxS4sjxfso3kAlL7EgFNTaseRKRtPKqEe1PwlUM SdTA8zw7+Vl0T2yfb6Qjwa5wDRc6plwwPePqY0dhMOcAQeGCn2oa0hzHPwAQ+gfw +Z0ZuFdxHFzMmBg2vW75KWTHE5Wuui7HCQEc0OWKgKE/Cys6QCRsPhkz1lP7zJwe rZWa8QXiJ7zhnspEPDFFpOFz8GncNZykOvURVhWUjCa39STj5TE= =gHgS -----END PGP SIGNATURE-----