[pkg-tasktools] Bug#830833: bugwarrior: IOError when starting bugwarrior-uda without a config file

Roland Hieber rohieb at rohieb.name
Tue Jul 12 02:01:10 UTC 2016


Package: bugwarrior
Version: 1.4.0+git2016070901-1
Severity: minor
Tags: newcomer

Dear Maintainer,

the documentation says:

> For using this data in reports, it is recommended that you add these UDA
> definitions to your ~/.taskrc file. You can generate your list of UDA
> definitions by running the following command:
> 
>     bugwarrior-uda

I was curious, so I ran `bugwarrior-uda`. But I did not create a config file
first, which seems to bother it:

	$ bugwarrior-uda
	Traceback (most recent call last):
		File "/usr/bin/bugwarrior-uda", line 9, in <module>
			load_entry_point('bugwarrior==1.4.0', 'console_scripts', 'bugwarrior-uda')()
		File "/usr/lib/python2.7/dist-packages/click/core.py", line 716, in __call__
			return self.main(*args, **kwargs)
		File "/usr/lib/python2.7/dist-packages/click/core.py", line 696, in main
			rv = self.invoke(ctx)
		File "/usr/lib/python2.7/dist-packages/click/core.py", line 889, in invoke
			return ctx.invoke(self.callback, **ctx.params)
		File "/usr/lib/python2.7/dist-packages/click/core.py", line 534, in invoke
			return callback(*args, **kwargs)
		File "/usr/lib/python2.7/dist-packages/bugwarrior/command.py", line 138, in uda
			conf = load_config(main_section)
		File "/usr/lib/python2.7/dist-packages/bugwarrior/config.py", line 169, in load_config
			"utf-8",
		File "/usr/lib/python2.7/codecs.py", line 896, in open
			file = __builtin__.open(filename, mode, buffering)
	IOError: [Errno 2] No such file or directory: '/home/rohieb/.config/bugwarrior/bugwarriorrc'

A clearer message about a missing config file would be more appropriate here.

This feature is probably suited to get familiar with the code base, which is the
reason why I tagged this bug report with "newcomer".

Cheers,

 - Roland

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

Kernel: Linux 4.5.0-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages bugwarrior depends on:
ii  libjs-sphinxdoc       1.4.4-3
ii  python-bugzilla       1.2.2-1
ii  python-click          6.6-1
ii  python-dateutil       2.4.2-1
ii  python-dogpile.cache  0.5.7-2
ii  python-jinja2         2.8-1
ii  python-keyring        9.1-1
ii  python-lockfile       1:0.12.2-1
ii  python-offtrac        0.1.0-1
ii  python-requests       2.10.0-2
ii  python-six            1.10.0-3
ii  python-taskw          1.1.0-2
ii  python-tz             2015.7+dfsg-0.1
ii  python-xdg            0.25-4
pn  python:any            <none>

bugwarrior recommends no packages.

bugwarrior suggests no packages.

-- no debconf information



More information about the pkg-tasktools-discuss mailing list