Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
SqAtx opened this issue Jun 18, 2024 · 2 comments
Closed

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

SqAtx opened this issue Jun 18, 2024 · 2 comments
Labels
bug reproducible-in-git Issues that affect the current dev version

Comments

@SqAtx
Copy link
Contributor

SqAtx commented Jun 18, 2024

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

@SqAtx SqAtx added bug reproducible-in-git Issues that affect the current dev version labels Jun 18, 2024
@mattmcadoo
Copy link

mattmcadoo commented Jun 22, 2024

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'

@diegogangl
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug reproducible-in-git Issues that affect the current dev version
Projects
None yet
Development

No branches or pull requests

3 participants