Closed zneha closed 6 years ago
Hi @zneha How did you install BioSPPy? How are you importing the module?
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 notifications@github.com 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 https://github.com/PIA-Group/BioSPPy/issues/41#issuecomment-388302318, or mute the thread https://github.com/notifications/unsubscribe-auth/AfCVyX5SFt0lGlFcbz5OLoHVwhNF2Ng7ks5txU_9gaJpZM4T6TQn .
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
.
when i run the ecg.py code under BioSPPy-master/biosppy/signals i get this error, ImportError: cannot import name 'tools'