-
Notifications
You must be signed in to change notification settings - Fork 223
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
Errors in running unit test after development installation #408
Comments
Oh, I got it. I search "OSError: sndfile library not found" and execute the following command: and it works well with some warnings as follows: ========== test session starts ========== test/test_audio_url.py s [ 0%] ============= warnings summary ========= test/test_feature_set.py::test_feature_extractor[mfcc-exception_expectation0] test/test_serialization.py: 1 test with warning test/cut/test_cut_set.py::test_cut_set_describe_runs test/dataset/test_sampling.py::test_single_cut_sampler_low_max_frames test/dataset/test_sampling.py::test_bucketing_sampler_single_cuts_equal_duration test/dataset/test_sampling.py::test_single_cut_sampler_with_lazy_cuts[BucketingSampler] -- Docs: https://docs.pytest.org/en/latest/warnings.html |
The warnings are expected. I think you’re good to go. |
@pzelasko Thank you, I'll close this issue. |
Hello, I installed lhotse from github (development installation) as follows:
https://lhotse.readthedocs.io/en/latest/getting-started.html#installation
but I got 3 errors from
pytest test
as follows:======== test session starts ==============[79/279]
platform linux -- Python 3.6.9, pytest-5.4.3, py-1.10.0, pluggy-0.13.1
rootdir: /scl_nas/lhotse
plugins: hypothesis-5.41.2
collected 779 items / 3 errors / 776 selected
========= ERRORS========
_________________ ERROR collecting test/test_feature_set.py ____________________________
test/test_feature_set.py:7: in
import torchaudio
/usr/local/lib/python3.6/dist-packages/torchaudio/init.py:14: in
from torchaudio.backend import (
/usr/local/lib/python3.6/dist-packages/torchaudio/backend/init.py:1: in
from . import utils
/usr/local/lib/python3.6/dist-packages/torchaudio/backend/utils.py:7: in
from . import (
/usr/local/lib/python3.6/dist-packages/torchaudio/backend/soundfile_backend.py:15: in
import soundfile
/usr/local/lib/python3.6/dist-packages/soundfile.py:142: in
raise OSError('sndfile library not found')
E OSError: sndfile library not found
____________ ERROR collecting test/augmentation/test_torchaudio.py ________________________________________
test/augmentation/test_torchaudio.py:9: in
torchaudio = pytest.importorskip('torchaudio', minversion='0.6')
/usr/local/lib/python3.6/dist-packages/torchaudio/init.py:14: in
from torchaudio.backend import (
/usr/local/lib/python3.6/dist-packages/torchaudio/backend/init.py:1: in
from . import utils
/usr/local/lib/python3.6/dist-packages/torchaudio/backend/utils.py:7: in
from . import (
/usr/local/lib/python3.6/dist-packages/torchaudio/backend/soundfile_backend.py:15: in
import soundfile
/usr/local/lib/python3.6/dist-packages/soundfile.py:142: in
raise OSError('sndfile library not found')
E OSError: sndfile library not found
___________________ ERROR collecting test/known_issues/test_augment_with_executor.py ___________________
test/known_issues/test_augment_with_executor.py:12: in
torchaudio = pytest.importorskip('torchaudio', minversion='0.7.1')
/usr/local/lib/python3.6/dist-packages/torchaudio/init.py:14: in
from torchaudio.backend import (
/usr/local/lib/python3.6/dist-packages/torchaudio/backend/init.py:1: in
from . import utils
/usr/local/lib/python3.6/dist-packages/torchaudio/backend/utils.py:7: in
from . import (
/usr/local/lib/python3.6/dist-packages/torchaudio/backend/soundfile_backend.py:15: in
import soundfile
/usr/local/lib/python3.6/dist-packages/soundfile.py:142: in
raise OSError('sndfile library not found')
E OSError: sndfile library not found
=========== warnings summary ============
lhotse/recipes/heroico.py:81
/scl_nas/lhotse/lhotse/recipes/heroico.py:81: DeprecationWarning: invalid escape sequence \d
answers_line_pattern = re.compile("\d+/\d+\t.+")
lhotse/recipes/heroico.py:83
/scl_nas/lhotse/lhotse/recipes/heroico.py:83: DeprecationWarning: invalid escape sequence \d
heroico_recitations_line_pattern = re.compile("\d+\t.+")
lhotse/recipes/heroico.py:86
/scl_nas/lhotse/lhotse/recipes/heroico.py:86: DeprecationWarning: invalid escape sequence \d
usma_line_pattern = re.compile("s\d+\t.+")
lhotse/recipes/heroico.py:87
/scl_nas/lhotse/lhotse/recipes/heroico.py:87: DeprecationWarning: invalid escape sequence -
usma_native_demo_pattern = re.compile("usma/native-[fm]-\w+-\S+-\S+-\S+-\S+-\w+\d+")
lhotse/recipes/heroico.py:89
/scl_nas/lhotse/lhotse/recipes/heroico.py:89: DeprecationWarning: invalid escape sequence \d
usma_native_prompt_id_pattern = re.compile('s\d+')
lhotse/recipes/heroico.py:91
/scl_nas/lhotse/lhotse/recipes/heroico.py:91: DeprecationWarning: invalid escape sequence -
"nonnative-[fm]-[a-zA-Z]+\d*-[a-zA-Z]+-[a-zA-Z]+-[a-zA-Z]+-[a-zA-Z]+-[a-zA-Z]+\d+")
lhotse/recipes/heroico.py:92
/scl_nas/lhotse/lhotse/recipes/heroico.py:92: DeprecationWarning: invalid escape sequence .
usma_nonnative_path_pattern = re.compile('nonnative.+.wav')
-- Docs: https://docs.pytest.org/en/latest/warnings.html
====== short test summary info =======
ERROR test/test_feature_set.py - OSError: sndfile library not found
ERROR test/augmentation/test_torchaudio.py - OSError: sndfile library not found
ERROR test/known_issues/test_augment_with_executor.py - OSError: sndfile library not found
!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 3 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
=========== 7 warnings, 3 errors in 4.34s ==============
To resolve this errors, we consider re-installation of Torchaudio with higher version than 0.7.2?
because version of Torchaudio is 0.7.2.
Other environment is as follows:
Ubuntu OS version: 18.04.5 LTS
Python version: 3.6.9
Cuda version: 11.0
Torch version: 1.7.1+cu110
Torchvision version: torchvision-0.8.2+cu110
The text was updated successfully, but these errors were encountered: