Error on Python

Zara yozara at terra.es
Mon Feb 11 02:18:11 EST 2008


On Sat, 9 Feb 2008 10:26:26 -0800 (PST), maehhheeyy
<maehhheeyy at gmail.com> wrote:

>Hi, right now I'm using Python and Multicast. I have the code for
>Multicast receiver on Python but I keep getting this error;
>
>File "<string>", line 1, in bind
>error: (10049, "Can't assign requested address")
>
>The error is coming from this line;
>sock.bind ((MCAST_ADDR, MCAST_PORT))
>
>Can anyone please help me solve this problem?


This error typically arises when the address is neither the IP address
of a network connection or 0.0.0.0.
 If you are trying to connect an IGMP socket under Windows, it may not
be treated as a normal socket. You must use the corresponding
setsockopt() options, and I am not sure if they are available throguh
Python!

Search MSDN for IGMP, or lok directly at:
http://msdn2.microsoft.com/en-us/library/ms739172(VS.85).aspx

If you are trying on *NIX SO, I don't know if this is applicable

best regrads,

Zara




More information about the Python-list mailing list