mljar / studio-old

MLJAR Studio Desktop Application
https://mljar.com
4 stars 1 forks source link

ImportError: name 'ABCIndexClass' from 'pandas.core.dtypes.generic' #74

Closed madpower2000 closed 2 years ago

madpower2000 commented 2 years ago

Fresh installation from MLJAR-Studio-Setup-1.0.0.exe on Windows 10 Pro 21H1.

import numpy as np
import pandas as pd
from sklearn.model_selection import train_test_split
from pandas_profiling import ProfileReport
from supervised import AutoML

After creating new notebook got ImportError: cannot import name 'ABCIndexClass' from 'pandas.core.dtypes.generic' (C:\Users\...\AppData\Roaming\MLJAR-Studio\miniconda\lib\site-packages\pandas\core\dtypes\generic.py)

image

pplonski commented 2 years ago

Sorry about the problem.

I've searched a little and looks like a problem similar to this one https://stackoverflow.com/questions/68704002/importerror-cannot-import-name-abcindexclass-from-pandas-core-dtypes-generic

Please try comment # from pandas_profiling import ProfileReport and then click Run button. It will not import pandas_profiling package which is causing a problem.

Next solution might be trying to downgrade pandas to 1.2.5. Please run in the new Python cell:

conda install -c conda-forge pandas=1.2.5 -y
madpower2000 commented 2 years ago

Yes, after edititng file "~/[your_conda_env_path]/lib/site-packages/visions/dtypes/boolean.py" as was sugested stackoverflow.com, the import problem was fixed. But I was hoping the product would work right after installation, without the need for voodoo spells....

pplonski commented 2 years ago

I will fix this for next release, so it will work out of the box.

Padmanaabhah commented 2 years ago

How do we fix this in colab. any help

pplonski commented 2 years ago

@Padmanaabhah are you trying to use pandas profiling?

Padmanaabhah commented 2 years ago

@Padmanaabhah are you trying to use pandas profiling?

Yes im using Pandas profiling in Google colab.

pplonski commented 2 years ago

Please try to downgrade or upgrade pandas profiling package

Padmanaabhah commented 2 years ago

Please to downgrade or upgrade pandas profiling package

to what version please

pplonski commented 2 years ago

You need to check that yourself in their github repo. It is an issue with pandas profiling not studio.

aksweb commented 1 year ago

Please to downgrade or upgrade pandas profiling package

to what version please

How do we fix this in colab. any help

hey, did you able to solve it on colab?