causalml icon indicating copy to clipboard operation
causalml copied to clipboard

binary incompatibility. Expected 352 from C header, got 328 from PyObject

Open CoteDave opened this issue 2 years ago • 3 comments

image

CoteDave avatar Nov 25 '22 16:11 CoteDave

This seems similar to issue #495. I did some digging around and found that it could be related to the underlying Cython implementation. However, I haven't yet found a fix.

t-tte avatar Nov 25 '22 17:11 t-tte

Hi, @CoteDave, It is highly likely that while causalml was installed with cython compiled using one version of sklearn as its dependency, you now have another one installed in your environment. You can:

  • Switch to the correct scikit-learn version <=1.0.2.
  • Reinstall causalml with cython compilation or install the package from source. Please, make sure that scikit-learn<=1.0.2.

alexander-pv avatar Nov 28 '22 02:11 alexander-pv

I met the same issue when importing UpliftTreeClassifier. The sklearn version is 1.0.2

image image

LaisaLI avatar Dec 05 '22 13:12 LaisaLI