Git Product home page Git Product logo

Comments (9)

amit-sharma avatar amit-sharma commented on May 29, 2024 1

Thanks for pointing this out.
DoWhy depends on Pygraphviz for visualization and unfortunately there seems to be a problem in Pygraphviz for Python 3.7. I'm considering moving away from this dependency, allow me a few days to fix this.

from dowhy.

cpoptic avatar cpoptic commented on May 29, 2024

This issue applies also to Python 3.6.6 (on a Windows 10, 64 env). It appears to be a Pygraphviz installation issue.

from dowhy.

amit-sharma avatar amit-sharma commented on May 29, 2024

I removed the dependency on pygraphviz, making it optional. If pygraphviz is not installed, the library falls back to matplotlib and plots causal graph using it. @vnnw @cpoptic can you check if it works for you?

from dowhy.

cpoptic avatar cpoptic commented on May 29, 2024

just did a git pull and pip install -U dowhy and I'm still getting the same result on Python 3.6

import dowhy works with no problems. But when I run from dowhy.do_why import Causal Model it get an error:

ModuleNotFoundError: No module named 'pygraphviz'

So it appears the dowhy package imports fine, but the do_why module is still dependent on pygraphviz.

from dowhy.

amit-sharma avatar amit-sharma commented on May 29, 2024

Thanks @cpoptic Not sure why it still shows an error. I did check with python 3.6 in a virtualenv and it worked.

Maybe an earlier install of dowhy is still being called? To make sure, can you try the following code which relies on the source distribution only (and does not use pip)?

[Run this code from the root directory of dowhy]
`import os, sys
sys.path.append(os.path.abspath("./"))
import numpy as np
import pandas as pd

import dowhy
from dowhy.do_why import CausalModel`

from dowhy.

impredicative avatar impredicative commented on May 29, 2024

Any formal update? Is 3.7 fully supported now?

from dowhy.

amit-sharma avatar amit-sharma commented on May 29, 2024

@impredicative Yes, it should work in 3.7. Let me know if you face any problems.

from dowhy.

akelleh avatar akelleh commented on May 29, 2024

@amit-sharma two weeks with no problem reported -- safe to close?

from dowhy.

amit-sharma avatar amit-sharma commented on May 29, 2024

yes, closing it now. @impredicative if you face any problems with 3.7, let us know.

from dowhy.

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.