hugday crashed with Please run 'hugday current --remember' or give a date in get_url()

Bug #329698 reported by ahfuji
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-qa-tools (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: ubuntu-qa-tools

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu jaunty (development branch)
Release: 9.04
Codename: jaunty

$ LANG=C apt-cache policy ubuntu-qa-tools
ubuntu-qa-tools:
  Installed: 0.1.1
  Candidate: 0.1.1
  Version table:
 *** 0.1.1 0
        500 http://archive.ubuntu.com jaunty/universe Packages
        100 /var/lib/dpkg/status

I ran aptitude to install ubuntu-qa-tools for using the command "hugday."
After installing it successfully, I run "hugday list" as shown in the following website.
https://wiki.ubuntu.com/UbuntuBugDay/Tools
But, it failed to get list of all task for current hugday and the next error was displayed instead.

---
$ hugday list
Traceback (most recent call last):
  File "/usr/bin/hugday", line 409, in <module>
    sys.exit(main())
  File "/usr/bin/hugday", line 391, in main
    url = get_url(options.day, options.kde)
  File "/usr/bin/hugday", line 371, in get_url
    "give a date" %CONFIGFILE))
RuntimeError: No value for 'current' found in '/home/ahf/.hugday_config'
Please run 'hugday current --remember' or give a date
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/apport_python_hook.py", line 85, in apport_excepthook
    os.O_WRONLY|os.O_CREAT|os.O_EXCL), 'w')
OSError: [Errno 17] File exists: '/var/crash/_usr_bin_hugday.1000.crash'

Original exception was:
Traceback (most recent call last):
  File "/usr/bin/hugday", line 409, in <module>
    sys.exit(main())
  File "/usr/bin/hugday", line 391, in main
    url = get_url(options.day, options.kde)
  File "/usr/bin/hugday", line 371, in get_url
    "give a date" %CONFIGFILE))
RuntimeError: No value for 'current' found in '/home/ahf/.hugday_config'
Please run 'hugday current --remember' or give a date
---

P.S. After running 'hugday current --remember', as shown in the error message,
the result of 'hugday list' worked successfully.
Maybe, it needs error processing to avoid displaying the above error message...

ProblemType: Crash
Architecture: i386
DistroRelease: Ubuntu 9.04
ExecutablePath: /usr/bin/hugday
InterpreterPath: /usr/bin/python2.5
Package: ubuntu-qa-tools 0.1.1
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/hugday list
ProcEnviron:
 SHELL=/bin/bash
 LANG=ja_JP.UTF-8
PythonArgs: ['/usr/bin/hugday', 'list']
SourcePackage: ubuntu-qa-tools
Title: hugday crashed with Please run 'hugday current --remember' or give a date in get_url()
Uname: Linux 2.6.28-7-generic i686
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Revision history for this message
ahfuji (ahfuji) wrote :
Revision history for this message
Markus Korn (thekorn) wrote :

Hi afujihara,
thanks for this bugreport, unfortunately I was not subscribed to this bugreport so I did not notice your issue.

For me this is a documentation issue, this
   hugday current --remember
is essential if you would like to run `hugday list` or `hugday close`without the `--day` option

So it is either
   hugday current --remember
   hugday list
   hugday close 123456
   hugday close 2345 3456
   [....]
or
   hugday list --day 20080101
   hugday close 123456 --day 20080101
   hugday close 2345 3456 --day 20080101
   [....]

I personally do not like the idea of a fallback which is automatically running `hugday current` if the hugday tools does not know about a date because this operation is expensive and might slow things down.

Does this make sense?
Markus

Revision history for this message
Markus Korn (thekorn) wrote :

Marked as won't fix, feel free to reopen if this still needs to be discussed

Changed in ubuntu-qa-tools (Ubuntu):
status: New → Won't Fix
Revision history for this message
Paul Dufresne (paulduf) wrote :

I speak for myself, but my problem with it is just that I do not expect the program to crash.
I just expect the error to print in the console and the program to return with an exit code.

Revision history for this message
ahfuji (ahfuji) wrote :

Paul says all what I want to say.
Can you fix it to avoid error messages, Markus?

Revision history for this message
Markus Korn (thekorn) wrote :
Revision history for this message
ahfuji (ahfuji) wrote :

Thank you, Markus!

Iulian Udrea (iulian)
Changed in ubuntu-qa-tools (Ubuntu):
status: Won't Fix → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.