DynamicsAndNeuralSystems / pycatch22

python implementation of catch22
https://time-series-features.gitbook.io/catch22/python
GNU General Public License v3.0
75 stars 15 forks source link

How to install? #1

Closed arandomgoodguy closed 2 years ago

arandomgoodguy commented 2 years ago

Hi, It seems that pip install pycatch22 or catch22 fails to install.

!pip install pycatch22 Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/ Collecting pycatch22 Downloading pycatch22-0.4.0.tar.gz (63 kB) |████████████████████████████████| 63 kB 1.5 MB/s Installing build dependencies ... done Getting requirements to build wheel ... done Preparing wheel metadata ... done WARNING: Generating metadata for package pycatch22 produced metadata for project name unknown. Fix your #egg=pycatch22 fragments. WARNING: Discarding https://files.pythonhosted.org/packages/f3/23/e33ab606f62a488522b8d6053027e914a7774d32e31cb6bd9f9cf6747b6f/pycatch22-0.4.0.tar.gz#sha256=f3eb0d5892398370bd247b8e2bd51c66f6c2686a93b96c0f12584e50102bdc09 (from https://pypi.org/simple/pycatch22/). Requested unknown from https://files.pythonhosted.org/packages/f3/23/e33ab606f62a488522b8d6053027e914a7774d32e31cb6bd9f9cf6747b6f/pycatch22-0.4.0.tar.gz#sha256=f3eb0d5892398370bd247b8e2bd51c66f6c2686a93b96c0f12584e50102bdc09 has inconsistent name: filename has 'pycatch22', but metadata has 'UNKNOWN' ERROR: Could not find a version that satisfies the requirement pycatch22 (from versions: 0.4.0) ERROR: No matching distribution found for pycatch22

benfulcher commented 2 years ago

Thanks for the note (and quick response!) I am new to pip, but I hope it's now working (in v0.4.1)?

arandomgoodguy commented 2 years ago

Thanks to the quick response as well, but I think the pip still doesn't work yet, with a different error. (I test it using Google Colab.)

!pip install pycatch22==0.4.1 Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/ Collecting pycatch22==0.4.1 Using cached pycatch22-0.4.1.tar.gz (41 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... done Preparing wheel metadata ... done WARNING: Requested pycatch22==0.4.1 from https://files.pythonhosted.org/packages/f8/d9/5beac06dce706d96c8b3a5f12352af61e323399af71f27556804b990ad25/pycatch22-0.4.1.tar.gz#sha256=2ef4895b5e8120abf2ecb0dcea49a65e3d03b3e6b3a1b905928b4b1856be9ec7, but installing version 0.0.0 WARNING: Discarding https://files.pythonhosted.org/packages/f8/d9/5beac06dce706d96c8b3a5f12352af61e323399af71f27556804b990ad25/pycatch22-0.4.1.tar.gz#sha256=2ef4895b5e8120abf2ecb0dcea49a65e3d03b3e6b3a1b905928b4b1856be9ec7 (from https://pypi.org/simple/pycatch22/). Requested pycatch22==0.4.1 from https://files.pythonhosted.org/packages/f8/d9/5beac06dce706d96c8b3a5f12352af61e323399af71f27556804b990ad25/pycatch22-0.4.1.tar.gz#sha256=2ef4895b5e8120abf2ecb0dcea49a65e3d03b3e6b3a1b905928b4b1856be9ec7 has inconsistent version: filename has '0.4.1', but metadata has '0.0.0' ERROR: Could not find a version that satisfies the requirement pycatch22==0.4.1 (from versions: 0.4.0, 0.4.1) ERROR: No matching distribution found for pycatch22==0.4.1

benfulcher commented 2 years ago

Not sure about that. Hopefully someone with python skillz can help. I'm having issues in general with including the header directory in the pip distribution. The manual install is going to be the best bet until this is fixed (cf. #2 )

benfulcher commented 2 years ago

Hopefully this is now fixed with v0.4.2: https://pypi.org/project/pycatch22/

firmai commented 2 years ago

Hi just thought to let you know the installation doesn't work on Colab, not from the repo, nor from pypi.

benfulcher commented 2 years ago

I've heard from a user with this problem, which was due to Colab using an old version of setuptools in their notebook. See if it helps to first try:

!pip install setuptools --upgrade
OmarHory commented 2 years ago

I am still facing the same issue even after upgrading setuptools. I need to install this in DataBricks.

firmai commented 2 years ago

Excellent that worked, if you are in colab just remember to restart your colab after upgrading setuptools

benfulcher commented 2 years ago

Great. @OmarHory hopefully this works with an update then restart…? The fallback would be a manual install (rather than with pip)

python3 setup.py build
python3 setup.py install