lingam icon indicating copy to clipboard operation
lingam copied to clipboard

AttributeError during import

Open adallak opened this issue 1 year ago • 2 comments

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.

adallak avatar Feb 01 '24 04:02 adallak

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

haraoka-screen avatar Feb 02 '24 09:02 haraoka-screen

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

haraoka-screen avatar Feb 02 '24 09:02 haraoka-screen