First time here? Check out the FAQ!

Revision history  [back]

External console error (mac)

Hi,

Trying to run a small sample curses python program on my iMac using a virtual env. It needs the "external console" so I checked that box in the DEBUG I/O options. My default shell is zsh (per macOS 10.15).

Getting this error in the newly-opened output console: -u: command not found

The program runs OK when I run it directly from the terminal.

Console Output:

Last login: Wed Jul 1 15:16:19 on ttys001 cd '/Users/kpw/dev/python/mac_main'; '/Applications/WingPro.app/Contents/Resources/bootstrap/launch-env.sh' '-u' '/Applications/WingPro.app/Contents/Resources/bootstrap/wingdb.py' '127.0.0.1:49842' '0' '--no-first-stop' 'r'\'''\''+chr(60)+r'\''none'\''+chr(62)+r'\'''\''' '--nowait-on-exit' '--exec-in-env=/Users/kpw/Library/Application Support/Wing Pro/v7/env-vars-127.0.0.1-49842' 'r'\''/Users/kpw/dev/python/mac_main/test_curses'\''+chr(46)+r'\''py'\''' √ ~ % cd '/Users/kpw/dev/python/mac_main'; '/Applications/WingPro.app/Contents/Resources/bootstrap/launch-env.sh' '-u' '/Applications/WingPro.app/Contents/Resources/bootstrap/wingdb.py' '127.0.0.1:49842' '0' '--no-first-stop' 'r'\'''\''+chr(60)+r'\''none'\''+chr(62)+r'\'''\''' '--nowait-on-exit' '--exec-in-env=/Users/kpw/Library/Application Support/Wing Pro/v7/env-vars-127.0.0.1-49842' 'r'\''/Users/kpw/dev/python/mac_main/test_curses'\''+chr(46)+r'\''py'\''' /Applications/WingPro.app/Contents/Resources/bootstrap/launch-env.sh: line 8: .: filename argument required .: usage: . filename [arguments] /Applications/WingPro.app/Contents/Resources/bootstrap/launch-env.sh: line 10: -u: command not found

External console error (mac)

Hi,

Trying to run a small sample curses python program on my iMac using a virtual env. It needs the "external console" so I checked that box in the DEBUG I/O options. My default shell is zsh (per macOS 10.15).

Getting this error in the newly-opened output console: -u: command not found

The program runs OK when I run it directly from the terminal.

Console Output:

Last login: Wed Jul 1 15:16:19 on ttys001 cd '/Users/kpw/dev/python/mac_main'; '/Applications/WingPro.app/Contents/Resources/bootstrap/launch-env.sh' '-u' '/Applications/WingPro.app/Contents/Resources/bootstrap/wingdb.py' '127.0.0.1:49842' '0' '--no-first-stop' 'r'\'''\''+chr(60)+r'\''none'\''+chr(62)+r'\'''\''' '--nowait-on-exit' '--exec-in-env=/Users/kpw/Library/Application Support/Wing Pro/v7/env-vars-127.0.0.1-49842' 'r'\''/Users/kpw/dev/python/mac_main/test_curses'\''+chr(46)+r'\''py'\''' √ ~ % cd '/Users/kpw/dev/python/mac_main'; '/Applications/WingPro.app/Contents/Resources/bootstrap/launch-env.sh' '-u' '/Applications/WingPro.app/Contents/Resources/bootstrap/wingdb.py' '127.0.0.1:49842' '0' '--no-first-stop' 'r'\'''\''+chr(60)+r'\''none'\''+chr(62)+r'\'''\''' '--nowait-on-exit' '--exec-in-env=/Users/kpw/Library/Application Support/Wing Pro/v7/env-vars-127.0.0.1-49842' 'r'\''/Users/kpw/dev/python/mac_main/test_curses'\''+chr(46)+r'\''py'\''' /Applications/WingPro.app/Contents/Resources/bootstrap/launch-env.sh: line 8: .: filename argument required .: usage: . filename [arguments] /Applications/WingPro.app/Contents/Resources/bootstrap/launch-env.sh: line 10: -u: command not found

External console error (mac)

Hi,

Trying to run a small sample curses python program on my iMac using a virtual env. It needs the "external console" so I checked that box in the DEBUG I/O options. My default shell is zsh (per macOS 10.15).

Getting this error in the newly-opened output console: -u: command not found

The program runs OK when I run it directly from the terminal.

Console Output:

Last login: Wed Jul 1 15:16:19 on ttys001 cd '/Users/kpw/dev/python/mac_main'; '/Applications/WingPro.app/Contents/Resources/bootstrap/launch-env.sh' '-u' '/Applications/WingPro.app/Contents/Resources/bootstrap/wingdb.py' '127.0.0.1:49842' '0' '--no-first-stop' 'r'\'''\''+chr(60)+r'\''none'\''+chr(62)+r'\'''\''' '--nowait-on-exit' '--exec-in-env=/Users/kpw/Library/Application Support/Wing Pro/v7/env-vars-127.0.0.1-49842' 'r'\''/Users/kpw/dev/python/mac_main/test_curses'\''+chr(46)+r'\''py'\''' √ ~ % cd '/Users/kpw/dev/python/mac_main'; '/Applications/WingPro.app/Contents/Resources/bootstrap/launch-env.sh' '-u' '/Applications/WingPro.app/Contents/Resources/bootstrap/wingdb.py' '127.0.0.1:49842' '0' '--no-first-stop' 'r'\'''\''+chr(60)+r'\''none'\''+chr(62)+r'\'''\''' '--nowait-on-exit' '--exec-in-env=/Users/kpw/Library/Application Support/Wing Pro/v7/env-vars-127.0.0.1-49842' 'r'\''/Users/kpw/dev/python/mac_main/test_curses'\''+chr(46)+r'\''py'\''' /Applications/WingPro.app/Contents/Resources/bootstrap/launch-env.sh: line 8: .: filename argument required .: usage: . filename [arguments] /Applications/WingPro.app/Contents/Resources/bootstrap/launch-env.sh: line 10: -u: command not found