TorchDSP / torchsig

TorchSig is an open-source signal processing machine learning toolkit based on the PyTorch data handling pipeline.
MIT License
155 stars 37 forks source link

pytest > collected 125 items / 1 error ; ImportError: cannot import name 'SignalDescription' #241

Open springyworks opened 2 months ago

springyworks commented 2 months ago

Describe the bug

$pytest
...
platform linux -- Python 3.12.3, pytest-8.2.2, pluggy-1.5.0
rootdir: /home/kos/py/torchsig12jun_kos
configfile: pyproject.toml
collected 125 items / 1 error                                                                        
...
 ERROR collecting tests/test_transforms_figures.py __________________________
ImportError while importing test module '/home/kos/py/torchsig12jun_kos/tests/test_transforms_figures.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/__init__.py:90: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
test_transforms_figures.py:3: in <module>
    from torchsig.utils.types import SignalData, SignalDescription
E   ImportError: cannot import name 'SignalDescription' from 'torchsig.utils.types' (/home/kos/py/torchsig12jun_kos/torchsig/utils/types.py)

Expected behavior no errors , no warnings (pytest)

Desktop (please complete the following information): vscode on WSL2