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

Broken on ArchLinux #474

Open
LethalManBoob opened this issue Dec 25, 2024 · 3 comments
Open

Broken on ArchLinux #474

LethalManBoob opened this issue Dec 25, 2024 · 3 comments

Comments

@LethalManBoob
Copy link

┌──────────────────────────────────────────────────────────────────────────────┐
│ Traceback (most recent call last): │
│ File "/usr/lib/python3.13/site-packages/wx/core.py", line 3427, in │
│ │
│ lambda event: event.callable(*event.args, **event.kw) ) │
│ ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ │
│ File "/usr/lib/python3.13/site-packages/DisplayCAL/display_cal.py", line │
│ 19520, in setup_frame │
│ app.frame = MainFrame(self.worker) │
│ ~~~~~~~~~^^^^^^^^^^^^^ │
│ File "/usr/lib/python3.13/site-packages/DisplayCAL/display_cal.py", line │
│ 1876, in init
│ self.set_child_ctrls_as_attrs(self) │
│ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^ │
│ File "/usr/lib/python3.13/site-packages/DisplayCAL/wxwindows.py", line │
│ 2346, in set_child_ctrls_as_attrs │
│ for child in parent.GetAllChildren(): │
│ ~~~~~~~~~~~~~~~~~~~~~^^ │
│ File "/usr/lib/python3.13/site-packages/DisplayCAL/wxaddons.py", line 101, │
│ in GetAllChildren │
│ children = [child for child in self.GetChildren() if child not in skip] │
│ ~~~~~~~~~~~~~~~~^^ │
│ TypeError: 'WindowList_iterator' object is not iterable │
└──────────────────────────────────────────────────────────────────────────────┘

@jarrard
Copy link

jarrard commented Dec 31, 2024

yeah, been this way for well over a week. No solution found!

'WindowList_iterator' object is not iterable

Traceback (most recent call last):
  File "/usr/lib/python3.13/site-packages/wx/core.py", line 3427, in <lambda>
    lambda event: event.callable(*event.args, **event.kw) )
                  ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/DisplayCAL/display_cal.py", line 19520, in setup_frame
    app.frame = MainFrame(self.worker)
                ~~~~~~~~~^^^^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/DisplayCAL/display_cal.py", line 1876, in __init__
    self.set_child_ctrls_as_attrs(self)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^
  File "/usr/lib/python3.13/site-packages/DisplayCAL/wxwindows.py", line 2346, in set_child_ctrls_as_attrs
    for child in parent.GetAllChildren():
                 ~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/lib/python3.13/site-packages/DisplayCAL/wxaddons.py", line 101, in GetAllChildren
    children = [child for child in self.GetChildren() if child not in skip]
                                   ~~~~~~~~~~~~~~~~^^
TypeError: 'WindowList_iterator' object is not iterable

@NohanMV
Copy link

NohanMV commented Jan 7, 2025

Python 3.13 and wxPython issues.

Can be fixed by modifying manually /usr/lib/python3.13/site-packages/DisplayCAL/wxaddons.py and /usr/lib/python3.13/site-packages/DisplayCAL/wxfixes.py by encapsulating the mentionned method call in a list(foo.GetChildren()) as to make the return types iterable through a list type cast :

/usr/lib/python3.13/site-packages/DisplayCAL/wxaddons.py replace line 101 with :
children = [child for child in list(self.GetChildren()) if child not in skip]

/usr/lib/python3.13/site-packages/DisplayCAL/wxfixes.py replace line 1027 with :
for window in list(wx.GetTopLevelWindows())

@jarrard
Copy link

jarrard commented Jan 8, 2025

Thanks I'll check it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants