[pkg-tasktools] Bug#918119: bugwarrior: Python 3.7: configparser: TypeError: option values must be strings

Marco Solieri ms at xt3.it
Thu Jan 3 14:41:56 GMT 2019


Package: bugwarrior
Version: 1.5.1-2
Severity: grave
Tags: upstream patch
Justification: renders package unusable

As reported [1] upstream, the bug makes bugwarrior crash at the very beginning
with an error in 'configparser' used to parse the application configuration
file because of empty values. See also trace below.

A patch is already available [2] and included in version 1.6.0 released last
August.

~~

1. https://github.com/ralphbean/bugwarrior/issues/597
2. https://github.com/ralphbean/bugwarrior/pull/600/commits/da9221ea673b32fe3f9732b13c818604cf657230

-- Trace:
Traceback (most recent call last):
  File "/usr/bin/bugwarrior-pull", line 11, in <module>
    load_entry_point('bugwarrior==1.5.1', 'console_scripts', 'bugwarrior-pull')()
  File "/usr/lib/python3/dist-packages/click/core.py", line 759, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/click/core.py", line 714, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python3/dist-packages/click/core.py", line 951, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python3/dist-packages/click/core.py", line 552, in invoke
    return callback(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/bugwarrior/command.py", line 62, in pull
    config = _try_load_config(main_section, interactive)
  File "/usr/lib/python3/dist-packages/bugwarrior/command.py", line 35, in _try_load_config
    return load_config(main_section, interactive)
  File "/usr/lib/python3/dist-packages/bugwarrior/config.py", line 207, in load_config
    config = BugwarriorConfigParser({'log.level': "INFO", 'log.file': None})
  File "/usr/lib/python3.7/configparser.py", line 638, in __init__
    self._read_defaults(defaults)
  File "/usr/lib/python3.7/configparser.py", line 1216, in _read_defaults
    self.read_dict({self.default_section: defaults})
  File "/usr/lib/python3.7/configparser.py", line 753, in read_dict
    self.set(section, key, value)
  File "/usr/lib/python3.7/configparser.py", line 1197, in set
    self._validate_value_types(option=option, value=value)
  File "/usr/lib/python3.7/configparser.py", line 1182, in _validate_value_types
    raise TypeError("option values must be strings")
TypeError: option values must be string

-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.19.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages bugwarrior depends on:
ii  libjs-sphinxdoc        1.7.9-1
ii  python3                3.7.1-3
ii  python3-click          6.7+git20180829-1
ii  python3-dateutil       2.7.3-1
ii  python3-dogpile.cache  0.6.2-6
ii  python3-future         0.15.2-5
ii  python3-jinja2         2.10-1
ii  python3-lockfile       1:0.12.2-2
ii  python3-requests       2.20.0-2
ii  python3-six            1.12.0-1
ii  python3-taskw          1.2.0-2
ii  python3-tz             2018.7-1

Versions of packages bugwarrior recommends:
ii  python3-keyring      17.1.1-1
ii  python3-phabricator  0.7.0-1

bugwarrior suggests no packages.

-- debconf-show failed



More information about the pkg-tasktools-discuss mailing list