hlin117 / mdlp-discretization

An implementation of the minimum description length principal expert binning algorithm by Usama Fayyad
BSD 3-Clause "New" or "Revised" License
103 stars 54 forks source link

ModuleNotFoundError: No module named 'mdlp._mdlp' #37

Open NeilChangYanpeng opened 3 years ago

NeilChangYanpeng commented 3 years ago

Hello,Henry, I installed the package and ran the example code following the README.md

image

Then I got this error:

`D:\Anaconda3\envs\cdt\python.exe "E:/causal_discovery/minimum description length/mdlp-discretization-master/demo/demo.py" Traceback (most recent call last): File "E:/causal_discovery/minimum description length/mdlp-discretization-master/demo/demo.py", line 1, in from mdlp.discretization import MDLP File "E:\causal_discovery\minimum description length\mdlp-discretization-master\mdlp\discretization.py", line 17, in from mdlp._mdlp import MDLPDiscretize ModuleNotFoundError: No module named 'mdlp._mdlp'

Process finished with exit code 1`

Can you give me some help? Thank you.

martino-vic commented 3 years ago

Same, windows 10, python 3.9, jupyter lab

Screenshot (826)

I followed these instructions: https://stackoverflow.com/questions/7508803/how-do-i-import-function-from-pyx-file-in-python Now I get this error:

ImportError: Building module mdlp._mdlp failed: ["distutils.errors.CompileError: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.28.29333\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2\n"]

Some promising workaround: https://github.com/sammchardy/python-binance/issues/148

80070003 commented 2 years ago

Same question, did anybody solved it?

elisammz commented 8 months ago

Same problem. Did any get a solution? Python 3.8.18, MacOs