Debugger fails to connect on MacOS Mojave with WingPersonal 7.1.2
Hello everyone,
I have pretty much exactly the same problem with WingPersonal 7.1.2 under MacOS Mojave as this guy. The debugger fails to connect when restarting the python shell with the traceback output quoted below. Debugging a python module also fails. I cannot see anything wrong with my python installations/sys.path. After it didn't work I made a fresh install of python 3.7.4 with homebrew and after that didn't work I tried python 3.8 from python.org all to no avail. I never had any problems with VS Code+Debugger and the same python installations. Anyone any ideas? Thanks!
> Trying to import netserver from
> ['/Applications/WingPersonal.app/Contents/Resources/bootstrap',
> '/Applications/WingPersonal.app/Contents/Resources/bootstrap/__pycache__',
> '/Applications/WingPersonal.app/Contents/Resources/bin/dbg/src',
> '/Applications/WingPersonal.app/Contents/Resources/bin/dbg/src/__pycache__',
> '/Applications/WingPersonal.app/Contents/Resources/bin/dbg/src/wingbase',
> '/Applications/WingPersonal.app/Contents/Resources/bin/dbg/src/wingbase/__os__',
> '/Applications/WingPersonal.app/Contents/Resources/bin/dbg/src/wingbase/__os__/osx',
> '/Applications/WingPersonal.app/Contents/Resources/bin/dbg/src/wingbase/__os__/win32',
> '/Applications/WingPersonal.app/Contents/Resources/bin/dbg/src/wingbase/pexpect',
> '/Applications/WingPersonal.app/Contents/Resources/bin/dbg/src/wingbase/pexpect/ptyprocess',
> '/Applications/WingPersonal.app/Contents/Resources/bin/dbg/src/debug',
> '/Applications/WingPersonal.app/Contents/Resources/bin/dbg/src/debug/tserver',
> '/Applications/WingPersonal.app/Contents/Resources/bin/dbg/src/debug/tserver/__os__',
> '/Applications/WingPersonal.app/Contents/Resources/bin/dbg/src/debug/tserver/__os__/osx',
> '/Applications/WingPersonal.app/Contents/Resources/bin/dbg/src/debug/tserver/__os__/win32',
> '/Applications/WingPersonal.app/Contents/Resources/bin/dbg/src/wingbase/__os__/osx',
> '/Applications/WingPersonal.app/Contents/Resources/bin/dbg/src/debug/tserver/__os__/osx',
> '/Applications/WingPersonal.app/Contents/Resources/src',
> '/Applications/WingPersonal.app/Contents/Resources/src/testing',
> '/Applications/WingPersonal.app/Contents/Resources/src/testing/runners',
> '/Applications/WingPersonal.app/Contents/Resources/src/external',
> '/Applications/WingPersonal.app/Contents/Resources/src/external/pygments',
> '/Applications/WingPersonal.app/Contents/Resources/src/external/pygments/pygments',
> '/Applications/WingPersonal.app/Contents/Resources/src/external/pygments/pygments/filters',
> '/Applications/WingPersonal.app/Contents/Resources/src/external/pygments/pygments/lexers',
> '/Applications/WingPersonal.app/Contents/Resources/src/external/pygments/pygments/formatters',
> '/Applications/WingPersonal.app/Contents/Resources/src/external/pygments/pygments/styles',
> '/Applications/WingPersonal.app/Contents/Resources/src/wingutils',
> '/Applications/WingPersonal.app/Contents/Resources/src/debug',
> '/Applications/WingPersonal.app/Contents/Resources/src/debug/tserver',
> '/Applications/WingPersonal.app/Contents/Resources/src/debug/tserver/__pycache__',
> '/Applications/WingPersonal.app/Contents/Resources/src/debug/__pycache__',
> '/Applications/WingPersonal.app/Contents/Resources/src/debug/client']
> mod_names = ['tdbgtracer',
> 'tdbgtracerx64',
> 'tdbgtracer38pydebug', 'tdbgtracer38',
> 'tdbgtracer38pydebugx64',
> 'tdbgtracer38x64'] search_dirs =
> ['/Applications/WingPersonal.app/Contents/Resources/src/debug/tserver',
> '/Applications/WingPersonal.app/Contents/Resources/bin/dbg/src/debug/tserver']
> Failed to find spec for tdbgtracer
> While trying to load 'tdbgtracer' from
> '/Applications/WingPersonal.app/Contents/Resources/src/debug/tserver'
> Traceback (most recent call last):
> File
> "/Applications/WingPersonal.app/Contents/Resources/bin/dbg/src/debug/tserver/findmodules.py",
> line 232, in _FindTracer File
> "/Applications/WingPersonal.app/Contents/Resources/bin/dbg/src/debug/tserver/findmodules.py",
> line 301, in _LoadModule ImportError:
> Failed ...
Comments
Does /Applications/WingPersonal.app/Contents/Resources/bin/dbg/src/debug/tserver/__os__/osx/tdbgtracer64.so exist? Also is you Python 64-bit? Wing 7 only supports 64-bit Python on OS X. You can determine this by running 'import sys; print(sys.maxsize)' outside of Wing in the Python you are using.
In /Applications/WingPersonal.app/Contents/Resources/bin/dbg/src/debug/tserver/__os__/osx exists one file, which is named "tdbgtracerx64.so". My Python is 64bit. I get sys.maxsize = 9223372036854775807
Could you enable debug internals log file via the Debugger > Diagnostics page of the Preferences dialog and then either send it to support@wingware.com or post it here. I just tried Python 3.8 from python.org and didn't have any problems.