kytos / pathfinder

Kytos main path finder Network Application (NApp)
https://napps.kytos.io/kytos/pathfinder
MIT License
1 stars 21 forks source link

Update requirements/run.in to include networkx #59

Closed italovalcy closed 4 years ago

italovalcy commented 4 years ago

Hi,

When you run Kytos with pathfinder installed by kytos napps install kytos/pathfinder it fails with the following error:

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)