uber / causalml

Uplift modeling and causal inference with machine learning algorithms
Other
4.87k stars 756 forks source link

`pytest -vs \tests\ -cov \causalml\` fails on windows #718

Closed ras44 closed 7 months ago

ras44 commented 7 months ago

Describe the bug Running pytest -vs \tests\ -cov \causalml\ fails on windows within a conda env that is set up following README.md

To Reproduce Follow installation instructions in README.md on windows in a conda environment working in anaconda powershell prompt, ie:

git clone https://github.com/uber/causalml.git
cd causalml
pip install .
python setup.py build_ext --inplace

then run pytest -vs .\tests\ -cov .\causalml\ and receive an error:

 ModuleNotFoundError: No module named 'causalml.inference.tree._tree._tree'

Expected behavior successful tests

Screenshots image

Environment (please complete the following information):

Additional context N/A

ras44 commented 7 months ago

closing as this now runs without failing, but unsure what fixed it:

image