Your message dated Thu, 18 Oct 2012 18:47:32 +0000 with message-id <[email protected]> and subject line Bug#690301: fixed in weboob 0.c-4.1 has caused the Debian Bug report #690301, regarding weboob: crashes with many commands to be marked as done.
This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact [email protected] immediately.) -- 690301: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=690301 Debian Bug Tracking System Contact [email protected] with problems
--- Begin Message ---Package: weboob Version: 0.c-4 Severity: grave Tags: patch upstream Justification: renders package unusable Hello, Many commands of Weboob command line applications crash. For instance: traveloob> stations Arcueil Traceback (most recent call last): File "/usr/bin/traveloob", line 27, in <module> Traveloob.run() File "/usr/lib/python2.7/dist-packages/weboob/tools/application/console.py", line 192, in run super(ConsoleApplication, klass).run(args) File "/usr/lib/python2.7/dist-packages/weboob/tools/application/base.py", line 392, in run sys.exit(app.main(args)) File "/usr/lib/python2.7/dist-packages/weboob/tools/application/repl.py", line 281, in main self.cmdloop() File "/usr/lib/python2.7/cmd.py", line 142, in cmdloop stop = self.onecmd(line) File "/usr/lib/python2.7/dist-packages/weboob/tools/application/repl.py", line 348, in onecmd self.flush() File "/usr/lib/python2.7/dist-packages/weboob/tools/application/repl.py", line 1078, in flush self.formatter.flush() File "/usr/lib/python2.7/dist-packages/weboob/tools/application/formatters/table.py", line 41, in flush s = self.get_formatted_table() File "/usr/lib/python2.7/dist-packages/weboob/tools/application/formatters/table.py", line 72, in get_formatted_table table.set_field_align(column_header, 'l') File "/usr/lib/pymodules/python2.7/prettytable.py", line 167, in __getattr__ raise AttributeError(name) AttributeError: set_field_align In fact, all the commands that are supposed to display a table are failing this way. It seems related to the prettytable API change reported on bug #673790 [1]. Although this may eventually be corrected in prettytable, it would be faster and saner to fix it in Weboob too. [1] http://bugs.debian.org/673790 As this problem has already been fixed upstream [2] by working arount the API change, fixing it in this package should be as simple as temporarily integrating the attached patch as a local one in debian/patches. And asking the release team to unblock your new version, by reporting an unblock bug against the pseudo-package relase.debian.org. [2] http://git.symlink.me/?p=romain/weboob-stable.git;a=commit;h=a8e2342edcbc38b940089822dafdcebd27b00946 Librement, -- ,--. : /` ) Tanguy Ortolo <xmpp:[email protected]> | `-' Debian Developer <irc://irc.oftc.net/Tanguy> \_>From a8e2342edcbc38b940089822dafdcebd27b00946 Mon Sep 17 00:00:00 2001 From: Florent <[email protected]> Date: Mon, 21 May 2012 17:46:21 +0200 Subject: [PATCH] Fix table formatter with 0.6 version I didn't see a way to only align header... --- weboob/tools/application/formatters/table.py | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/weboob/tools/application/formatters/table.py b/weboob/tools/application/formatters/table.py index d11dc11..55e7468 100644 --- a/weboob/tools/application/formatters/table.py +++ b/weboob/tools/application/formatters/table.py @@ -69,7 +69,13 @@ class TableFormatter(IFormatter): s += "\n" table = PrettyTable(list(column_headers)) for column_header in column_headers: - table.set_field_align(column_header, 'l') + # API changed in python-prettytable. The try/except is a bad hack to support both versions + # Note: two versions are not exactly the same... + # (first one: header in center. Second one: left align for header too) + try: + table.set_field_align(column_header, 'l') + except: + table.align[column_header] = 'l' for line in queue: table.add_row(line) -- 1.7.2.5
signature.asc
Description: Digital signature
--- End Message ---
--- Begin Message ---Source: weboob Source-Version: 0.c-4.1 We believe that the bug you reported is fixed in the latest version of weboob, 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 [email protected], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Tanguy Ortolo <[email protected]> (supplier of updated weboob 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 [email protected]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Format: 1.8 Date: Thu, 18 Oct 2012 20:25:14 +0200 Source: weboob Binary: python-weboob-core weboob weboob-qt Architecture: source all Version: 0.c-4.1 Distribution: unstable Urgency: low Maintainer: Romain Bignon <[email protected]> Changed-By: Tanguy Ortolo <[email protected]> Description: python-weboob-core - Weboob, Web Out Of Browsers - core library weboob - CLI applications to interact with websites weboob-qt - Qt applications to interact with websites Closes: 690301 Changes: weboob (0.c-4.1) unstable; urgency=low . * Non-maintainer upload, already approved by the maintainer. * Fix incompatibility with the last version of python-prettytable. (Closes: #690301) Checksums-Sha1: b3d1cb13e5c7df0e108d3db6c93e6fb3437309fd 1987 weboob_0.c-4.1.dsc 0cf590a6d31a0d92071ec0e09fe7edf7aeedfed9 18315 weboob_0.c-4.1.debian.tar.gz 1fa0a5c3a66e88d5c9cec4094ed157c965efd7c3 137550 python-weboob-core_0.c-4.1_all.deb 93d0fc3db79d3dad1245c00d0d1a08cb0536fb77 242538 weboob_0.c-4.1_all.deb 869d6238473ba73cb0e3cc3d7325d68676b5b3b4 123984 weboob-qt_0.c-4.1_all.deb Checksums-Sha256: 0c69d0114f005db6acec8493be1760e90e454685e41bf1eaf888ed327f961e9f 1987 weboob_0.c-4.1.dsc 2848e2a61a1aa567c54e6a33bab9e83f2e570ec4ca72c9bad5eb107ce674a006 18315 weboob_0.c-4.1.debian.tar.gz 145be11ad660aa60a90a05eed7dd285a91943beda3137dcb9db7e2db15e67906 137550 python-weboob-core_0.c-4.1_all.deb 47bc9fec64a52ac7e39805419ad06d2485bcabe48b2073de798f35753f80c41a 242538 weboob_0.c-4.1_all.deb 8bc6a139a0dd249a957d5703615eddd8d07002cb3ff7c34b46ab3f6da7d229a5 123984 weboob-qt_0.c-4.1_all.deb Files: 4f1025639d9ea758e995c495ee79d555 1987 python optional weboob_0.c-4.1.dsc 89c53aee9cadd9925699b9aa4f81c3d1 18315 python optional weboob_0.c-4.1.debian.tar.gz 0bab74fa694db054a587e7a1dfd1cfd6 137550 python optional python-weboob-core_0.c-4.1_all.deb 01fd4ee1ff453fdbfe995183c8caa608 242538 python optional weboob_0.c-4.1_all.deb 26b5eab77eeaa0461300d847d3f6cb8f 123984 python optional weboob-qt_0.c-4.1_all.deb -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQIcBAEBCgAGBQJQgEyYAAoJEOryzVHFAGgZx4EP/Rsy32XQELLWiV9i99NmxDjt SmOV8QJZhYIqbSsNzO6LvwGRJGUjDmrwx3umXX9D/HEapMu789DDOYTr3ZuqBTlL P3paGc8nIrXPCTlrhCOEMZffWU2Wkn7FYJWz2RaqHoCFRrzD2krI2rccFzsJAgme HcVfba/hz3Y7UbLRm8tL+t3JiBCk6mvi7l1WAe0P+l1ejvns2pSoDPE+RDA86t1g XJwCmHEojqoED8A46hK8LOloI4c0prhdiDzRRkmh935m5vVksVoIiLyYICy9GU+Q BWwdu0IE84ecvSgF6CYnTjp2zDklmNxqyl23gn3WFXLVdtBE0Ah3pUAGP/HWxDLx 9sBcgIIf+4eIl4hvPPi7sRa/Hr8WecLSKEyOv3ateKcwF1+HAtjcpF+iOIu5/Prr 2z2z3hSFbwCvPM+keugFhep3daZXCK6/fju29+K7yVKWlLOuco5i/9JsSHsK3cXf lilCVhJE4WUiiEyfuzHyXhDwcHEq5bun7tI2P9/vcoa0xcC59j17xj3v/BjZbJEi rWUuErD+sAQH0AH+Qwoqr79swbT5k0NprGS/NZyRmd1IGgut1lvW0COoMJ/fpKBA U9EbDi7RUJZwwet6sa/yIXJaMTYKVuCxjy9NWpIWHna+wUE4lhyy4U/HdAoYx6t+ zYuJWnFtOnmH+EjM/ukX =gZii -----END PGP SIGNATURE-----
--- End Message ---

