FS#68954 - [qreator] Not compatible with python 3.9

Attached to Project: Community Packages
Opened by Alexandre ZANNI (noraj) - Saturday, 12 December 2020, 13:02 GMT
Last edited by Balló György (City-busz) - Sunday, 14 March 2021, 17:05 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Balló György (City-busz)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:


Additional info:
* package version(s) 16.06.2-3
* config and/or log files etc.
* link to upstream bug report, seems to be related to python 3.9 https://stackoverflow.com/questions/64264563/attributeerror-elementtree-object-has-no-attribute-getiterator-when-trying

Steps to reproduce:

$ pacman -Syu qreator
$ qreator
Traceback (most recent call last):
File "/usr/bin/qreator", line 47, in <module>
qreator.main()
File "/usr/lib/python3.9/site-packages/qreator/__init__.py", line 71, in main
window = QreatorWindow.QreatorWindow()
File "/usr/lib/python3.9/site-packages/qreator_lib/Window.py", line 46, in __new__
builder = get_builder('QreatorWindow')
File "/usr/lib/python3.9/site-packages/qreator_lib/helpers.py", line 54, in get_builder
builder.add_from_file(ui_filename)
File "/usr/lib/python3.9/site-packages/qreator_lib/Builder.py", line 88, in add_from_file
ele_widgets = tree.getiterator("object")
AttributeError: 'ElementTree' object has no attribute 'getiterator'
This task depends upon

Closed by  Balló György (City-busz)
Sunday, 14 March 2021, 17:05 GMT
Reason for closing:  Fixed
Additional comments about closing:  qreator 20.02.1-1 (compatibility patch applied)
Comment by Alexander F. Rødseth (xyproto) - Tuesday, 22 December 2020, 16:55 GMT
Can confirm the issue. It is related to the "xml" module that comes with Python.
Comment by loqs (loqs) - Tuesday, 22 December 2020, 20:49 GMT
Does the attached patch resolve the issue?
Comment by Jouni Rinne (cyberpunkrocker) - Sunday, 10 January 2021, 05:00 GMT
Tested the patch. So far, the patched version of qreator seems to work fine. Please apply the patch to the released version.
Comment by Ram Pani (DuckSoft) - Thursday, 14 January 2021, 07:09 GMT
This patch works just fine. Please apply the patch to benefit more people.
Thanks in advance.
Comment by Balló György (City-busz) - Sunday, 14 March 2021, 17:04 GMT
@loqs: thanks for the patch. I forwarded the issue to upstream:
https://gitlab.com/qreator-dev/qreator/-/issues/1

Loading...