<div id="geary-body" dir="auto"><pre style="font-variant-ligatures: normal; orphans: 2; widows: 2;">Debian Bug Report

DEBIAN VERSION:
bullseye

----- System -----------------------------------------------------------


OTHER SYSTEM INFORMATION </pre><pre style="font-variant-ligatures: normal; orphans: 2; widows: 2;">python3 version:</pre><pre style="font-variant-ligatures: normal; orphans: 2; widows: 2;">Python 3.9

----- Problem ----------------------------------------------------------

PROGRAM:
catfish

ERROR MESSAGES:
Traceback (most recent call last):
  File "/usr/bin/catfish", line 42, in <module>
    catfish.main()
  File "/usr/lib/python3/dist-packages/catfish/__init__.py", line 76, in main
    window = CatfishWindow.CatfishWindow()
  File "/usr/lib/python3/dist-packages/catfish_lib/Window.py", line 166, in __new__
    builder = get_builder(__builder__['ui_file'])
  File "/usr/lib/python3/dist-packages/catfish_lib/helpers.py", line 67, in get_builder
    builder.add_from_file(ui_filename)
  File "/usr/lib/python3/dist-packages/catfish_lib/Builder.py", line 87, in add_from_file
    ele_widgets = tree.getiterator("object")
AttributeError: 'ElementTree' object has no attribute 'getiterator'

SUGGESTED FIX:
i suggest to write the following code before 26-th line (from xml.etree.cElementTree import ElementTree) in the Builder.py: <b>"if not hasattr(ElementTree, 'getiterator'): ElementTree.getiterator=ElementTree.iter"</b>, because since python version >3.9 the code xml.etree.ElementTree.Element.getiterator(), which had been deprecated with a warning previously, has been removed.</pre><pre style="font-variant-ligatures: normal; orphans: 2; widows: 2;"><br></pre><pre style="font-variant-ligatures: normal; orphans: 2; widows: 2;">when i changed the "tree.getiterator" with the "tree.iter", "catfish" works properly</pre><div><br></div><div><pre style="font-variant-ligatures: normal; orphans: 2; widows: 2;">--------------------------------------------------</pre><pre style="font-variant-ligatures: normal; orphans: 2; widows: 2;">best regards, Abakarov Gasan</pre></div></div>