Alberto Bertogli added the comment: 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 __________________________________ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1646> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com