caldera_pathfinder icon indicating copy to clipboard operation
caldera_pathfinder copied to clipboard

error importing plugin=pathfinder, no module named 'networkx'

Open blockanz opened this issue 2 years ago • 3 comments

Trying to use the pathfinder plugin with Caldera Docker image and getting the error:

error importing plugin=pathfinder, no module named 'networkx'

Have correctly cloned repository into caldera/plugins/pathfinder

ran pip3 install -r requirements.txt in caldera/plugins/pathfinder subdir

Rebuilt docker caldera docker image but still getting the above.

Anyone have any ideas?

Thanks

blockanz avatar May 29 '22 20:05 blockanz

Hey @blockanz - when you build the docker image, are you seeing output that the networkx package is actually being installed successfully?

elegantmoose avatar May 30 '22 14:05 elegantmoose

@elegantmoose I have just re-run the docker build and cannot find anything relating to networkx package at all. I'm not convinced it is being installed as part of the build (at least I can see no evidence to suggest it is).

blockanz avatar May 30 '22 19:05 blockanz

@blockanz Sorry I have not had time to investigate further but can you try adding networkx to the Caldera requirements.txt file and then rebuilding the docker image?

elegantmoose avatar Jun 01 '22 18:06 elegantmoose

I noticed networkx is now included in requirements.txt, and I just added a line to the installation instructions to pip install the requirements.

mehaase avatar Nov 17 '22 16:11 mehaase