EXTERNAL: OSError: [Errno 48] Address already in use

T Berger brgrt2 at gmail.com
Sat Jun 30 18:01:48 EDT 2018


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.

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.

Tamara 

> Cheers,
> Cameron Simpson <cs at cskk.id.au>



More information about the Python-list mailing list