I am trying to track down a problem using wx inside the Spyder debugger on MacOS 10.15. What I am finding is that if I invoke an external pythonw interpreter created with miniconda that contains a number of packages including matplotlib, then this two-line program is sufficient to hang the debugger:
import wx
application = wx.App(0)
If I remove matplotlib from the installation (conda remove matplotlib), then everything works as it should. This does not mean that matplotlib itself is causing the problem, since conda adds installs about two dozen other packages with matplotlib and changes versions of a few others, so trying to track down exactly where the conflict is found will not be so easy.
I wanted to see where the hang is within wx.App.__init__
and have tracked it down to the self._BootstrapApp()
call. That gets started, but never returns. Am I correct that self._BootstrapApp()
is a wrapped wxwidgets routine? I can’t find any other references to it.
Anyone reading this have any suggestions on tracking this down? I would really like to be able to debug wx code in Spyder, but without matplotlib and its friends, that is going to be tough.