getting-things-gnome/gtg

AttributeError: 'Date' object has no attribute 'year'

Closed this issue · 2 comments

Click on the "Closed on" date picker of a closed task.

image

Not sure why the bug report says GTG 0.6 - this is on 13870dd (master from April).

Context: Global generic exception

Traceback (most recent call last):
  File "/home/kguillaumond/src/gtg/.local_build/install/lib/python3/dist-packages/GTG/gtk/editor/editor.py", line 292, in show_popover_closed
    gtime = GLib.DateTime.new_local(closed_date.year, closed_date.month, closed_date.day, 0, 0, 0)
                                    ^^^^^^^^^^^^^^^^
AttributeError: 'Date' object has no attribute 'year'

GTG: 0.6.0-13870ddc
Flatpak: False
Snap: False
Display Name: wayland-0
Desktop: GNOME

lxml: True
caldav: False
liblarch: False
Cheetah3: False
dbus-python: True
pdflatex: False
pypdftk: False

OS: Debian GNU/Linux 12 (bookworm)
Python: CPython 3.11.2
GLib: 2.74.4
PyGLib: 3.42.2
PyGObject: 3.42.2
GTK: 4.3.8

Happens for me also using the version listed in #1115 Commit: c501ff8

GTG (Getting Things GNOME!) 0.6.0
Using python 3.12.4 (main, Jun 12 2024, 20:41:30) [GCC 14.1.1 20240516]

Traceback (most recent call last):
  File "/usr/lib/python3.12/site-packages/GTG/gtk/editor/editor.py", line 871, in on_window_focus_change
    self.show_popover_closed()
  File "/usr/lib/python3.12/site-packages/GTG/gtk/editor/editor.py", line 291, in show_popover_closed
    gtime = GLib.DateTime.new_local(closed_date.year, closed_date.month, closed_date.day, 0, 0, 0)
                                    ^^^^^^^^^^^^^^^^
AttributeError: 'Date' object has no attribute 'year'

Looks like GH didn't get the "fix" keyword, closing this manually then