I didn't quiet get what you mean! What I want to do is pretty
straightforward, let's assume I have a utility library somewhere at
/path_to_lib_folder and I have developed an app called app.py in ryu app
folder. in app.py I've imported like:
                         from utiLib.calc import calc_func

but simply placing lib_folder in ryu directory system does not work and
when I run ryu_manager app.py, I get ImportError: no module named
utiLib.calc
therefore I thought I may need to explicitly introduce lib_folder to
ryu_manager

How can I resolve this issue?
Bests.

On Tue, Oct 27, 2015 at 4:27 AM, xueguanwen <[email protected]> wrote:

> Hi,maybe networking-ofagent is good example
>
> https://github.com/openstack/networking-ofagent/blob/master/networking_ofagent/plugins/ofagent/agent/main.py
>
> Hi all,
> I want to run a ryu application which in it's code has imported a utility
> python library, but ryu manager cannot find this library and returns
> ImportError: No module named...
> I've tried placing library folder everywhere in Ryu folder but this doesn't
> seem to work. How can I fix this? In fact how can I introduce a path to
> Ryu-manager to search into that path too?
>
> Thanks.
>
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Ryu-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ryu-devel
>
>
------------------------------------------------------------------------------
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to