Ask Your Question
1

Debugger fails to connect on MacOS Mojave with WingPersonal 7.1.2

asked 2019-11-01 12:59:53 -0500

pushthepramalot424242's avatar

updated 2020-01-22 19:43:17 -0500

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 ...
(more)
edit retag flag offensive close merge delete

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.

Wingware Support's avatar Wingware Support  ( 2019-11-02 09:43:46 -0500 )edit

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

pushthepramalot424242's avatar pushthepramalot424242  ( 2019-11-02 12:02:26 -0500 )edit

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.

Wingware Support's avatar Wingware Support  ( 2019-11-03 17:49:09 -0500 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2019-11-17 21:42:41 -0500

updated 2019-11-17 21:43:33 -0500

This turned out to be an odd low-level TCP buffering issue on one particular machine. Wing 7.1.3 fixes it by handling the exception and setting up the connection without the buffering that exists to increase performance of the debugger connection.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2019-11-01 12:59:53 -0500

Seen: 1,579 times

Last updated: Nov 17 '19