slaypni / fastdtw

A Python implementation of FastDTW
MIT License
793 stars 123 forks source link

Tests fail: No module named 'fastdtw._fastdtw' #23

Open yurivict opened 6 years ago

yurivict commented 6 years ago
================================================================================== ERRORS ===================================================================================
__________________________________________________________________ ERROR collecting tests/test_fastdtw.py ___________________________________________________________________
ImportError while importing test module '/usr/ports/math/py-fastdtw/work-py36/fastdtw-0.3.2/tests/test_fastdtw.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
tests/test_fastdtw.py:10: in <module>
    from fastdtw._fastdtw import fastdtw as fastdtw_c
E   ModuleNotFoundError: No module named 'fastdtw._fastdtw'
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
========================================================================== 1 error in 0.27 seconds ==========================================================================
slaypni commented 6 years ago

Probably cython was not installed when fastdtw was installed. fastdtw._fastdtw is built only when cython is installed.

yurivict commented 6 years ago

/usr/local/lib/python2.7/site-packages/fastdtw/_fastdtw.so is built and installed, and cython is installed too, but tests are still failing.

tanghuanxx commented 11 months ago

@yurivict 解决了吗