Univention Bugzilla – Bug 56162
Join.log spammed with tracebacks
Last modified: 2023-08-23 14:54:16 CEST
Since commit aeb07b074d style(lib): Properly implement TextIOBase protocol The join.log of our tests is spammed with this Traceback. It doesn't seem to have any consequences but can mask real errors. stderr: io.UnsupportedOperation: fileno Traceback (most recent call last): File "/usr/lib/python3/dist-packages/apt/progress/text.py", line 192, in pulse not os.isatty(self._file.fileno())): io.UnsupportedOperation: fileno Traceback (most recent call last): File "/usr/lib/python3/dist-packages/apt/progress/text.py", line 192, in pulse not os.isatty(self._file.fileno())): io.UnsupportedOperation: Error in function pulse Error in function pulse Error in function pulse Error in function pulse Error in function pulse Error in function pulse Error in function pulse Error in function pulse Error in function pulse Error in function pulse Error in function pulse Error in function pulse
Created attachment 11072 [details] Revert to inherit from object This patch fixes the error for me
Reproducer: ```python import logging logging.basicConfig(level=logging.INFO) from univention.lib.package_manager import PackageManager from package_manager import PackageManager pm = PackageManager() pm.update() ``` The current implementation heavily depends on the APT text protocol. Instead the implementation should be based on the APT API and should directly translate those calls into the output expected by `univention.management.console.modules.setup.util.ProgressParser`. This is implemented in univention/ucs!816
https://git.knut.univention.de/univention/ucs/-/commit/711d7f1f277e247f81b662446ba265058fbb14d0 Package: univention-lib Version: 9.0.16-4 Branch: ucs_5.0-0 Scope: errata5.0-4 OK: errata-announce -V --only univention-lib.yaml QA: See <https://git.knut.univention.de/univention/ucs/-/merge_requests/816>
OK: No more tracebacks during system setup OK: YAML OK: built Verified
<https://errata.software-univention.de/#/?erratum=5.0x785>