errors while running pytests .\test
cokemhlee opened this issue · comments
cokemhlee commented
❓ Questions and Help
I successfully installed mmf according to the installation document.
conda create -n mmf python=3.7
conda activate mmf
git clone https://github.com/facebookresearch/mmf.git
cd mmf
pip install --editable .
but, in test step, I got below error messages.
I goggled about libcudart.so and found out that it has to do with torchaudio.
As reqirement.txt, my torchaudio version is 0.11.0.
Anyone who knows to solve this problem?
Thank you very much.
Minho
$ pytest ./tests/
ImportError while loading conftest '/home/mhlee/mmf/tests/conftest.py'.
tests/__init__.py:2: in <module>
from mmf.utils.patch import patch_transformers
mmf/__init__.py:6: in <module>
patch_transformers()
mmf/utils/patch.py:65: in patch_transformers
f"transformers.models.{key}.{module}"
../.local/lib/python3.7/site-packages/transformers/models/speech_to_text/feature_extraction_speech_to_text.py:23: in <module>
import torchaudio.compliance.kaldi as ta_kaldi
../.local/lib/python3.7/site-packages/torchaudio/__init__.py:1: in <module>
from torchaudio import _extension # noqa: F401
../.local/lib/python3.7/site-packages/torchaudio/_extension.py:67: in <module>
_init_extension()
../.local/lib/python3.7/site-packages/torchaudio/_extension.py:61: in _init_extension
_load_lib("libtorchaudio")
../.local/lib/python3.7/site-packages/torchaudio/_extension.py:51: in _load_lib
torch.ops.load_library(path)
../.local/lib/python3.7/site-packages/torch/_ops.py:220: in load_library
ctypes.CDLL(path)
/home/master/anaconda3/envs/mmf/lib/python3.7/ctypes/__init__.py:364: in __init__
self._handle = _dlopen(self._name, mode)
E OSError: libcudart.so.10.2: cannot open shared object file: No such file or directory
ankitade commented
should be fixed now