On Aug 25, 10:55 pm, Gloria W <strang...@comcast.net> wrote: > Hi again, > I am trying to run this example: > amaelia-1.0.7.0/Kamaelia/Test/Internet/test_MulticastTransceiverSystem.py > > and I'm getting this error: > > Traceback (most recent call last): > File "test_MulticastTransceiverSystem.py", line 59, in <module> > tests() > File "test_MulticastTransceiverSystem.py", line 55, in tests > scheduler.run.runThreads(slowmo=0.1) > File "/usr/lib/python2.6/site-packages/Axon/Scheduler.py", line 579, > in runThreads > for i in self.main(slowmo,canblock=True): pass > File "/usr/lib/python2.6/site-packages/Axon/Scheduler.py", line 473, > in main > result = mprocess.next() > File "/usr/lib/python2.6/site-packages/Axon/Microprocess.py", line > 398, in next > return self.__thread.next() > File "/usr/lib/python2.6/site-packages/Axon/Microprocess.py", line > 507, in _microprocessGenerator > v = pc.next() > File > "/usr/lib/python2.6/site-packages/Kamaelia/Internet/Multicast_transceiver.py", > line 130, in main > socket.inet_aton(self.remote_addr) + socket.inet_aton("0.0.0.0")) > File "<string>", line 1, in setsockopt > socket.error: [Errno 22] Invalid argument
OK, that's weird. When I run it, I get this (expected) behaviour: kamael...@kamaelian-laptop:~/Checkouts/kamaelia/trunk/Code/Python/ Kamaelia/Test/Internet$ ./test_MulticastTransceiverSystem.py (('192.168.2.2', 54741), 'Hello World')(('192.168.2.2', 54741), 'Hello World')(('192.168.2.2', 54741), 'Hello World')(('192.168.2.2', 54741), 'Hello World')(('192.168.2.2', 54741), 'Hello World')(('192.168.2.2', 54741), 'Hello World')(('192.168.2.2', 54741), 'Hello World') (('192.168.2.2', 54741), 'Hello World')(('192.168.2.2', 54741), 'Hello World')(('192.168.2.2', 54741), 'Hello World')(('192.168.2.2', 54741), 'Hello World')(('192.168.2.2', 54741), 'Hello World')^CTraceback (most recent call last): > I checked the docs on setsockopt, and the parameters under > IP_ADD_MEMBERSHIP look correct: Given this: > The ip_mreq structure (taken from |/usr/include/linux/in.h|) I'm assuming you're running linux. For reference, I'm running Ubuntu 10.04.1 LTS. Some relevant local output: (with some IPs changed to protect the innocent :-) kamael...@kamaelian-laptop:~ $ netstat -nr Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 wlan0 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 wlan0 0.0.0.0 192.168.2.1 0.0.0.0 UG 0 0 0 wlan0 kamael...@kamaelian-laptop:~ $ ifconfig -a eth0 Link encap:Ethernet HWaddr 00:1b:24:8c:24:a3 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) Interrupt:17 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:2709 errors:0 dropped:0 overruns:0 frame:0 TX packets:2709 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:1051823 (1.0 MB) TX bytes:1051823 (1.0 MB) pan0 Link encap:Ethernet HWaddr d6:d0:e8:f3:0c:b7 BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) vboxnet0 Link encap:Ethernet HWaddr 0a:00:27:00:00:00 BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) wlan0 Link encap:Ethernet HWaddr 00:1b:77:78:b4:c6 inet addr:192.168.2.2 Bcast:192.168.2.255 Mask: 255.255.255.0 inet6 addr: fe80::21b:77ff:fe78:b4c6/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:123630 errors:0 dropped:0 overruns:0 frame:0 TX packets:108907 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:109866599 (109.8 MB) TX bytes:20077933 (20.0 MB) And for completeness: kamael...@kamaelian-laptop:~ $ uname -a Linux kamaelian-laptop 2.6.32-24-generic #41-Ubuntu SMP Thu Aug 19 01:12:52 UTC 2010 i686 GNU/Linux kamael...@kamaelian-laptop:~ $ ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 20 file size (blocks, -f) unlimited pending signals (-i) 16382 max locked memory (kbytes, -l) 64 max memory size (kbytes, -m) unlimited open files (-n) 1024 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 0 stack size (kbytes, -s) 8192 cpu time (seconds, -t) unlimited max user processes (-u) unlimited virtual memory (kbytes, -v) unlimited file locks (-x) unlimited > What is going wrong here? I'm not sure. When I'm not sure I revert to columbo style questions - I don't suppose you're running a firewall (eg via iptables or ipchains) or not running networking? It wouldn't surprise me for that to be the "obvious" problem... > PS: Also, what is the path to the svn trunk? In order to checkout a read only version of the kamaelia trunk you grab this: svn co http://kamaelia.googlecode.com/svn/trunk/ kamaelia-trunk (BTW, I'm near connectivity again - as may be obvious - so I'll reply to the other mails shortly!) If you'd like a scratch space in /trunk/Sketches/<initials> just let me know. Regards, Michael -- You received this message because you are subscribed to the Google Groups "kamaelia" group. To post to this group, send email to kamae...@googlegroups.com. To unsubscribe from this group, send email to kamaelia+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/kamaelia?hl=en.