Author albertito
Recipients albertito, christian.heimes, gvanrossum
Date 2008-01-07.16:04:47
SpamBayes Score 7.08656e-05
Marked as misclassified No
Message-id <20080107160404.GN18632@gmail.com>
In-reply-to <1199720274.37.0.70587010849.issue1646@psf.upfronthosting.co.za>
Content
On Mon, Jan 07, 2008 at 03:37:54PM -0000, Christian Heimes wrote:
> The unit tests don't work for me (Ubuntu 7.10, Linux 2.6.22, i386)
> 
> >>> srv = socket.socket(socket.AF_TIPC, socket.SOCK_RDM)
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "/home/heimes/dev/python/trunk/Lib/socket.py", line 177, in __init__
>     _sock = _realsocket(family, type, proto)
> socket.error: [Errno 97] Address family not supported by protocol
> 
> Do I have to set up my network device for TIPC?

No, by default you have a single-node cluster fully capable of TIPC
networking. But you do need the TIPC module loaded; have you tried
modprobe tipc?

If that works, the test cases should pass.

I understand that this might be a problem because there is no time to
check at runtime if you have TIPC enabled in your kernel (besides the
obvious way of trying to create the socket and see if it fails); but you
have the same problem with any network protocol (although obviously is
much more common to have TIPC disabled than the rest of the supported
ones).

Do you want me to check for this in the conditional for inclusion?

Thanks,
		Alberto
History
Date User Action Args
2008-01-07 16:04:49albertitosetspambayes_score: 7.08656e-05 -> 7.08656e-05
recipients: + albertito, gvanrossum, christian.heimes
2008-01-07 16:04:48albertitolinkissue1646 messages
2008-01-07 16:04:47albertitocreate