Discussion:
[Ryu-devel] Use "from ryu.base" in Eclipse/PyDev
Scott Reeve
2017-07-21 16:12:15 UTC
Permalink
Trying to import the ofctl_rest.py code into Eclipse.
All looks good, but cannot import the ryu objects:


The following lines of code:



from ryu.base import app_manager
from ryu.controller import ofp_event


All have a red x to the left and the tool tip is: "Unresolved import: app_manager" or "Unresolved import: ofp_event" ... etc.


Probably a PyDev - PYTHONPATH setting, and I might have to pull in an External Library.
But any suggestions would be welcome.
Iwase Yusuke
2017-07-24 07:45:50 UTC
Permalink
Hi,

On my environment, I newly installed Eclipse Oxygen + PyDev 5.8.0, I could import Ryu modules
successfully without additional PYTHONPATH settings.

FYI, I have already cloned Ryu sources into local directory, so I open it with Eclipse.

Thanks,
Iwase
Post by Scott Reeve
Trying to import the ofctl_rest.py code into Eclipse.
from ryu.base import app_manager
from ryu.controller import ofp_event
All have a red x to the left and the tool tip is: "Unresolved import: app_manager" or "Unresolved
import: ofp_event" ... etc.
Probably a PyDev - PYTHONPATH setting, and I might have to pull in an External Library.
But any suggestions would be welcome.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
https://lists.sourceforge.net/lists/listinfo/ryu-devel
Loading...