Skip to content

ChipWhisperer installation - error compiling Cython file #543

@Flybro

Description

@Flybro

To install the ChipWhisperer software on Linux platform, I followed the instructions at https://chipwhisperer.readthedocs.io/en/latest/linux-install.html. But, when running the command:

python3 -m pip install -e .

Python error occured:

Error compiling Cython file

import numpy as np
  try:
    from libc.math cimport INFINITY
  except:
    from numpy.math cimport INFINITY
    ^
  ------------------------------------------------------------
  
  fastdtw/_fastdtw.pyx:17:2: 'numpy/math.pxd' not found
  
  Error compiling Cython file:
  ------------------------------------------------------------
  import numpy as np
  
  try:
    from libc.math cimport INFINITY
  except:
    from numpy.math cimport INFINITY
    ^
  ------------------------------------------------------------
  
  fastdtw/_fastdtw.pyx:17:2: 'numpy/math/INFINITY.pxd' not found
  Traceback (most recent call last):
    File "<string>", line 2, in <module>
    File "<pip-setuptools-caller>", line 35, in <module>
    File "/tmp/pip-install-kjl_ashk/fastdtw_e332c2520ab24e66a8efd0ceaa7fc522/setup.py", line 53, in <module>
      extensions = cythonize(extensions)
    File "/home/masterchief/.cwvenv/lib/python3.10/site-packages/Cython/Build/Dependencies.py", line 1145, in cythonize
      cythonize_one(*args)
    File "/home/masterchief/.cwvenv/lib/python3.10/site-packages/Cython/Build/Dependencies.py", line 1289, in cythonize_one
      raise CompileError(None, pyx_file)
  Cython.Compiler.Errors.CompileError: fastdtw/_fastdtw.pyx
  Compiling fastdtw/_fastdtw.pyx because it changed.
  [1/1] Cythonizing fastdtw/_fastdtw.pyx

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions