I responded to this message on pox-dev earlier today. I can see what's going wrong, but I can't immediately figure out why it's happening.
It'd be helpful if you could add a print statement to openflow/__init__.py right before line 282: print str(value),' ',repr(value),' ',self .. and send me the console output when this happens. -- Murphy On Apr 9, 2013, at 6:34 PM, Yanan wrote: > hi, > > I got some error about "AttributeError: 'Connection' object has no attribute > '__cmp__'". > > How can I fix it? > > Regards~ > > >> help! >> >> sdn@IPL204:~/pox$ ./pox.py forwarding.l3_learning >> --fakeways=172.16.0.1,172.16.1.1 >> POX 0.1.0 (betta) / Copyright 2011-2013 James McCauley, et al. >> INFO:core:POX 0.1.0 (betta) is up. >> INFO:openflow.of_01:[90-e2-ba-28-2d-d5 1] connected >> INFO:packet:(dhcp parse) warning DHCP packet data too short to parse header: >> data len 86 >> INFO:packet:(dhcp parse) warning DHCP packet data too short to parse header: >> data len 86 >> Task <Timer/tid1> caused exception and was de-scheduled >> Traceback (most recent call last): >> File "/home/sdn/pox/pox/lib/recoco/recoco.py", line 276, in cycle >> rv = t.execute() >> File "/home/sdn/pox/pox/lib/recoco/recoco.py", line 94, in execute >> return self.gen.send(v) >> File "/home/sdn/pox/pox/lib/recoco/recoco.py", line 751, in run >> rv = self._callback(*self._args,**self._kw) >> File "/home/sdn/pox/pox/forwarding/l3_learning.py", line 130, in >> _handle_expiration >> core.openflow.sendToDPID(dpid, po) >> File "/home/sdn/pox/pox/openflow/__init__.py", line 346, in sendToDPID >> if dpid in self._connections: >> File "/home/sdn/pox/pox/openflow/__init__.py", line 282, in __contains__ >> return item in self.values() >> File "/home/sdn/pox/pox/lib/addresses.py", line 315, in __cmp__ >> return -other.__cmp__(self) >> AttributeError: 'Connection' object has no attribute '__cmp__' >
