As as a response for a . I get something like that
ryu-manager --app-lists .base-switch.py
loading app .base-switch.py
Traceback (most recent call last):
File "/home/vagrant/.local/bin/ryu-manager", line 11, in <module>
sys.exit(main())
File "/home/vagrant/.local/lib/python2.7/site-packages/ryu/cmd/manager.py",
line 98, in main
app_mgr.load_apps(app_lists)
File
"/home/vagrant/.local/lib/python2.7/site-packages/ryu/base/app_manager.py",
line 415, in load_apps
cls = self.load_app(app_cls_name)
File
"/home/vagrant/.local/lib/python2.7/site-packages/ryu/base/app_manager.py",
line 392, in load_app
mod = utils.import_module(name)
File "/home/vagrant/.local/lib/python2.7/site-packages/ryu/utils.py", line
108, in import_module
return importlib.import_module(modname)
File "/usr/lib/python2.7/importlib/__init__.py", line 30, in import_module
raise TypeError("relative imports require the 'package' argument")
TypeError: relative imports require the 'package' argument
________________________________
Od: Pelcner, Lukasz
Wysłane: poniedziałek, 4 lutego 2019 02:19:36
Do: IWAMOTO Toshihiro
DW: [email protected]
Temat: Odp.: [Ryu-devel] Error
Thanks,
so If I understand correctly ryu-manager --app-lists ~/base/base/base-switch.py
instead of / just use . ? ryu-manager --app-lists base.base-switch.py
________________________________
Od: IWAMOTO Toshihiro <[email protected]>
Wysłane: poniedziałek, 4 lutego 2019 02:12:25
Do: Pelcner, Lukasz
DW: [email protected]
Temat: Re: [Ryu-devel] Error
On Mon, 04 Feb 2019 09:16:43 +0900,
Pelcner, Lukasz wrote:
>
> [1 <multipart/alternative (7bit)>]
> [1.1 <text/plain; iso-8859-2 (quoted-printable)>]
> Dear Sir/Madam,
>
>
> Trying to set up Ryu I constantly get the following error running
> simple_switch for OpenFlow 1.3
http://osrg.github.io/ryu-book/en/html/switching_hub.html#executing-the-switching-hub
A python path notation (with delimiter '.') should be used instead of
a Unix path notation (with delimiter '/').
> Traceback (most recent call last):
> File "/home/vagrant/.local/bin/ryu-manager", line 11, in <module>
> sys.exit(main())
> File "/home/vagrant/.local/lib/python2.7/site-packages/ryu/cmd/manager.py",
> line 98, in main
> app_mgr.load_apps(app_lists)
> File
> "/home/vagrant/.local/lib/python2.7/site-packages/ryu/base/app_manager.py",
> line 415, in load_apps
> cls = self.load_app(app_cls_name)
> File
> "/home/vagrant/.local/lib/python2.7/site-packages/ryu/base/app_manager.py",
> line 392, in load_app
> mod = utils.import_module(name)
> File "/home/vagrant/.local/lib/python2.7/site-packages/ryu/utils.py", line
> 104, in import_module
> return importlib.import_module(modname)
> File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
> __import__(name)
> ImportError: Import by filename is not supported.
>
--
IWAMOTO Toshihiro
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel