Closed italovalcy closed 4 years ago
Hi,
When you run Kytos with pathfinder installed by kytos napps install kytos/pathfinder it fails with the following error:
kytos napps install kytos/pathfinder
2020-06-29 17:54:54,855 - ERROR [kytos.napps.kytos/pathfinder] (MainThread) Package networkx>=2.2 not found. Please 'pip install networkx>=2.2' 2020-06-29 17:54:54,856 - CRITICAL [kytos.core.controller] (MainThread) NApp initialization failed: kytos/pathfinder Traceback (most recent call last): File "/usr/local/lib/python3.6/site-packages/kytos/core/controller.py", line 780, in load_napp napp = napp_module.Main(controller=self) File "/usr/local/lib/python3.6/site-packages/kytos/core/napps/base.py", line 192, in __init__ self.setup() File "//var/lib/kytos/napps/kytos/pathfinder/main.py", line 21, in setup self.graph = KytosGraph() File "//var/lib/kytos/napps/../napps/kytos/pathfinder/graph.py", line 17, in __init__ self.graph = nx.Graph() NameError: name 'nx' is not defined
The problem is: networkx is not listed as dependency in requirements/run.in (only for requirements/dev.txt)
Hi,
When you run Kytos with pathfinder installed by
kytos napps install kytos/pathfinder
it fails with the following error:The problem is: networkx is not listed as dependency in requirements/run.in (only for requirements/dev.txt)