[Python-apps-team] Bug#941572: gitinspector: --format=html crashes

François Gannaz francois.gannaz at free.fr
Wed Oct 2 08:57:54 BST 2019


Package: gitinspector
Version: 0.4.4+dfsg-6
Severity: important

Dear Maintainer,

The command line option that outputs HTML instead of plain text
always leads to a crash. Here is the command and its output:

% gitinspector --since 2019-09-01 --format=html
Traceback (most recent call last):
  File "/usr/bin/gitinspector", line 11, in <module>
    load_entry_point('gitinspector==0.4.4', 'console_scripts', 'gitinspector')()
  File "/usr/lib/python3/dist-packages/gitinspector/gitinspector.py", line 184, in main
    __run__.output()
  File "/usr/lib/python3/dist-packages/gitinspector/gitinspector.py", line 74, in output
    format.output_header()
  File "/usr/lib/python3/dist-packages/gitinspector/format.py", line 70, in output_header
    tablesorter_js = js.read().decode("utf-8", "replace")
AttributeError: 'str' object has no attribute 'decode'

Removing the `.decode(...` after each `.read()` in this file fixes the
problem, but I am not experienced enough with Python3 to submit it as
a patch.

Thank you for maintaining this package.

-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (800, 'testing'), (600, 'stable'), (50, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.2.0-2-amd64 (SMP w/6 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN,
TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=fr_FR.utf8,
LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages gitinspector depends on:
ii  git                       1:2.23.0-1
ii  libjs-jquery              3.3.1~dfsg-3
ii  libjs-jquery-flot         0.8.3+dfsg-1
ii  libjs-jquery-tablesorter  1:2.31.1+dfsg1-1
ii  python3                   3.7.3-1
ii  python3-pkg-resources     41.2.0-1

gitinspector recommends no packages.

gitinspector suggests no packages.

-- no debconf information



More information about the Python-apps-team mailing list