Code Monkey home page Code Monkey logo

Comments (8)

rodriguesk avatar rodriguesk commented on June 23, 2024 1

You don't need pygraphviz to run the app. I suggest looking back to an earlier versions of the repo before visualize.py was added to the knowledge_graph folder.

@ppython I'm thinking it might be good to move the visualize script to a different repo, one that's internal only, especially since the visualize.py script isn't going to be run by the app.

from climatemind-backend.

rodriguesk avatar rodriguesk commented on June 23, 2024

@biotom if you do want to install graphviz and you have a mac, then follow these directions to fix the dependency issue:

I had issues getting pip install pygraphviz to work on my mac. I had to download pygraphviz from the zip file on their website, then unzip and include the special arguments in the install command to include the proper path to Graphviz installed on my mac.

For mac, after installing Graphviz, to install pygraphivz providing path to graphviz (from the install documentation for pygraphviz):

We tried our best to discover graphviz location automatically, but if you
would like specify specific location for graphviz you may provide additional parameters to specify graphviz location in the setup.py file in the zip or tar file.
include-path= path to graphviz include files
library-path= path to graphviz library files
For example
::
python setup.py install --include-path=/usr/local/Cellar/graphviz/2.38.0/include/graphviz --library-path=/usr/local/Cellar/graphviz/2.38.0/lib

Note that Graphviz is different than the pygraphviz python package. Graphviz is separate software that can be downloaded if you have a mac and have homebrew by doing brew install graphviz. If you have a PC try to follow the instructions here to get pygraphviz and Graphviz working.

from climatemind-backend.

rodriguesk avatar rodriguesk commented on June 23, 2024

@biotom Try using this state of the repo to work off of for Swagger:
b8d8b3a#diff-d7b6a4b835cd70aa17e6993900a57dbe

from climatemind-backend.

biotom avatar biotom commented on June 23, 2024

Thanks, after brew install graphviz, it worked! However, I'm now getting ModuleNotFoundError: No module named 'pandas' when I try and do flask run... @rolandoldengarm is it worth dockerising this now?

from climatemind-backend.

rodriguesk avatar rodriguesk commented on June 23, 2024

from climatemind-backend.

biotom avatar biotom commented on June 23, 2024

Yes, I've done this- and so has pip install -r requirements.txt

from climatemind-backend.

rodriguesk avatar rodriguesk commented on June 23, 2024

from climatemind-backend.

biotom avatar biotom commented on June 23, 2024

With the docker container developments, and the fact that installing graphviz fixed this, I think we can close this issue.

from climatemind-backend.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.