Code Monkey home page Code Monkey logo

Comments (10)

rsokl avatar rsokl commented on June 9, 2024 1

Awesome :) Hope you enjoy mygrad!

from mygrad.

rsokl avatar rsokl commented on June 9, 2024

Documented here: conda-forge/graphviz-feedstock#43

from mygrad.

Nikhilkohli1 avatar Nikhilkohli1 commented on June 9, 2024

Hi, I am getting this error while running this. Can you please take a look?

CalledProcessError: Command '['dot', '-Tpng', '-O', 'simple_diagram']' returned non-zero exit status 1. [stderr: b'Format: "png" not recognized. Use one of:\r\n']

from mygrad.

rsokl avatar rsokl commented on June 9, 2024

I am not familiar with this issue, but it looks like your supported "devices" available in graphviz is empty. How did you install graphviz?

Perhaps this thread is relevant to you.

@petarmhg have you seen this?

from mygrad.

Nikhilkohli1 avatar Nikhilkohli1 commented on June 9, 2024

Okay, thanks for your quick response.

I installed graphviz in windows using below cmd -

conda install -c conda-forge graphviz xorg-libxrender xorg-libxpm
pip install graphviz

I will check the threat provided by you. Thanks

from mygrad.

rsokl avatar rsokl commented on June 9, 2024

I think that there might be an issue with you installing graphviz twice - once with conda and once with pip. I suspect that your pip-installed graphviz is the culprit here.

It should be sufficient to run

conda install graphviz
conda install python-graphviz

from mygrad.

Nikhilkohli1 avatar Nikhilkohli1 commented on June 9, 2024

Okay, Let me uninstall it and re-run this

from mygrad.

Nikhilkohli1 avatar Nikhilkohli1 commented on June 9, 2024

That worked like a charm. Thanks a lot!

from mygrad.

petarmhg avatar petarmhg commented on June 9, 2024

@rsokl just for future reference: I believe you're right about the installing graphviz twice. conda install python-graphviz and pip install graphviz will install the same python bindings for graphviz, while conda install graphviz installs the graphviz software itself. Using both conda install graphviz and pip install graphviz (I assume) leads to some naming conflicts.

If using pip install graphviz to install the python bindings, then graphviz itself would need to be installed via one of these

from mygrad.

rsokl avatar rsokl commented on June 9, 2024

(reopening because this is useful to reference)

from mygrad.

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.