After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 622003 - Hamster tries to use a folder as the HTML report template
Hamster tries to use a folder as the HTML report template
Status: RESOLVED FIXED
Product: hamster-applet
Classification: Deprecated
Component: general
2.31.x
Other Linux
: Normal normal
: ---
Assigned To: hamster-applet-maint
hamster-applet-maint
Depends on:
Blocks:
 
 
Reported: 2010-06-18 14:06 UTC by Jean-Philippe Fleury
Modified: 2010-06-22 10:42 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jean-Philippe Fleury 2010-06-18 14:06:38 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):
  • File "/usr/lib/python2.6/dist-packages/hamster/overview.py", line 189 in on_report_chosen
    reports.simple(self.facts, self.start_date, self.end_date, format, path)
  • File "/usr/lib/python2.6/dist-packages/hamster/reports.py", line 45 in simple
    writer = HTMLWriter(report_path, start_date, end_date)
  • File "/usr/lib/python2.6/dist-packages/hamster/reports.py", line 190 in __init__
    with open(template, 'r') as f:
IOError: [Errno 21] est un dossier: '/usr/share/hamster-applet/report_template.html'
$



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
Comment 1 Toms Bauģis 2010-06-22 10:41:15 UTC
thank you for the report, fixed build script to place template directly in hamster-applet/

fix pushed to git master.
Comment 2 Toms Bauģis 2010-06-22 10:42:28 UTC
oh, before you update, please run 
sudo ./waf uninstall

to uninstall currently incorrectly placed files (won't affect data)