GNOME Bugzilla – Bug 622003
Hamster tries to use a folder as the HTML report template
Last modified: 2010-06-22 10:42:28 UTC
I installed Hamster from source (2.34.1) in Ubuntu 10.04. In Overview, when I export data for a month (there are a lot of activities saved for this month), the HTML report is empty (0 octets). If I launch Hamster in a console, I have the following output: $ /usr/lib/hamster-applet/hamster-applet -w ** (hamster-applet:3046): WARNING **: Trying to register gtype 'WnckWindowState' as enum when in fact it is of type 'GFlags' ** (hamster-applet:3046): WARNING **: Trying to register gtype 'WnckWindowActions' as enum when in fact it is of type 'GFlags' ** (hamster-applet:3046): WARNING **: Trying to register gtype 'WnckWindowMoveResizeMask' as enum when in fact it is of type 'GFlags' /usr/lib/python2.6/dist-packages/hamster/stuff.py:156: GtkWarning: gtk_accel_label_set_accel_closure: assertion `gtk_accel_group_from_accel_closure (accel_closure) != NULL' failed ui.add_from_file(os.path.join(runtime.data_dir, name)) Traceback (most recent call last):
+ Trace 222477
reports.simple(self.facts, self.start_date, self.end_date, format, path)
writer = HTMLWriter(report_path, start_date, end_date)
with open(template, 'r') as f:
$ See this error: "IOError: [Errno 21] est un dossier: '/usr/share/hamster-applet/report_template.html'". Actually, the full path of the report template is: /usr/share/hamster-applet/report_template.html/report_template.html
thank you for the report, fixed build script to place template directly in hamster-applet/ fix pushed to git master.
oh, before you update, please run sudo ./waf uninstall to uninstall currently incorrectly placed files (won't affect data)