[Python-apps-team] bug_report
realkig
realkig at gmail.com
Sat Dec 12 22:12:47 GMT 2020
Debian Bug Report
DEBIAN VERSION:
bullseye
----- System -----------------------------------------------------------
OTHER SYSTEM INFORMATION
python3 version:
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: *"if not
hasattr(ElementTree, 'getiterator'):
ElementTree.getiterator=ElementTree.iter"*, because since python
version >3.9 the code xml.etree.ElementTree.Element.getiterator(),
which had been deprecated with a warning previously, has been removed.
when i changed the "tree.getiterator" with the "tree.iter", "catfish"
works properly
--------------------------------------------------
best regards, Abakarov Gasan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/python-apps-team/attachments/20201213/254bc7d9/attachment.html>
More information about the Python-apps-team
mailing list