PIA-Group/BioSPPy

ImportError: cannot import name 'tools'

zneha opened this issue · 3 comments

zneha commented

when i run the ecg.py code under BioSPPy-master/biosppy/signals i get this error, ImportError: cannot import name 'tools'

Hi @zneha
How did you install BioSPPy? How are you importing the module?

zneha commented

You are probably trying to import the module from within the package, which uses relative imports.
Try to call python setup.py install from the repo's root folder (where the setup.py file is) and then importing the module with from biosppy.signals import ecg.