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'
zneha commented
I cloned the project onto the system and when i run the code, it gives me
the import error.
…On Fri, May 11, 2018 at 4:46 AM Carlos Carreiras ***@***.***> wrote:
Hi @zneha <https://github.com/zneha>
How did you install BioSPPy? How are you importing the module?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#41 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AfCVyX5SFt0lGlFcbz5OLoHVwhNF2Ng7ks5txU_9gaJpZM4T6TQn>
.
capcarr 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
.