Hi
I'v tested the code in Traffic Monitor Chapter having error: ubyte format
requires 0 <= number <= 255. Looks like it is caused by fmt in
pack_utils.py. I have checked the internet that it should be fixed by
upgrading the python version. I am running SDN Hub Tutorial VM with python
2.7.6, it should be fixed. What can I do with my code?
hub: uncaught exception: Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/ryu/lib/hub.py", line 52, in
_launch
func(*args, **kwargs)
File "/home/ubuntu/simple_minotor.py", line 32, in _monitor
self._request_stats(dp)
File "/home/ubuntu/simple_minotor.py", line 44, in _request_stats
datapath.send_msg(req)
File
"/usr/local/lib/python2.7/dist-packages/ryu/controller/controller.py", line
214, in send_msg
msg.serialize()
File
"/usr/local/lib/python2.7/dist-packages/ryu/ofproto/ofproto_parser.py",
line 205, in serialize
self._serialize_body()
File
"/usr/local/lib/python2.7/dist-packages/ryu/ofproto/ofproto_v1_3_parser.py",
line 3569, in _serialize_body
self._serialize_stats_body()
File
"/usr/local/lib/python2.7/dist-packages/ryu/ofproto/ofproto_v1_3_parser.py",
line 3787, in _serialize_stats_body
self.out_group, self.cookie, self.cookie_mask)
File "/usr/local/lib/python2.7/dist-packages/ryu/lib/pack_utils.py", line
25, in msg_pack_into
buf += struct.pack(fmt, *args)
error: ubyte format requires 0 <= number <= 255
*Best Regards,*
**********************************
*Yu Hsiang Huang*
**********************************
*GitHub:* https://github.com/yu-hsiang
*Linkedin: *https://tw.linkedin.com/in/yu-hsiang-huang-aaab4510a
*Email:* [email protected]
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel