-
Notifications
You must be signed in to change notification settings - Fork 923
OSError: [WinError 10013] An attempt was made to access a socket in a way forbidden by its access permissions #86
Description
Expected Behavior
Trying to run quickstart on python 3.6
Actual Behavior
Got error:
C:\Users\Uber-Admin\Desktop\Google Drive!GIF PROJECT\Python\Python 3.x\Requests
python quickstart.py
Traceback (most recent call last):
File "quickstart.py", line 49, in
main()
File "quickstart.py", line 30, in main
creds = flow.run_local_server()
File "C:\ProgramData\Anaconda3\lib\site-packages\google_auth_oauthlib\flow.py"
, line 407, in run_local_server
host, port, wsgi_app, handler_class=_WSGIRequestHandler)
File "C:\ProgramData\Anaconda3\lib\wsgiref\simple_server.py", line 153, in mak
e_server
server = server_class((host, port), handler_class)
File "C:\ProgramData\Anaconda3\lib\socketserver.py", line 453, in init
self.server_bind()
File "C:\ProgramData\Anaconda3\lib\wsgiref\simple_server.py", line 50, in serv
er_bind
HTTPServer.server_bind(self)
File "C:\ProgramData\Anaconda3\lib\http\server.py", line 136, in server_bind
socketserver.TCPServer.server_bind(self)
File "C:\ProgramData\Anaconda3\lib\socketserver.py", line 467, in server_bind
self.socket.bind(self.server_address)
OSError: [WinError 10013] An attempt was made to access a socket in a way forbid
den by its access permissions
Steps to Reproduce the Problem
- Ran quickstart.py from https://developers.google.com/gmail/api/quickstart/python
- Got error:
C:\Users\Uber-Admin\Desktop\Google Drive!GIF PROJECT\Python\Python 3.x\Requests
python quickstart.py
Traceback (most recent call last):
File "quickstart.py", line 49, in
main()
File "quickstart.py", line 30, in main
creds = flow.run_local_server()
File "C:\ProgramData\Anaconda3\lib\site-packages\google_auth_oauthlib\flow.py"
, line 407, in run_local_server
host, port, wsgi_app, handler_class=_WSGIRequestHandler)
File "C:\ProgramData\Anaconda3\lib\wsgiref\simple_server.py", line 153, in mak
e_server
server = server_class((host, port), handler_class)
File "C:\ProgramData\Anaconda3\lib\socketserver.py", line 453, in init
self.server_bind()
File "C:\ProgramData\Anaconda3\lib\wsgiref\simple_server.py", line 50, in serv
er_bind
HTTPServer.server_bind(self)
File "C:\ProgramData\Anaconda3\lib\http\server.py", line 136, in server_bind
socketserver.TCPServer.server_bind(self)
File "C:\ProgramData\Anaconda3\lib\socketserver.py", line 467, in server_bind
self.socket.bind(self.server_address)
OSError: [WinError 10013] An attempt was made to access a socket in a way forbid
den by its access permissions
Specifications
- Python version (
python --version) Python 3.6.3 :: Anaconda custom (64-bit) - OS (Mac/Linux/Windows)
My OS is Windows 7 64-bit Pro