what's the problem of " [Errno 97] Address family not supported by protocol"

5,391 views
Skip to first unread message

jacky

unread,
May 20, 2011, 4:20:17 AM5/20/11
to Tornado Server Web
I installed tornado 1.2.1 with python2.6. I run my app, but get this traceback message. what's the problem ?

Traceback (most recent call last):
  File "bookkeeper_http.py", line 445, in <module>
    main()
  File "bookkeeper_http.py", line 440, in main
    http_server.listen(options.port)
  File "/usr/lib/python2.6/site-packages/tornado-1.2.1-py2.6.egg/tornado/httpserver.py", line 160, in listen
    self.bind(port, address)
  File "/usr/lib/python2.6/site-packages/tornado-1.2.1-py2.6.egg/tornado/httpserver.py", line 186, in bind
    sock = socket.socket(af, socktype, proto)
  File "/usr/lib64/python2.6/socket.py", line 182, in __init__
    _sock = _realsocket(family, type, proto)
socket.error: [Errno 97] Address family not supported by protocol



====================
Best regards!
====================
jacky wu
====================

Xiaoxiao Qin

unread,
May 20, 2011, 7:06:02 AM5/20/11
to python-...@googlegroups.com
Dude, 

I guess that error is not relate with the Tornado,  It is probably your system configuration problem.
Did u configure with the SDP. sometimes the /usr/lib/libsdp.so will disables stream sockets in CentoOS  RHEL4.



秦潇潇(Steven Qin)
founder in Rfanti.com(烦题网)


Ben Darnell

unread,
May 20, 2011, 2:04:32 PM5/20/11
to python-...@googlegroups.com
This looks related to the new IPv6 support.  What does the socket.getaddrinfo call return for you?  Does it work if you pass family=socket.AF_INET to bind()?

-Ben

2011/5/20 jacky <jacky....@gmail.com>
Reply all
Reply to author
Forward
0 new messages