[Edit: the crashing is on the setup that had a previous version that got uninstalled in the pip process. When I install wx4.1.0 in a freshly made VM of the same OS it works fine]
I tried out the new wxpython by doing this:
sudo pip install wxpython==4.1.0
and it successfully uninstalled my 4.0.7.post2 and installed 4.1.0. But when I tried to import wx I got an immediate segfault. So I sudo pip uninstalled wxpython and re-installed my previous one:
sudo pip install wxpython==4.0.7.post2
and that appeared to work, but I got the same (looking) error now when I try to import:
$ python -X faulthandler
Python 3.6.9 (default, Apr 18 2020, 01:56:04)
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
Fatal Python error: Segmentation fault
Current thread 0x00007fca39a1d740 (most recent call first):
File "/usr/lib/python3/dist-packages/apt/__init__.py", line 34 in <module>
File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
File "<frozen importlib._bootstrap_external>", line 678 in exec_module
File "<frozen importlib._bootstrap>", line 665 in _load_unlocked
File "<frozen importlib._bootstrap>", line 955 in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 971 in _find_and_load
File "/usr/lib/python3/dist-packages/apport/packaging_impl.py", line 24 in <module>
File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
File "<frozen importlib._bootstrap_external>", line 678 in exec_module
File "<frozen importlib._bootstrap>", line 665 in _load_unlocked
File "<frozen importlib._bootstrap>", line 955 in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 971 in _find_and_load
File "/usr/lib/python3/dist-packages/apport/fileutils.py", line 23 in <module>
File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
File "<frozen importlib._bootstrap_external>", line 678 in exec_module
File "<frozen importlib._bootstrap>", line 665 in _load_unlocked
File "<frozen importlib._bootstrap>", line 955 in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 971 in _find_and_load
File "/usr/lib/python3/dist-packages/apport/report.py", line 30 in <module>
File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
File "<frozen importlib._bootstrap_external>", line 678 in exec_module
File "<frozen importlib._bootstrap>", line 665 in _load_unlocked
File "<frozen importlib._bootstrap>", line 955 in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 971 in _find_and_load
File "/usr/lib/python3/dist-packages/apport/__init__.py", line 5 in <module>
File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
File "<frozen importlib._bootstrap_external>", line 678 in exec_module
File "<frozen importlib._bootstrap>", line 665 in _load_unlocked
File "<frozen importlib._bootstrap>", line 955 in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 971 in _find_and_load
File "<frozen importlib._bootstrap>", line 219 in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 941 in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 971 in _find_and_load
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 63 in apport_excepthook
Segmentation fault (core dumped)
Is there something obvious I need to do to uninstalled it and get a working fresh install of wx (4.0.7 or 4.1.0) that will load?