When you run pytest tests/sig, you get the following error using the dev environment:
============================= test session starts ==============================
platform linux -- Python 3.6.7, pytest-4.1.0, py-1.7.0, pluggy-0.8.0
rootdir: /home/msm/software/pyaudlib, inifile:
collected 3 items / 2 errors
==================================== ERRORS ====================================
__________________ ERROR collecting tests/sig/test_fbanks.py ___________________
ImportError while importing test module '/home/msm/software/pyaudlib/tests/sig/test_fbanks.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/sig/test_fbanks.py:3: in <module>
from audlib.plot import cepline
audlib/plot.py:2: in <module>
import matplotlib.pyplot as plt
../../.local/share/virtualenvs/pyaudlib-TmRgQn6t/lib/python3.6/site-packages/matplotlib/pyplot.py:2374: in <module>
switch_backend(rcParams["backend"])
../../.local/share/virtualenvs/pyaudlib-TmRgQn6t/lib/python3.6/site-packages/matplotlib/pyplot.py:207: in switch_backend
backend_mod = importlib.import_module(backend_name)
../../.local/share/virtualenvs/pyaudlib-TmRgQn6t/lib/python3.6/importlib/__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
../../.local/share/virtualenvs/pyaudlib-TmRgQn6t/lib/python3.6/site-packages/matplotlib/backends/backend_tkagg.py:1: in <module>
from . import _backend_tk
../../.local/share/virtualenvs/pyaudlib-TmRgQn6t/lib/python3.6/site-packages/matplotlib/backends/_backend_tk.py:5: in <module>
import tkinter as Tk
E ModuleNotFoundError: No module named 'tkinter'
_________________ ERROR collecting tests/sig/test_transform.py _________________
ImportError while importing test module '/home/msm/software/pyaudlib/tests/sig/test_transform.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/sig/test_transform.py:8: in <module>
from audlib.plot import cepline
audlib/plot.py:2: in <module>
import matplotlib.pyplot as plt
../../.local/share/virtualenvs/pyaudlib-TmRgQn6t/lib/python3.6/site-packages/matplotlib/pyplot.py:2374: in <module>
switch_backend(rcParams["backend"])
../../.local/share/virtualenvs/pyaudlib-TmRgQn6t/lib/python3.6/site-packages/matplotlib/pyplot.py:207: in switch_backend
backend_mod = importlib.import_module(backend_name)
../../.local/share/virtualenvs/pyaudlib-TmRgQn6t/lib/python3.6/importlib/__init__.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
../../.local/share/virtualenvs/pyaudlib-TmRgQn6t/lib/python3.6/site-packages/matplotlib/backends/backend_tkagg.py:1: in <module>
from . import _backend_tk
../../.local/share/virtualenvs/pyaudlib-TmRgQn6t/lib/python3.6/site-packages/matplotlib/backends/_backend_tk.py:5: in <module>
import tkinter as Tk
E ModuleNotFoundError: No module named 'tkinter'
!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!!
=========================== 2 error in 13.05 seconds ===========================
This is happening because we are missing one of the requirements called tkinter which is the "default" GUI library in Python.
I will make sure to follow up on this issue with a fix. 👍👍
Hey everyone,
When you run
pytest tests/sig
, you get the following error using thedev
environment:This is happening because we are missing one of the requirements called
tkinter
which is the "default" GUI library in Python.I will make sure to follow up on this issue with a fix. 👍👍