mljar / mljar-supervised

Python package for AutoML on Tabular Data with Feature Engineering, Hyper-Parameters Tuning, Explanations and Automatic Documentation
https://mljar.com
MIT License
3.02k stars 403 forks source link

Cannot import name 'ABCIndexClass' from 'pandas.core.dtypes.generic' #501

Open Dalthirr opened 2 years ago

Dalthirr commented 2 years ago

Hello, unfortunately I cannot properly use MLJar due to some import error after notebook creation. It seems like some imports under the hood are not proper (pandas import throwing exception), the original problem is mentioned in screenshot: image

cannot import name 'ABCIndexClass' from 'pandas.core.dtypes.generic' (C:\Users\sebas\AppData\Roaming\MLJAR-Studio\miniconda\lib\site-packages\pandas\core\dtypes\generic.py)

I've just installed latest MLJar version for Windows (1.0.0), it is fresh and clean, problem occurs during the very first creation of notebook in the tool. It seems like it is a common bug in Pandas (meta class renaming between versions), I could find solution here: https://stackoverflow.com/questions/68704002/importerror-cannot-import-name-abcindexclass-from-pandas-core-dtypes-generic

I was not very insightful about my env as MLJar creates its own miniconda's python distribution. I hope there is a way to omit the problem, I do appreciate whole project, finger crossed for You guys!

pplonski commented 2 years ago

@Dalthirr thank you for reporting the issue! There is a problem with pandas_profiling package. Please try to comment out this package and it should work. Thank you!!!

Dalthirr commented 2 years ago

Of course worked - thank You for fast response, I'm glad with answer :)