projecthamster / hamster

GNOME time tracker
http://projecthamster.org
GNU General Public License v3.0
1.08k stars 249 forks source link

ImportError: cannot import name 'hamsterday_end' #503

Closed mbnoimi closed 4 years ago

mbnoimi commented 4 years ago

Hi,

After upgrading my Linux Mint to the recent version (19.3) I no longer able to run hamster (it was working fine) so I tried to rebuild it once again but I got the following error whenever I try to launch it.

mbnoimi@tracker ~/.hamster $ /usr/bin/hamster
Traceback (most recent call last):
  File "/usr/bin/hamster", line 366, in <module>
    getattr(hamster_client, command)(*args.action_args)
  File "/usr/bin/hamster", line 111, in overview
    self._launch_window("overview")
  File "/usr/bin/hamster", line 102, in _launch_window
    getattr(server, window_name)()
  File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 70, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 145, in __call__
    **keywords)
  File "/usr/lib/python3/dist-packages/dbus/connection.py", line 651, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Python.ImportError: Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/dbus/service.py", line 707, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/usr/lib/hamster-time-tracker/hamster-windows-service", line 39, in overview
    dialogs.overview.show(self.app)
  File "/usr/lib/python3/dist-packages/hamster/lib/configuration.py", line 150, in show
    dialog.window.set_transient_for(parent.get_toplevel())
  File "/usr/lib/python3/dist-packages/hamster/lib/configuration.py", line 177, in get_overview_class
  File "/usr/lib/python3/dist-packages/hamster/overview.py", line 44, in <module>
    from hamster import widgets
  File "/usr/lib/python3/dist-packages/hamster/widgets/__init__.py", line 26, in <module>
    from hamster.widgets.activityentry import (
  File "/usr/lib/python3/dist-packages/hamster/widgets/activityentry.py", line 42, in <module>
    from hamster.lib.fact import Fact
  File "/usr/lib/python3/dist-packages/hamster/lib/fact.py", line 10, in <module>
    from hamster.lib.parsing import TIME_FMT, DATETIME_FMT, parse_fact
  File "/usr/lib/python3/dist-packages/hamster/lib/parsing.py", line 8, in <module>
    from hamster.lib.stuff import (
ImportError: cannot import name 'hamsterday_end'

mbnoimi@tracker ~/.hamster $ 

How can I fix this issue?

The full log of rebuilding process is here below

mbnoimi@tracker ~/.hamster $ git log -1
commit 199aee94c8161a597d9ce8e02e2d1b488260a9dd (HEAD -> master, origin/master, origin/HEAD)
Merge: 9565e5a8 f3459d8e
Author: ederag <edera@gmx.fr>
Date:   Thu Jan 2 22:03:18 2020 +0100

    Merge pull request #502 from ederag/fix-category-changes

    Fix category changes
mbnoimi@tracker ~/.hamster $ ./waf configure && ./waf clean && ./waf distclean
Setting top to                           : /home/mbnoimi/.hamster 
Setting out to                           : /home/mbnoimi/.hamster/build 
Checking for program 'glib-genmarshal'   : /usr/bin/glib-genmarshal 
Checking for program 'perl'              : /usr/bin/perl 
Checking for program 'glib-mkenums'      : /usr/bin/glib-mkenums 
Checking for program 'glib-compile-schemas' : /usr/bin/glib-compile-schemas 
Checking for program 'glib-compile-resources' : /usr/bin/glib-compile-resources 
Checking for program 'python'                 : /usr/bin/python3 
Checking for python version >= 3.4.0          : 3.6.9 
Checking for program 'msgfmt'                 : /usr/bin/msgfmt 
Checking for program 'intltool-merge'         : /usr/bin/intltool-merge 
Checking for program 'xml2po'                 : not found 
'xml2po' not found; documentation build disabled
'configure' finished successfully (0.202s)
'clean' finished successfully (0.083s)
Could not remove '/home/mbnoimi/.hamster/build'
'distclean' finished successfully (0.004s)
mbnoimi@tracker ~/.hamster $ ./waf configure build --prefix=/usr && sudo ./waf install
Setting top to                           : /home/mbnoimi/.hamster 
Setting out to                           : /home/mbnoimi/.hamster/build 
Checking for program 'glib-genmarshal'   : /usr/bin/glib-genmarshal 
Checking for program 'perl'              : /usr/bin/perl 
Checking for program 'glib-mkenums'      : /usr/bin/glib-mkenums 
Checking for program 'glib-compile-schemas' : /usr/bin/glib-compile-schemas 
Checking for program 'glib-compile-resources' : /usr/bin/glib-compile-resources 
Checking for program 'python'                 : /usr/bin/python3 
Checking for python version >= 3.4.0          : 3.6.9 
Checking for program 'msgfmt'                 : /usr/bin/msgfmt 
Checking for program 'intltool-merge'         : /usr/bin/intltool-merge 
Checking for program 'xml2po'                 : not found 
'xml2po' not found; documentation build disabled
'configure' finished successfully (0.226s)
Waf: Entering directory `/home/mbnoimi/.hamster/build'
[  1/127] Compiling build/src/hamster/__pycache__/overview.cpython-36.pyc
[  2/127] Compiling build/src/hamster/lib/__pycache__/dbus.cpython-36.pyc
[  3/127] Compiling build/src/hamster/__pycache__/edit_activity.cpython-36.pyc
[  4/127] Compiling build/src/hamster/__pycache__/__init__.cpython-36.pyc
[  5/127] Compiling build/src/hamster/lib/__pycache__/stuff.cpython-36.pyc
[  6/127] Compiling build/src/hamster/widgets/__pycache__/timeinput.cpython-36.pyc
[  7/127] Compiling build/src/hamster/widgets/__pycache__/reportchooserdialog.cpython-36.pyc
[  8/127] Compiling build/src/hamster/widgets/__pycache__/facttree.cpython-36.pyc
[  9/127] Compiling build/src/hamster/widgets/__pycache__/facttree.cpython-36.pyo
[ 10/127] Compiling build/src/hamster/lib/__pycache__/parsing.cpython-36.pyc
[ 11/127] Compiling build/src/hamster/lib/__pycache__/parsing.cpython-36.pyo
[ 12/127] Compiling build/src/hamster/widgets/__pycache__/dayline.cpython-36.pyo
[ 13/127] Compiling build/src/hamster/widgets/__pycache__/dayline.cpython-36.pyc
[ 14/127] Compiling build/src/hamster/lib/__pycache__/layout.cpython-36.pyo
[ 15/127] Compiling build/src/hamster/widgets/__pycache__/dates.cpython-36.pyc
[ 16/127] Compiling build/src/hamster/widgets/__pycache__/dates.cpython-36.pyo
[ 17/127] Compiling build/src/hamster/lib/__pycache__/layout.cpython-36.pyc
[ 18/127] Compiling build/src/hamster/lib/__pycache__/charting.cpython-36.pyc
[ 19/127] Compiling build/src/hamster/__pycache__/client.cpython-36.pyc
[ 20/127] Compiling build/src/hamster/__pycache__/__init__.cpython-36.pyo
[ 21/127] Compiling build/src/hamster/widgets/__pycache__/activityentry.cpython-36.pyo
[ 22/127] Compiling build/src/hamster/widgets/__pycache__/activityentry.cpython-36.pyc
[ 23/127] Compiling build/src/hamster/lib/__pycache__/i18n.cpython-36.pyo
[ 24/127] Compiling build/src/hamster/widgets/__pycache__/__init__.cpython-36.pyo
[ 25/127] Compiling build/src/hamster/widgets/__pycache__/__init__.cpython-36.pyc
[ 26/127] Compiling build/src/hamster/lib/__pycache__/i18n.cpython-36.pyc
[ 27/127] Compiling build/src/hamster/lib/__pycache__/__init__.cpython-36.pyo
[ 28/127] Compiling build/src/hamster/storage/__pycache__/storage.cpython-36.pyo
[ 29/127] Compiling build/src/hamster/storage/__pycache__/storage.cpython-36.pyc
[ 30/127] Compiling build/src/hamster/lib/__pycache__/graphics.cpython-36.pyo
[ 31/127] Compiling build/src/hamster/storage/__pycache__/db.cpython-36.pyo
[ 32/127] Compiling build/src/hamster/lib/__pycache__/graphics.cpython-36.pyc
[ 33/127] Compiling build/src/hamster/storage/__pycache__/db.cpython-36.pyc
[ 34/127] Compiling build/src/hamster/lib/__pycache__/__init__.cpython-36.pyc
[ 35/127] Compiling build/src/hamster/__pycache__/about.cpython-36.pyo
[ 36/127] Compiling build/src/hamster/storage/__pycache__/__init__.cpython-36.pyo
[ 37/127] Compiling build/src/hamster/storage/__pycache__/__init__.cpython-36.pyc
[ 38/127] Compiling build/src/hamster/lib/__pycache__/fact.cpython-36.pyo
[ 39/127] Compiling build/src/hamster/__pycache__/reports.cpython-36.pyo
[ 40/127] Compiling build/src/hamster/lib/__pycache__/fact.cpython-36.pyc
[ 41/127] Compiling build/src/hamster/__pycache__/reports.cpython-36.pyc
[ 42/127] Compiling build/src/hamster/__pycache__/edit_activity.cpython-36.pyo
[ 43/127] Compiling build/src/hamster/__pycache__/preferences.cpython-36.pyo
[ 44/127] Compiling build/src/hamster/__pycache__/preferences.cpython-36.pyc
[ 45/127] Compiling build/src/hamster/lib/__pycache__/dbus.cpython-36.pyo
[ 46/127] Compiling build/src/hamster/__pycache__/overview.cpython-36.pyo
[ 47/127] Compiling build/src/hamster/widgets/__pycache__/reportchooserdialog.cpython-36.pyo
[ 48/127] Compiling build/src/hamster/lib/__pycache__/configuration.cpython-36.pyo
[ 49/127] Compiling build/src/hamster/__pycache__/client.cpython-36.pyo
[ 50/127] Compiling build/src/hamster/lib/__pycache__/charting.cpython-36.pyo
[ 51/127] Compiling build/src/hamster/lib/__pycache__/configuration.cpython-36.pyc
[ 52/127] Compiling build/src/hamster/__pycache__/about.cpython-36.pyc
[ 53/127] Compiling build/src/hamster/widgets/__pycache__/timeinput.cpython-36.pyo
[ 54/127] Compiling build/src/hamster/lib/__pycache__/pytweener.cpython-36.pyc
[ 55/127] Compiling build/src/hamster/widgets/__pycache__/tags.cpython-36.pyc
[ 56/127] Compiling build/src/hamster/lib/__pycache__/stuff.cpython-36.pyo
[ 57/127] Compiling build/src/hamster/widgets/__pycache__/tags.cpython-36.pyo
[ 58/127] Compiling build/src/hamster/lib/__pycache__/pytweener.cpython-36.pyo
[ 59/127] Compiling src/hamster/defs.py.in
[ 60/127] Compiling org.gnome.hamster.service.in
[ 61/127] Compiling org.gnome.hamster.Windows.service.in
[ 62/127] Compiling po/af.po
[ 63/127] Compiling po/te.po
[ 64/127] Compiling po/vi.po
[ 65/127] Compiling po/sr.po
[ 66/127] Compiling po/pa.po
[ 67/127] Compiling po/ru.po
[ 68/127] Compiling po/sr@latin.po
[ 69/127] Compiling po/pl.po
[ 70/127] Compiling po/ro.po
[ 71/127] Compiling po/nb.po
[ 72/127] Compiling po/sq.po
[ 73/127] Compiling po/mai.po
[ 74/127] Compiling po/zh_CN.po
[ 75/127] Compiling po/mk.po
[ 76/127] Compiling po/kn.po
[ 77/127] Compiling po/id.po
[ 78/127] Compiling po/gu.po
[ 79/127] Compiling po/lv.po
[ 80/127] Compiling po/eu.po
[ 81/127] Compiling po/da.po
[ 82/127] Compiling po/en@shaw.po
[ 83/127] Compiling po/pt.po
[ 84/127] Compiling po/de.po
[ 85/127] Compiling po/fi.po
[ 86/127] Compiling po/en_GB.po
[ 87/127] Compiling po/ca.po
[ 88/127] Compiling po/be.po
[ 89/127] Compiling po/tr.po
[ 90/127] Compiling po/th.po
[ 91/127] Compiling po/sv.po
[ 92/127] Compiling po/si.po
[ 93/127] Compiling po/pt_BR.po
[ 94/127] Compiling po/ml.po
[ 95/127] Compiling po/ug.po
[ 96/127] Compiling po/ko.po
[ 97/127] Compiling po/ja.po
[ 98/127] Compiling po/bn_IN.po
[ 99/127] Compiling po/he.po
[100/127] Compiling po/gl.po
[101/127] Compiling po/en_CA.po
[102/127] Compiling po/sl.po
[103/127] Compiling po/bn.po
[104/127] Compiling po/et.po
[105/127] Compiling po/or.po
[106/127] Compiling po/ku.po
[107/127] Compiling po/hi.po
[108/127] Compiling po/hu.po
[109/127] Compiling po/zh_HK.po
[110/127] Compiling po/fr.po
[111/127] Compiling po/ta.po
[112/127] Compiling po/lt.po
[113/127] Compiling po/es.po
[114/127] Compiling po/cs.po
[115/127] Compiling po/mr.po
[116/127] Compiling po/zh_TW.po
[117/127] Compiling po/eo.po
[118/127] Compiling po/ca@valencia.po
[119/127] Compiling po/nl.po
[120/127] Compiling po/bg.po
[121/127] Compiling po/uk.po
[122/127] Compiling po/ar.po
[123/127] Compiling po/el.po
[124/127] Compiling po/it.po
[125/127] Compiling po/as.po
[126/127] Compiling data/hamster.desktop.in
[127/127] Compiling data/org.gnome.hamster.gschema.xml
Waf: Leaving directory `/home/mbnoimi/.hamster/build'
'build' finished successfully (3.498s)
[sudo] password for mbnoimi:             
Waf: Entering directory `/home/mbnoimi/.hamster/build'
- install /usr/lib/hamster/hamster-service (from src/hamster-service.py)
- install /usr/lib/hamster/hamster-windows-service (from src/hamster-windows-service.py)
- install /usr/bin/hamster (from src/hamster-cli.py)
- install /usr/share/bash-completion/completion/hamster.bash (from src/hamster.bash)
- install /usr/lib/python3/dist-packages/hamster/storage/db.py (from src/hamster/storage/db.py)
+ install /usr/lib/python3/dist-packages/hamster/__pycache__/edit_activity.cpython-36.pyc (from build/src/hamster/__pycache__/edit_activity.cpython-36.pyc)
+ install /usr/lib/python3/dist-packages/hamster/lib/__pycache__/stuff.cpython-36.pyo (from build/src/hamster/lib/__pycache__/stuff.cpython-36.pyo)
+ install /usr/lib/python3/dist-packages/hamster/storage/__pycache__/__init__.cpython-36.pyc (from build/src/hamster/storage/__pycache__/__init__.cpython-36.pyc)
+ install /usr/lib/python3/dist-packages/hamster/lib/__pycache__/fact.cpython-36.pyo (from build/src/hamster/lib/__pycache__/fact.cpython-36.pyo)
+ install /usr/lib/python3/dist-packages/hamster/storage/__pycache__/db.cpython-36.pyc (from build/src/hamster/storage/__pycache__/db.cpython-36.pyc)
- install /usr/lib/python3/dist-packages/hamster/storage/__init__.py (from src/hamster/storage/__init__.py)
- install /usr/lib/python3/dist-packages/hamster/edit_activity.py (from src/hamster/edit_activity.py)
+ install /usr/lib/python3/dist-packages/hamster/__pycache__/__init__.cpython-36.pyo (from build/src/hamster/__pycache__/__init__.cpython-36.pyo)
- install /usr/lib/python3/dist-packages/hamster/reports.py (from src/hamster/reports.py)
- install /usr/lib/python3/dist-packages/hamster/lib/fact.py (from src/hamster/lib/fact.py)
+ install /usr/lib/python3/dist-packages/hamster/__pycache__/reports.cpython-36.pyo (from build/src/hamster/__pycache__/reports.cpython-36.pyo)
+ install /usr/lib/python3/dist-packages/hamster/lib/__pycache__/dbus.cpython-36.pyc (from build/src/hamster/lib/__pycache__/dbus.cpython-36.pyc)
+ install /usr/lib/python3/dist-packages/hamster/storage/__pycache__/__init__.cpython-36.pyo (from build/src/hamster/storage/__pycache__/__init__.cpython-36.pyo)
+ install /usr/lib/python3/dist-packages/hamster/lib/__pycache__/dbus.cpython-36.pyo (from build/src/hamster/lib/__pycache__/dbus.cpython-36.pyo)
+ install /usr/lib/python3/dist-packages/hamster/__pycache__/reports.cpython-36.pyc (from build/src/hamster/__pycache__/reports.cpython-36.pyc)
- install /usr/lib/python3/dist-packages/hamster/lib/dbus.py (from src/hamster/lib/dbus.py)
+ install /usr/lib/python3/dist-packages/hamster/__pycache__/client.cpython-36.pyo (from build/src/hamster/__pycache__/client.cpython-36.pyo)
+ install /usr/lib/python3/dist-packages/hamster/__pycache__/preferences.cpython-36.pyo (from build/src/hamster/__pycache__/preferences.cpython-36.pyo)
+ install /usr/lib/python3/dist-packages/hamster/__pycache__/__init__.cpython-36.pyc (from build/src/hamster/__pycache__/__init__.cpython-36.pyc)
+ install /usr/lib/python3/dist-packages/hamster/__pycache__/preferences.cpython-36.pyc (from build/src/hamster/__pycache__/preferences.cpython-36.pyc)
+ install /usr/lib/python3/dist-packages/hamster/__pycache__/overview.cpython-36.pyc (from build/src/hamster/__pycache__/overview.cpython-36.pyc)
- install /usr/lib/python3/dist-packages/hamster/overview.py (from src/hamster/overview.py)
+ install /usr/lib/python3/dist-packages/hamster/__pycache__/overview.cpython-36.pyo (from build/src/hamster/__pycache__/overview.cpython-36.pyo)
- install /usr/lib/python3/dist-packages/hamster/lib/configuration.py (from src/hamster/lib/configuration.py)
- install /usr/lib/python3/dist-packages/hamster/widgets/timeinput.py (from src/hamster/widgets/timeinput.py)
+ install /usr/lib/python3/dist-packages/hamster/lib/__pycache__/configuration.cpython-36.pyc (from build/src/hamster/lib/__pycache__/configuration.cpython-36.pyc)
+ install /usr/lib/python3/dist-packages/hamster/storage/__pycache__/db.cpython-36.pyo (from build/src/hamster/storage/__pycache__/db.cpython-36.pyo)
+ install /usr/lib/python3/dist-packages/hamster/lib/__pycache__/pytweener.cpython-36.pyo (from build/src/hamster/lib/__pycache__/pytweener.cpython-36.pyo)
+ install /usr/lib/python3/dist-packages/hamster/lib/__pycache__/parsing.cpython-36.pyc (from build/src/hamster/lib/__pycache__/parsing.cpython-36.pyc)
- install /usr/lib/python3/dist-packages/hamster/__init__.py (from src/hamster/__init__.py)
- install /usr/lib/python3/dist-packages/hamster/widgets/tags.py (from src/hamster/widgets/tags.py)
+ install /usr/lib/python3/dist-packages/hamster/lib/__pycache__/parsing.cpython-36.pyo (from build/src/hamster/lib/__pycache__/parsing.cpython-36.pyo)
+ install /usr/lib/python3/dist-packages/hamster/lib/__pycache__/charting.cpython-36.pyo (from build/src/hamster/lib/__pycache__/charting.cpython-36.pyo)
+ install /usr/lib/python3/dist-packages/hamster/lib/__pycache__/pytweener.cpython-36.pyc (from build/src/hamster/lib/__pycache__/pytweener.cpython-36.pyc)
- install /usr/lib/python3/dist-packages/hamster/lib/pytweener.py (from src/hamster/lib/pytweener.py)
+ install /usr/lib/python3/dist-packages/hamster/lib/__pycache__/stuff.cpython-36.pyc (from build/src/hamster/lib/__pycache__/stuff.cpython-36.pyc)
+ install /usr/lib/python3/dist-packages/hamster/storage/__pycache__/storage.cpython-36.pyo (from build/src/hamster/storage/__pycache__/storage.cpython-36.pyo)
+ install /usr/lib/python3/dist-packages/hamster/widgets/__pycache__/timeinput.cpython-36.pyc (from build/src/hamster/widgets/__pycache__/timeinput.cpython-36.pyc)
+ install /usr/lib/python3/dist-packages/hamster/widgets/__pycache__/tags.cpython-36.pyo (from build/src/hamster/widgets/__pycache__/tags.cpython-36.pyo)
- install /usr/lib/python3/dist-packages/hamster/lib/charting.py (from src/hamster/lib/charting.py)
- install /usr/lib/python3/dist-packages/hamster/lib/parsing.py (from src/hamster/lib/parsing.py)
- install /usr/lib/python3/dist-packages/hamster/widgets/reportchooserdialog.py (from src/hamster/widgets/reportchooserdialog.py)
+ install /usr/lib/python3/dist-packages/hamster/widgets/__pycache__/reportchooserdialog.cpython-36.pyo (from build/src/hamster/widgets/__pycache__/reportchooserdialog.cpython-36.pyo)
+ install /usr/lib/python3/dist-packages/hamster/lib/__pycache__/charting.cpython-36.pyc (from build/src/hamster/lib/__pycache__/charting.cpython-36.pyc)
- install /usr/lib/python3/dist-packages/hamster/widgets/facttree.py (from src/hamster/widgets/facttree.py)
+ install /usr/lib/python3/dist-packages/hamster/widgets/__pycache__/tags.cpython-36.pyc (from build/src/hamster/widgets/__pycache__/tags.cpython-36.pyc)
+ install /usr/lib/python3/dist-packages/hamster/__pycache__/about.cpython-36.pyo (from build/src/hamster/__pycache__/about.cpython-36.pyo)
+ install /usr/lib/python3/dist-packages/hamster/widgets/__pycache__/timeinput.cpython-36.pyo (from build/src/hamster/widgets/__pycache__/timeinput.cpython-36.pyo)
+ install /usr/lib/python3/dist-packages/hamster/widgets/__pycache__/facttree.cpython-36.pyc (from build/src/hamster/widgets/__pycache__/facttree.cpython-36.pyc)
- install /usr/lib/python3/dist-packages/hamster/client.py (from src/hamster/client.py)
+ install /usr/lib/python3/dist-packages/hamster/lib/__pycache__/graphics.cpython-36.pyc (from build/src/hamster/lib/__pycache__/graphics.cpython-36.pyc)
+ install /usr/lib/python3/dist-packages/hamster/widgets/__pycache__/facttree.cpython-36.pyo (from build/src/hamster/widgets/__pycache__/facttree.cpython-36.pyo)
+ install /usr/lib/python3/dist-packages/hamster/lib/__pycache__/i18n.cpython-36.pyo (from build/src/hamster/lib/__pycache__/i18n.cpython-36.pyo)
- install /usr/lib/python3/dist-packages/hamster/widgets/dayline.py (from src/hamster/widgets/dayline.py)
+ install /usr/lib/python3/dist-packages/hamster/widgets/__pycache__/dayline.cpython-36.pyo (from build/src/hamster/widgets/__pycache__/dayline.cpython-36.pyo)
- install /usr/lib/python3/dist-packages/hamster/lib/layout.py (from src/hamster/lib/layout.py)
+ install /usr/lib/python3/dist-packages/hamster/lib/__pycache__/layout.cpython-36.pyo (from build/src/hamster/lib/__pycache__/layout.cpython-36.pyo)
+ install /usr/lib/python3/dist-packages/hamster/lib/__pycache__/__init__.cpython-36.pyo (from build/src/hamster/lib/__pycache__/__init__.cpython-36.pyo)
- install /usr/lib/python3/dist-packages/hamster/widgets/dates.py (from src/hamster/widgets/dates.py)
+ install /usr/lib/python3/dist-packages/hamster/widgets/__pycache__/dates.cpython-36.pyo (from build/src/hamster/widgets/__pycache__/dates.cpython-36.pyo)
- install /usr/lib/python3/dist-packages/hamster/widgets/activityentry.py (from src/hamster/widgets/activityentry.py)
+ install /usr/lib/python3/dist-packages/hamster/widgets/__pycache__/dayline.cpython-36.pyc (from build/src/hamster/widgets/__pycache__/dayline.cpython-36.pyc)
- install /usr/lib/python3/dist-packages/hamster/lib/__init__.py (from src/hamster/lib/__init__.py)
- install /usr/lib/python3/dist-packages/hamster/lib/i18n.py (from src/hamster/lib/i18n.py)
- install /usr/lib/python3/dist-packages/hamster/about.py (from src/hamster/about.py)
+ install /usr/lib/python3/dist-packages/hamster/lib/__pycache__/graphics.cpython-36.pyo (from build/src/hamster/lib/__pycache__/graphics.cpython-36.pyo)
+ install /usr/lib/python3/dist-packages/hamster/lib/__pycache__/i18n.cpython-36.pyc (from build/src/hamster/lib/__pycache__/i18n.cpython-36.pyc)
- install /usr/lib/python3/dist-packages/hamster/widgets/__init__.py (from src/hamster/widgets/__init__.py)
+ install /usr/lib/python3/dist-packages/hamster/lib/__pycache__/__init__.cpython-36.pyc (from build/src/hamster/lib/__pycache__/__init__.cpython-36.pyc)
+ install /usr/lib/python3/dist-packages/hamster/widgets/__pycache__/activityentry.cpython-36.pyo (from build/src/hamster/widgets/__pycache__/activityentry.cpython-36.pyo)
+ install /usr/lib/python3/dist-packages/hamster/__pycache__/about.cpython-36.pyc (from build/src/hamster/__pycache__/about.cpython-36.pyc)
+ install /usr/lib/python3/dist-packages/hamster/widgets/__pycache__/activityentry.cpython-36.pyc (from build/src/hamster/widgets/__pycache__/activityentry.cpython-36.pyc)
- install /usr/lib/python3/dist-packages/hamster/storage/storage.py (from src/hamster/storage/storage.py)
- install /usr/lib/python3/dist-packages/hamster/lib/graphics.py (from src/hamster/lib/graphics.py)
+ install /usr/lib/python3/dist-packages/hamster/widgets/__pycache__/__init__.cpython-36.pyc (from build/src/hamster/widgets/__pycache__/__init__.cpython-36.pyc)
+ install /usr/lib/python3/dist-packages/hamster/widgets/__pycache__/__init__.cpython-36.pyo (from build/src/hamster/widgets/__pycache__/__init__.cpython-36.pyo)
+ install /usr/lib/python3/dist-packages/hamster/lib/__pycache__/configuration.cpython-36.pyo (from build/src/hamster/lib/__pycache__/configuration.cpython-36.pyo)
+ install /usr/lib/python3/dist-packages/hamster/widgets/__pycache__/dates.cpython-36.pyc (from build/src/hamster/widgets/__pycache__/dates.cpython-36.pyc)
+ install /usr/lib/python3/dist-packages/hamster/lib/__pycache__/layout.cpython-36.pyc (from build/src/hamster/lib/__pycache__/layout.cpython-36.pyc)
+ install /usr/lib/python3/dist-packages/hamster/lib/__pycache__/fact.cpython-36.pyc (from build/src/hamster/lib/__pycache__/fact.cpython-36.pyc)
- install /usr/lib/python3/dist-packages/hamster/preferences.py (from src/hamster/preferences.py)
- install /usr/lib/python3/dist-packages/hamster/lib/stuff.py (from src/hamster/lib/stuff.py)
+ install /usr/lib/python3/dist-packages/hamster/storage/__pycache__/storage.cpython-36.pyc (from build/src/hamster/storage/__pycache__/storage.cpython-36.pyc)
+ install /usr/lib/python3/dist-packages/hamster/__pycache__/client.cpython-36.pyc (from build/src/hamster/__pycache__/client.cpython-36.pyc)
+ install /usr/lib/python3/dist-packages/hamster/__pycache__/edit_activity.cpython-36.pyo (from build/src/hamster/__pycache__/edit_activity.cpython-36.pyo)
+ install /usr/lib/python3/dist-packages/hamster/widgets/__pycache__/reportchooserdialog.cpython-36.pyc (from build/src/hamster/widgets/__pycache__/reportchooserdialog.cpython-36.pyc)
+ install /usr/lib/python3/dist-packages/hamster/defs.py (from build/src/hamster/defs.py)
+ install /usr/share/dbus-1/services/org.gnome.hamster.service (from build/org.gnome.hamster.service)
+ install /usr/share/dbus-1/services/org.gnome.hamster.Windows.service (from build/org.gnome.hamster.Windows.service)
+ install /usr/share/locale/el/LC_MESSAGES/hamster.mo (from build/po/el.mo)
+ install /usr/share/locale/kn/LC_MESSAGES/hamster.mo (from build/po/kn.mo)
+ install /usr/share/locale/mk/LC_MESSAGES/hamster.mo (from build/po/mk.mo)
+ install /usr/share/locale/th/LC_MESSAGES/hamster.mo (from build/po/th.mo)
+ install /usr/share/locale/si/LC_MESSAGES/hamster.mo (from build/po/si.mo)
+ install /usr/share/locale/sv/LC_MESSAGES/hamster.mo (from build/po/sv.mo)
+ install /usr/share/locale/fr/LC_MESSAGES/hamster.mo (from build/po/fr.mo)
+ install /usr/share/locale/hu/LC_MESSAGES/hamster.mo (from build/po/hu.mo)
+ install /usr/share/locale/id/LC_MESSAGES/hamster.mo (from build/po/id.mo)
+ install /usr/share/locale/mr/LC_MESSAGES/hamster.mo (from build/po/mr.mo)
+ install /usr/share/locale/hi/LC_MESSAGES/hamster.mo (from build/po/hi.mo)
+ install /usr/share/locale/ko/LC_MESSAGES/hamster.mo (from build/po/ko.mo)
+ install /usr/share/locale/gl/LC_MESSAGES/hamster.mo (from build/po/gl.mo)
+ install /usr/share/locale/gu/LC_MESSAGES/hamster.mo (from build/po/gu.mo)
+ install /usr/share/locale/et/LC_MESSAGES/hamster.mo (from build/po/et.mo)
+ install /usr/share/locale/bg/LC_MESSAGES/hamster.mo (from build/po/bg.mo)
+ install /usr/share/locale/zh_TW/LC_MESSAGES/hamster.mo (from build/po/zh_TW.mo)
+ install /usr/share/locale/eu/LC_MESSAGES/hamster.mo (from build/po/eu.mo)
+ install /usr/share/locale/af/LC_MESSAGES/hamster.mo (from build/po/af.mo)
+ install /usr/share/locale/en@shaw/LC_MESSAGES/hamster.mo (from build/po/en@shaw.mo)
+ install /usr/share/locale/ta/LC_MESSAGES/hamster.mo (from build/po/ta.mo)
+ install /usr/share/locale/de/LC_MESSAGES/hamster.mo (from build/po/de.mo)
+ install /usr/share/locale/te/LC_MESSAGES/hamster.mo (from build/po/te.mo)
+ install /usr/share/locale/ug/LC_MESSAGES/hamster.mo (from build/po/ug.mo)
+ install /usr/share/locale/ca/LC_MESSAGES/hamster.mo (from build/po/ca.mo)
+ install /usr/share/locale/pt/LC_MESSAGES/hamster.mo (from build/po/pt.mo)
+ install /usr/share/locale/pt_BR/LC_MESSAGES/hamster.mo (from build/po/pt_BR.mo)
+ install /usr/share/locale/da/LC_MESSAGES/hamster.mo (from build/po/da.mo)
+ install /usr/share/locale/vi/LC_MESSAGES/hamster.mo (from build/po/vi.mo)
+ install /usr/share/locale/cs/LC_MESSAGES/hamster.mo (from build/po/cs.mo)
+ install /usr/share/locale/it/LC_MESSAGES/hamster.mo (from build/po/it.mo)
+ install /usr/share/locale/bn_IN/LC_MESSAGES/hamster.mo (from build/po/bn_IN.mo)
+ install /usr/share/locale/as/LC_MESSAGES/hamster.mo (from build/po/as.mo)
+ install /usr/share/locale/ml/LC_MESSAGES/hamster.mo (from build/po/ml.mo)
+ install /usr/share/locale/bn/LC_MESSAGES/hamster.mo (from build/po/bn.mo)
+ install /usr/share/locale/ru/LC_MESSAGES/hamster.mo (from build/po/ru.mo)
+ install /usr/share/locale/he/LC_MESSAGES/hamster.mo (from build/po/he.mo)
+ install /usr/share/locale/nb/LC_MESSAGES/hamster.mo (from build/po/nb.mo)
+ install /usr/share/locale/pa/LC_MESSAGES/hamster.mo (from build/po/pa.mo)
+ install /usr/share/locale/sl/LC_MESSAGES/hamster.mo (from build/po/sl.mo)
+ install /usr/share/locale/mai/LC_MESSAGES/hamster.mo (from build/po/mai.mo)
+ install /usr/share/locale/or/LC_MESSAGES/hamster.mo (from build/po/or.mo)
+ install /usr/share/locale/sq/LC_MESSAGES/hamster.mo (from build/po/sq.mo)
+ install /usr/share/locale/pl/LC_MESSAGES/hamster.mo (from build/po/pl.mo)
+ install /usr/share/locale/es/LC_MESSAGES/hamster.mo (from build/po/es.mo)
+ install /usr/share/locale/lv/LC_MESSAGES/hamster.mo (from build/po/lv.mo)
+ install /usr/share/locale/zh_HK/LC_MESSAGES/hamster.mo (from build/po/zh_HK.mo)
+ install /usr/share/locale/en_CA/LC_MESSAGES/hamster.mo (from build/po/en_CA.mo)
+ install /usr/share/locale/ku/LC_MESSAGES/hamster.mo (from build/po/ku.mo)
+ install /usr/share/locale/en_GB/LC_MESSAGES/hamster.mo (from build/po/en_GB.mo)
+ install /usr/share/locale/ar/LC_MESSAGES/hamster.mo (from build/po/ar.mo)
+ install /usr/share/locale/ca@valencia/LC_MESSAGES/hamster.mo (from build/po/ca@valencia.mo)
+ install /usr/share/locale/nl/LC_MESSAGES/hamster.mo (from build/po/nl.mo)
+ install /usr/share/locale/sr/LC_MESSAGES/hamster.mo (from build/po/sr.mo)
+ install /usr/share/locale/zh_CN/LC_MESSAGES/hamster.mo (from build/po/zh_CN.mo)
+ install /usr/share/locale/eo/LC_MESSAGES/hamster.mo (from build/po/eo.mo)
+ install /usr/share/locale/fi/LC_MESSAGES/hamster.mo (from build/po/fi.mo)
+ install /usr/share/locale/sr@latin/LC_MESSAGES/hamster.mo (from build/po/sr@latin.mo)
+ install /usr/share/locale/uk/LC_MESSAGES/hamster.mo (from build/po/uk.mo)
+ install /usr/share/locale/ja/LC_MESSAGES/hamster.mo (from build/po/ja.mo)
+ install /usr/share/locale/ro/LC_MESSAGES/hamster.mo (from build/po/ro.mo)
+ install /usr/share/locale/lt/LC_MESSAGES/hamster.mo (from build/po/lt.mo)
+ install /usr/share/locale/tr/LC_MESSAGES/hamster.mo (from build/po/tr.mo)
+ install /usr/share/locale/be/LC_MESSAGES/hamster.mo (from build/po/be.mo)
- install /usr/share/hamster/date_range.ui (from data/date_range.ui)
- install /usr/share/hamster/edit_activity.ui (from data/edit_activity.ui)
- install /usr/share/hamster/hamster.db (from data/hamster.db)
- install /usr/share/hamster/preferences.ui (from data/preferences.ui)
- install /usr/share/hamster/art/hamster-time-tracker.png (from data/art/hamster-time-tracker.png)
- install /usr/share/hamster/report_template.html (from data/report_template.html)
- install /usr/share/hamster/stats.ui (from data/stats.ui)
- install /usr/share/icons/hicolor/16x16/apps/hamster.png (from data/art/16x16/hamster.png)
- install /usr/share/hamster/art/stock_calendar-view-day.png (from data/art/stock_calendar-view-day.png)
- install /usr/share/icons/hicolor/22x22/apps/hamster.png (from data/art/22x22/hamster.png)
- install /usr/share/icons/hicolor/32x32/apps/hamster.png (from data/art/32x32/hamster.png)
- install /usr/share/icons/hicolor/48x48/apps/hamster.png (from data/art/scalable/hamster.png)
- install /usr/share/hamster/art/stock_calendar-view-month.png (from data/art/stock_calendar-view-month.png)
- install /usr/share/icons/hicolor/scalable/apps/hamster.svg (from data/art/scalable/hamster.svg)
- install /usr/share/appdata/hamster.metainfo.xml (from data/hamster.metainfo.xml)
- install /usr/share/glib-2.0/schemas/org.gnome.hamster.gschema.xml (from data/org.gnome.hamster.gschema.xml)
- install /usr/share/hamster/art/stock_calendar-view-week.png (from data/art/stock_calendar-view-week.png)
Waf: Leaving directory `/home/mbnoimi/.hamster/build'
Successfully updated GTK icon cache 
Updating GSettings schema cache '/usr/share/glib-2.0/schemas' 
'install' finished successfully (0.573s)
ederag commented 4 years ago

Thanks for the report with detailed logs. The simple installation process described in the README works here, and on clean virtualboxes.

The hamsterday_end function was added recently. Could it be that some python files are cached somewhere on your system ? But the logs look clean. That's strange.

Could you please give the output of the following commands ?

grep hamsterday_end /usr/lib/python3/dist-packages/hamster/lib/stuff.py
# should yield
# def hamsterday_end(hamsterday):
grep hamsterday_end /usr/lib/python3/dist-packages/hamster/lib/__pycache__/stuff.cpython-36.pyc
# should yield
# Binary file /usr/lib/python3/dist-packages/hamster/lib/__pycache__/stuff.cpython-36.pyc matches
grep hamsterday_end /usr/lib/python3/dist-packages/hamster/lib/__pycache__/stuff.cpython-36.pyo
# should yield
# Binary file /usr/lib/python3/dist-packages/hamster/lib/__pycache__/stuff.cpython-36.pyo matches

Are you by chance using a virtual environment ? That might be the issue.

mbnoimi commented 4 years ago

Could you please give the output of the following commands ?

mbnoimi@tracker ~/.hamster $ grep hamsterday_end /usr/lib/python3/dist-packages/hamster/lib/stuff.py
def hamsterday_end(hamsterday):
mbnoimi@tracker ~/.hamster $ grep hamsterday_end /usr/lib/python3/dist-packages/hamster/lib/__pycache__/stuff.cpython-36.pyc
Binary file /usr/lib/python3/dist-packages/hamster/lib/__pycache__/stuff.cpython-36.pyc matches
mbnoimi@tracker ~/.hamster $ grep hamsterday_end /usr/lib/python3/dist-packages/hamster/lib/__pycache__/stuff.cpython-36.pyo
Binary file /usr/lib/python3/dist-packages/hamster/lib/__pycache__/stuff.cpython-36.pyo matches
mbnoimi@tracker ~/.hamster $ 

Are you by chance using a virtual environment ? That might be the issue.

No, I use a real machine

mbnoimi commented 4 years ago

Oops the issue disappeared whithout modifying anything. I just rebooted my PC!

Any way, thanks a lot @ederag for the effort.

mbnoimi commented 4 years ago

It seems I wasn't bold enough to kill hamster-service hahahahahaha. pkill -ef hamster fixed the problem

ederag commented 4 years ago

Thanks for reporting success !

We should warn in case of running services with version mismatch. Troubleshooting section added to the wiki, meawhile: https://github.com/projecthamster/hamster/wiki/Tips-and-Tricks#troubleshooting

Edit: check added in #528