You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In setting up mirdata for a new environment, I was unable to run the tests by following the instructions.
In this specific case, I had not installed music21 because it was not listed as a dependency (for tests). The test suite then failed to run:
―――――――――――――― ERROR collecting tests/datasets/test_haydn_op20.py ――――――――――――――
ImportError while importing test module '/home/bmcfee/git/mirdata/tests/datasets/test_haydn_op20.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../../miniconda/envs/py39/lib/python3.9/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/datasets/test_haydn_op20.py:1: in <module>
import music21
E ModuleNotFoundError: No module named 'music21'
Fixing this one, I then ran into the same kind of problem from DALI:
――――――――――――――――――――――――――――――――――――― ERROR collecting tests/datasets/test_dali.py ―――――――――――――――――――――――――――――――――――――
ImportError while importing test module '/home/bmcfee/git/mirdata/tests/datasets/test_dali.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
../../miniconda/envs/py39/lib/python3.9/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/datasets/test_dali.py:1: in <module>
import DALI
E ModuleNotFoundError: No module named 'DALI'
The more general problem here is a disconnect between optional dependencies for individual datasets and those required for tests. Is there a reason to keep these extras_requires out of the tests dependencies? Or is there a way to bypass these cases at test time?
The text was updated successfully, but these errors were encountered:
In setting up mirdata for a new environment, I was unable to run the tests by following the instructions.
In this specific case, I had not installed
music21
because it was not listed as a dependency (for tests). The test suite then failed to run:Fixing this one, I then ran into the same kind of problem from DALI:
The more general problem here is a disconnect between optional dependencies for individual datasets and those required for tests. Is there a reason to keep these extras_requires out of the tests dependencies? Or is there a way to bypass these cases at test time?
The text was updated successfully, but these errors were encountered: