Mac BigSur using Python3.9 trying to use wxPython and WXGlade failing

151 Views Asked by At

After installing wxPython (brew install wxpython) and then downloading wxGlade and putting it in my Home directory. I get a terminal window go to the wxGlade machine and run: python3 wxglade.py (or even python wxglade.py) I get an error:

    chrisanderson@Chriss-MBP wxGlade-1.0.2 % python wxglade.py             
Traceback (most recent call last):
  File "wxglade.py", line 47, in <module>
    import common, config, compat, log
  File "/Users/chrisanderson/wxGlade-1.0.2/common.py", line 24, in <module>
    import config, compat, plugins, misc
  File "/Users/chrisanderson/wxGlade-1.0.2/compat.py", line 25, in <module>
    import wx
ImportError: No module named wx

If I do a which wxpython or which wx it says it can't find either. All of the "tutorials" I've found say "run wxGlade" then goes to the next step. The wxGlade site says to run it by changing to that folder and running it with either python or python3 - which, as stated above - I have.

--Edit forgot to mention- if I try import wx in a py file, it says:

"wx" is not accessedPylance
Import "wx" could not be resolvedPylancereportMissingImports

Anyone help install/setup wxPython and wxGlade to run on BigSur properly?

0

There are 0 best solutions below