Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: cannot import name 'available_if' from 'sklearn.utils.metaestimators' #373

Open
jochou02 opened this issue Jun 16, 2022 · 1 comment

Comments

@jochou02
Copy link

Running the line from pyAudioAnalysis import audioSegmentation as aS gives this error in my terminal

Traceback (most recent call last):
File "C:\Users\John\Desktop\pyAudioAnalysis\test.py", line 1, in
from pyAudioAnalysis import audioSegmentation as aS
File "C:\Users\John\Desktop\pyAudioAnalysis\pyAudioAnalysis\audioSegmentation.py", line 19, in
import pyAudioAnalysis.audioTrainTest as at
File "C:\Users\John\Desktop\pyAudioAnalysis\pyAudioAnalysis\audioTrainTest.py", line 2, in
from imblearn.under_sampling import RandomUnderSampler
File "C:\Users\John\AppData\Local\Programs\Python\Python39\lib\site-packages\imblearn_init_.py", line 53, in
from . import ensemble
File "C:\Users\John\AppData\Local\Programs\Python\Python39\lib\site-packages\imblearn\ensemble_init_.py", line 6, in
from ._easy_ensemble import EasyEnsembleClassifier
File "C:\Users\John\AppData\Local\Programs\Python\Python39\lib\site-packages\imblearn\ensemble_easy_ensemble.py", line 21, in
from ..pipeline import Pipeline
File "C:\Users\John\AppData\Local\Programs\Python\Python39\lib\site-packages\imblearn\pipeline.py", line 18, in
from sklearn.utils.metaestimators import available_if
ImportError: cannot import name 'available_if' from 'sklearn.utils.metaestimators' (C:\Users\John\AppData\Local\Programs\Python\Python39\lib\site-packages\sklearn\utils\metaestimators.py)

@ShailendraSatyarthi
Copy link

ImportError: cannot import name 'available_if' from 'sklearn.utils.metaestimators' (C:\Users\Dell\anaconda3\lib\site-packages\sklearn\utils\metaestimators.py)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants