Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import issue of latest version 1.1.7 #11

Closed
RidwanAlam opened this issue Mar 30, 2021 · 6 comments
Closed

import issue of latest version 1.1.7 #11

RidwanAlam opened this issue Mar 30, 2021 · 6 comments

Comments

@RidwanAlam
Copy link

  • Python port of R's Comprehensive Dynamic Time Warp algorithm package version: 1.1.7
  • Python version: 3.8
  • Operating System: Ubuntu

Description

import crashing

What I Did

> import dtw

---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-4-516d6c3d3d57> in <module>
----> 1 import dtw

/usr/local/lib/python3.8/dist-packages/dtw/__init__.py in <module>
     15 
     16 # List of things to export on "from dtw import *"
---> 17 from dtw.dtw import *
     18 from dtw.stepPattern import *
     19 from dtw.countPaths import *

/usr/local/lib/python3.8/dist-packages/dtw/dtw.py in <module>
     34 from dtw.stepPattern import *
     35 from dtw._backtrack import _backtrack
---> 36 from dtw._globalCostMatrix import _globalCostMatrix
     37 from dtw.window import *
     38 from dtw.dtwPlot import *

/usr/local/lib/python3.8/dist-packages/dtw/_globalCostMatrix.py in <module>
      1 import numpy
      2 from dtw.window import noWindow
----> 3 from dtw._dtw_utils import _computeCM_wrapper
      4 
      5 

/usr/local/lib/python3.8/dist-packages/dtw/_dtw_utils.pyx in init dtw._dtw_utils()

ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 88 from C header, got 80 from PyObject

@tonigi
Copy link
Collaborator

tonigi commented Mar 30, 2021

Ouch. Conda or pip?

@RidwanAlam
Copy link
Author

pip

@tonigi
Copy link
Collaborator

tonigi commented Mar 30, 2021

Does it work with "pip --no-binary" ? Alternatively, try conda.

@RidwanAlam
Copy link
Author

oh, so maybe a numpy issue, then. thanks!

@tonigi
Copy link
Collaborator

tonigi commented Mar 30, 2021

Yes. The question is if it was common or specific to your system. Closing in the meantime.

@tonigi tonigi closed this as completed Mar 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants