P1sec / pysctp

SCTP stack for Python
http://www.p1sec.com
165 stars 67 forks source link

No luck after installing on Mac (OS X 10.6.8) #8

Closed leetrout closed 1 year ago

leetrout commented 12 years ago

I've been playing around for the past couple hours trying to get this working on my Mac.

I've installed the SCTP libs from http://sctp.fh-muenster.de/index.html and I can build & install just fine but I keep running into socket.error: [Errno 43] Protocol not supported any time I try to instantiate an sctpsocket instance.

Traceback (most recent call last):
  File "test_local_cnx.py", line 24, in <module>
    tcp = sctpsocket_tcp(socket.AF_INET)
  File "sctp.py", line 1659, in __init__
    sctpsocket.__init__(self, family, TCP_STYLE, sk)
  File "sctp.py", line 1012, in __init__
    sk = socket.socket(family, style, IPPROTO_SCTP)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/socket.py", line 182, in __init__
    _sock = _realsocket(family, type, proto)
socket.error: [Errno 43] Protocol not supported