cdt15 / lingam

Python package for causal discovery based on LiNGAM.
https://sites.google.com/view/sshimizu06/lingam
MIT License
356 stars 54 forks source link

AttributeError during import #125

Open adallak opened 5 months ago

adallak commented 5 months ago

Hello, I have installed lingam 1.6.0, and when I attempt to import it, I consistently encounter the error AttributeError: module 'numpy' has no attribute 'MachAr'. It appears that the error arises when lingam attempts to import VAR from statsmodels.tsa.vector_ar.var_model.

I have attempted to resolve the issue by changing the version of 'numpy,' but unfortunately, I was unable to eliminate the error. Thank you.

haraoka-screen commented 5 months ago

Older versions of statsmodels seem to have used np.MachAr. Please upgrade statsmodels and lingam.

haraoka-screen commented 5 months ago

This problem seems to be fixed in 0.14. https://github.com/statsmodels/statsmodels/pull/7832