tyiannak / pyAudioAnalysis

Python Audio Analysis Library: Feature Extraction, Classification, Segmentation and Applications
Apache License 2.0
5.9k stars 1.2k forks source link

ModuleNotFoundError: No module named 'imblearn' #364

Open qkum opened 2 years ago

qkum commented 2 years ago

python3 script_tests.py

Module 'imblearn' missing from requirements.txt

This may be the fix:

pip install imblearn

qkum commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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