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

ModuleNotFoundError: No module named 'imblearn' #364

Open
qkum opened this issue Jan 25, 2022 · 5 comments
Open

ModuleNotFoundError: No module named 'imblearn' #364

qkum opened this issue Jan 25, 2022 · 5 comments

Comments

@qkum
Copy link

qkum commented Jan 25, 2022

python3 script_tests.py

Module 'imblearn' missing from requirements.txt

This may be the fix:

pip install imblearn

@qkum
Copy link
Author

qkum commented Jan 25, 2022

That leads to this problem:

Successfully installed imbalanced-learn-0.9.0 imblearn-0.0 scikit-learn-1.0.2

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. pyaudioanalysis 0.3.7 requires scikit_learn==0.23.2, but you have scikit-learn 1.0.2 which is incompatible.

Will be fun to see if it will work like this.

@qkum
Copy link
Author

qkum commented Jan 25, 2022

python3 script_tests.py

Outputs:
FileNotFoundError: [Errno 2] No such file or directory: '/Users/tyiannak/ResearchData/Audio Dataset/pyAudioAnalysisData/pyAudioAnalysis/data/count.wav'

The path has to be changed to the one of your local machine.
root_data_path = "/Users/tyiannak/ResearchData/Audio Dataset/pyAudioAnalysisData/"
Something like this:
root_data_path = "/home/YourPcName/pyAudioAnalysis/

In the file named script_tests.py line 12, in the tests folder.

@qkum
Copy link
Author

qkum commented Jan 25, 2022

New error after test 6:
FileNotFoundError: [Errno 2] No such file or directory: '/home/xxx/pyAudioAnalysis/radioFinal/train/bbc4A.segments'

This folder is not even part of the respiratory any longer.
/radioFinal/

Solution:
Comment out the 'TEST 6' code, in 'script_tests.py, starting at line 36

@qkum
Copy link
Author

qkum commented Jan 25, 2022

Seems all tests except 6 passed.

Got this "Deprecated" warning all the time though:
np.matrix usage is deprecated in 1.0 and will raise a TypeError in 1.2. Please convert to a numpy array with np.asarray. For more information see: https://numpy.org/doc/stable/reference/generated/numpy.matrix.html

@tyiannak
Copy link
Owner

please check the latest commit. Requirements.txt has been updated with imblearn and np.matrix has been replaced

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