-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
from construe.utils.signal_processing.dtw import dtw_std threw the below error.
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
Cell In[4], line 1
----> 1 from construe.utils.signal_processing.dtw import dtw_std
File ~/.../construe/construe/utils/signal_processing/dtw/__init__.py:12
1 # -*- coding: utf-8 -*-
2 """
3
4 This package simply is an import of the code in the mlpy library related to
(...) 9 @author: T. Teijeiro
10 """
---> 12 from .dtw import dtw_std, dtw_subsequence
ImportError: dlopen(/Users/.../construe/construe/utils/signal_processing/dtw/dtw.so, 0x0002): tried: '/Users/.../construe/construe/utils/signal_processing/dtw/dtw.so' (not a mach-o file), '/System/.../construe/construe/utils/signal_processing/dtw/dtw.so' (no such file), '/Users/.../construe/construe/utils/signal_processing/dtw/dtw.so' (not a mach-o file)
Which is most likely due to change in architecture. After compilation using cython as suggested, this error is resolved but now can't get from construe.knowledge.abstraction_patterns.segmentation.pwave import (delineate_pwave) to work.
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
Cell In[14], line 1
----> 1 from construe.knowledge.abstraction_patterns.segmentation.pwave import (delineate_pwave)
File ~/.../construe/construe/knowledge/abstraction_patterns/segmentation/pwave.py:358
355 _localdir = Path(__file__).resolve().parent
357 with _localdir.joinpath('limb_pw_classifier.pickle').open('rb') as f:
--> 358 _LIMB_CLS = pickle.load(f, encoding='latin1')
359 #Fix for scikit-learn >= 0.22
360 _LIMB_CLS._n_support = _LIMB_CLS.__dict__['n_support_']
ModuleNotFoundError: No module named 'sklearn.svm.classes'
scikit-learn=0.22.1 won't get installed due to scipy dependency. Please suggest.
Metadata
Metadata
Assignees
Labels
No labels