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

wx branch crashes with python upgrade #192

Open
jonorthwash opened this issue Mar 25, 2023 · 0 comments
Open

wx branch crashes with python upgrade #192

jonorthwash opened this issue Mar 25, 2023 · 0 comments
Labels
bug Something isn't working interface priority Needs attention

Comments

@jonorthwash
Copy link
Collaborator

In Python 3.10.8 with wx 4.0.7, the partial interface redesign (#159) in the wx branch runs as expected (see e.g. screenshot in #159 (comment)).

With Python 3.11.2 with wx 4.2.0, however, it crashes:

$ python3 -m ultratrace ../ultrasound-data-QumuqKGQ-190929
/usr/lib/python3/dist-packages/requests/__init__.py:87: RequestsDependencyWarning: urllib3 (1.26.12) or chardet (5.1.0) doesn't match a supported version!
  warnings.warn("urllib3 ({}) or chardet ({}) doesn't match a supported "
INFO:   initializing UltraTrace
INFO:    - initializing module: Data
DEBUG:     - parsing directory: `../ultrasound-data-QumuqKGQ-190929`
DEBUG:     - found metadata file: `../ultrasound-data-QumuqKGQ-190929/metadata.json`
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/home/jwashin1/Documents/UltraTrace/ultratrace/__main__.py", line 309, in <module>
    mainFrame = Frame(None, title='UltraTrace')
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/jwashin1/Documents/UltraTrace/ultratrace/__main__.py", line 22, in __init__
    self.initialise()
  File "/home/jwashin1/Documents/UltraTrace/ultratrace/__main__.py", line 37, in initialise
    self.buildWidgetSkeleton()
  File "/home/jwashin1/Documents/UltraTrace/ultratrace/__main__.py", line 234, in buildWidgetSkeleton
    self.panel.SetSizer(self.hbox)
wx._core.wxAssertionError: C++ assertion "CheckExpectedParentIs(w, m_containingWindow)" failed at ./src/common/sizer.cpp(887) in SetContainingWindow(): Windows managed by the sizer associated with the given window must have this window as parent, otherwise they will not be repositioned correctly.

Please use the window wxPanel@0x33a2910 ("panel") with which this sizer is associated, as the parent when creating the window wxBitmapButton@0x4088a70 ("button") managed by it.
@jonorthwash jonorthwash added bug Something isn't working priority Needs attention interface labels Mar 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working interface priority Needs attention
Projects
None yet
Development

No branches or pull requests

1 participant