This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: python -m flask run gives OSError: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 3.9
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: Jimbofbx, chandrakant.rvce, eric.smith, loewis, pitrou, terry.reedy, tim.golden
Priority: normal Keywords:

Created on 2021-07-28 18:46 by chandrakant.rvce, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
app.py chandrakant.rvce, 2021-07-28 18:46
Messages (3)
msg398413 - (view) Author: Chandrakant Naik (chandrakant.rvce) Date: 2021-07-28 18:46
Attached is teh app.py program. I tried runnign it in VS Code via the cmd - python -m flask run. It gives me the below error 

OSError: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions

Tried changing the port and executing it still no luck
msg398414 - (view) Author: Eric V. Smith (eric.smith) * (Python committer) Date: 2021-07-28 19:07
This sounds like a flask problem, not a python bug.
msg398617 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2021-07-31 01:34
This tracker is for fixing bugs in CPython and its stdlib, not for bugs in 3rd party applications or their usage.  Your report does not point to a bug in python itself.

Try asking about this issue on a flask forum, python-list, maybe stackoverflow.com, or maybe elsewhere.  When you do, cut and paste the full traceback.  Also clarify whether you ran 'python -m flask run' at a command line or simulation thereof or whether you loaded app.py into VS Code and ran the file.  Those are different actions.
History
Date User Action Args
2022-04-11 14:59:48adminsetgithub: 88930
2021-07-31 01:34:10terry.reedysetstatus: open -> closed

nosy: + terry.reedy
messages: + msg398617

resolution: not a bug
stage: resolved
2021-07-28 19:07:07eric.smithsetnosy: + eric.smith
messages: + msg398414
2021-07-28 18:46:29chandrakant.rvcecreate