EXTERNAL: OSError: [Errno 48] Address already in use
brgrt2 at gmail.com
Sun Jul 1 00:23:20 EDT 2018
On Saturday, June 30, 2018 at 6:39:36 PM UTC-4, MRAB wrote:
> On 2018-06-30 23:01, T Berger wrote:
> > On Friday, June 29, 2018 at 7:00:15 PM UTC-4, Cameron Simpson wrote:
> >> The key point here from Jim is "simultaneously". Are you properly shutting down
> >> the Flask instance in IDLE before running from Terminal, and vice versa?
> > Cameron, I try every option to quit either program, but they don't work. Or I should say, they mostly don't work. Once in a while they do. The one option which works (which is not a feasible option) is rebooting my Mac (actually that might not work either. I think I got the error message again this morning when I rebooted).
> >> Otherwise both will try to use the same local port and There Can Be Only One.
> >> Do you need to run from both environments at the same time? I'd have thought
> >> not, which also leads me to: why are you flicking from IDLE to Terminal? I
> >> would have imagined using one or the other normally, not both. It isn't wrong
> >> to use both, just surprising.
> > I'm working from a Python manual. I created the webapp in IDLE, and test it in Terminal, per the instructions in the manual. I use IDLE to edit my program, and then test it in terminal. When I go from one to the other, I get the error message. IDLE has a keyboard shortcut for quitting the shell—Cntl + C—but it doesn't work. Neither does restarting the shell. Neither does entering the kill command line, not in IDLE or terminal.
> Ctrl+C is the shortcut for interrupting a Python program running on
> IDLE's or Windows command line. In IDLE's editor, Ctrl+C is the shortcut
> for copying text the clipboard.
> The keyboard shortcut for quitting IDLE completely is Ctrl+Q.
> > Do you have any other suggestions? I'm going to email the writer. He doesn't mention how to deal with problems that might arise from working with two programs at the same time. Maybe Cntl+C should do it, but in my case it doesn't.
More information about the Python-list