hi,

i don't think the patch makes sense.

the real problem is that your command ends up with importing
two copies of switches module.  you can avoid the problem by:
    ryu-manager --verbose --observe-links ryu.topology.switches

YAMAMOTO Takashi

> Hi,
> 
> I sent the patch: [Ryu-devel] [PATCH] Fix
> oslo.config.cfg.ArgsAlreadyParsedError. However, this patch is for
> master/HEAD.
> The patch for Ryu 2.2 is attached to this email. Please save the patch and
> execute the following commands for patching.
> 
> ----------8<----------8<----------
> # patch -p0 `which ryu-manager` <
> 0001-Fix-oslo.config.cfg.ArgsAlreadyParsedError-for-ryu-2.patch
> ----------8<----------8<----------
> 
> Thanks,
> Satoshi
> 
> 2013/8/28 Satoshi Kobayashi <[email protected]>
> 
>> Hi,
>>
>> I also noticed the same problem. The cause is to set up oslo.config before
>> loading app_lists in ryu-manager. I will send the patch to fix this problem.
>>
>> Thanks,
>> Satoshi
>>
>> 2013/8/27 Q Lady <[email protected]>
>>
>>> when i upgrade from 1.9 to 2.2, I cant use swithes.py
>>> I have delelte /usr/local/lib/python2.7/dist-packages/ryu
>>> /usr/local/lib/python2.7/dist-packages/ryu-1.8-egg-info
>>> /usr/local/lib/python2.7/dist-packages/ryu-1.9-egg-info
>>>
>>> then reinstall ryu 2.2 from the source ,then I get the following error
>>>
>>> How can I resolve it ?
>>> Thanks
>>>
>>> ryu-manager --verbose --observe-links ryu/topology/switches.py
>>> loading app ryu/topology/switches.py
>>> Traceback (most recent call last):
>>>   File "/usr/local/bin/ryu-manager", line 90, in <module>
>>>     main()
>>>   File "/usr/local/bin/ryu-manager", line 68, in main
>>>     app_mgr.load_apps(app_lists)
>>>   File "/usr/local/lib/python2.7/dist-packages/ryu/base/app_manager.py",
>>> line 171, in load_apps
>>>     cls = self.load_app(app_cls_name)
>>>   File "/usr/local/lib/python2.7/dist-packages/ryu/base/app_manager.py",
>>> line 153, in load_app
>>>     mod = utils.import_module(name)
>>>   File "/usr/local/lib/python2.7/dist-packages/ryu/utils.py", line 50, in
>>> import_module
>>>     __import__(name)
>>>   File "/home/holyn/ryu/ryu/topology/switches.py", line 52, in <module>
>>>     help='link discovery: explicitly drop lldp packet in')
>>>   File "/usr/local/lib/python2.7/dist-packages/oslo/config/cfg.py", line
>>> 1125, in __inner
>>>     return f(self, *args, **kwargs)
>>>   File "/usr/local/lib/python2.7/dist-packages/oslo/config/cfg.py", line
>>> 1279, in register_cli_opts
>>>     self.register_cli_opt(opt, group, clear_cache=False)
>>>   File "/usr/local/lib/python2.7/dist-packages/oslo/config/cfg.py", line
>>> 1125, in __inner
>>>     return f(self, *args, **kwargs)
>>>   File "/usr/local/lib/python2.7/dist-packages/oslo/config/cfg.py", line
>>> 1271, in register_cli_opt
>>>     raise ArgsAlreadyParsedError("cannot register CLI option")
>>> oslo.config.cfg.ArgsAlreadyParsedError: arguments already parsed: cannot
>>> register CLI option
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Introducing Performance Central, a new site from SourceForge and
>>> AppDynamics. Performance Central is your source for news, insights,
>>> analysis and resources for efficient Application Performance Management.
>>> Visit us today!
>>>
>>> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> Ryu-devel mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>>>
>>>
>>
>>
>> --
>> Satoshi Kobayashi <[email protected]>
>>
> 
> 
> 
> -- 
> Satoshi Kobayashi <[email protected]>

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to