This patch fixes the following issue.

Traceback (most recent call last):
  File "/opt/stack/ryu/bin/ryu-manager", line 42, in <module>
    from ryu.base.app_manager import AppManager
  File "/opt/stack/ryu/ryu/base/app_manager.py", line 25, in <module>
    from ryu.controller.handler import register_instance
  File "/opt/stack/ryu/ryu/controller/handler.py", line 20, in <module>
    from ryu.controller import ofp_event
  File "/opt/stack/ryu/ryu/controller/ofp_event.py", line 75, in <module>
    _create_ofp_msg_ev_from_module(m)
  File "/opt/stack/ryu/ryu/controller/ofp_event.py", line 60, in 
_create_ofp_msg_ev_from_module
    mod = utils.import_module(modname)
  File "/opt/stack/ryu/ryu/utils.py", line 35, in import_module
    __import__(name)
  File "/opt/stack/ryu/ryu/ofproto/ofproto_v1_0_parser.py", line 26, in <module>
    import utils.round_up
ImportError: No module named utils.round_up

Signed-off-by: Yoshihiro Kaneko <[email protected]>
---
 ryu/ofproto/ofproto_v1_0_parser.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ryu/ofproto/ofproto_v1_0_parser.py 
b/ryu/ofproto/ofproto_v1_0_parser.py
index e44d6ae..f9673fb 100644
--- a/ryu/ofproto/ofproto_v1_0_parser.py
+++ b/ryu/ofproto/ofproto_v1_0_parser.py
@@ -23,7 +23,7 @@ from ryu.lib import mac
 from . import ofproto_parser
 from . import ofproto_v1_0
 from . import nx_match
-import utils.round_up
+from ryu import utils
 
 import logging
 LOG = logging.getLogger('ryu.ofproto.ofproto_v1_0_parser')
-- 
1.7.9.5


------------------------------------------------------------------------------
Own the Future-Intel&reg; Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game 
on Steam. $5K grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to