pollen-robotics / dtw

DTW (Dynamic Time Warping) python module
GNU General Public License v3.0
1.16k stars 233 forks source link

python 3.12? #63

Open fosghen opened 4 months ago

jensenojs commented 1 month ago

same problem, here is answer gen by copilot

The error message indicates that the installation of the dtw package is failing because it cannot find the imp module. The imp module was deprecated in Python 3.4 and removed in Python 3.12. The dtw package likely has a dependency that still uses the imp module, which is causing the installation to fail.

To resolve this issue, you can try the following steps:

  1. Check for an Updated Version: Ensure that you are trying to install the latest version of the dtw package. The issue might have been fixed in a newer release.

  2. Use an Alternative Package: If the dtw package is not actively maintained, consider using an alternative package that provides similar functionality.

  3. Modify the Package Source: If you need to use this specific package, you might need to download the source code, modify it to replace the usage of the imp module with importlib, and then install it manually.

  4. Contact the Maintainer: Report the issue to the package maintainer so they can update the package to be compatible with Python 3.12.

For now, you can try installing an older version of Python (e.g., Python 3.10 or 3.11) where the imp module is still available, and then install the dtw package.