Closed tanweer-mahdi closed 1 year ago
I'm not sufficiently python conversant for this, but there is a manual install option on the readme if all else fails
It seems that some rules for version resolving were changed (quite some time ago), leading to the issue mentioned above. See this s/o question: https://stackoverflow.com/questions/67074684/pip-has-problems-with-metadata
I have used this command to get it to run on databricks:
%pip install pycatch22==0.4.2 --use-deprecated=legacy-resolver
There was no need to update setuptools or pip.
@windischbauer Thank you for sharing this info! 👍 I will add a reference to it to the README. Feedback from other users would be appreciated.
Hi devs,
Been trying to install pycatch in the Databricks (in a notebook to be specific). I followed the advice by @benfulcher in a different issue and updated the setup tools. However, it didn't work.
!pip install setuptools --upgrade
!pip install pycatch22==0.4.2
This is the logs I get:
Requirement already satisfied: setuptools in /local_disk0/.ephemeral_nfs/envs/pythonEnv-1aae44a8-c44b-4bd4-9191-4430a766e896/lib/python3.9/site-packages (65.6.3) WARNING: You are using pip version 21.2.4; however, version 22.3.1 is available. You should consider upgrading via the '/local_disk0/.ephemeral_nfs/envs/pythonEnv-1aae44a8-c44b-4bd4-9191-4430a766e896/bin/python -m pip install --upgrade pip' command. Collecting pycatch22==0.4.2 Using cached pycatch22-0.4.2.tar.gz (49 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... 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/f4/7f/e0083a771ecefe10a0fd7b37d9be15adceec16648ed1a81625ade312d23c/pycatch22-0.4.2.tar.gz#sha256=162bd9774a326993c564120221e779fb6e578139e9fb73ed6066a3137e61c3ad (from https://pypi.org/simple/pycatch22/). Requested unknown from https://files.pythonhosted.org/packages/f4/7f/e0083a771ecefe10a0fd7b37d9be15adceec16648ed1a81625ade312d23c/pycatch22-0.4.2.tar.gz#sha256=162bd9774a326993c564120221e779fb6e578139e9fb73ed6066a3137e61c3ad has inconsistent name: filename has 'pycatch22', but metadata has 'UNKNOWN' ERROR: Could not find a version that satisfies the requirement pycatch22==0.4.2 (from versions: 0.2.0, 0.4.0, 0.4.1, 0.4.2) ERROR: No matching distribution found for pycatch22==0.4.2 WARNING: You are using pip version 21.2.4; however, version 22.3.1 is available. You should consider upgrading via the '/local_disk0/.ephemeral_nfs/envs/pythonEnv-1aae44a8-c44b-4bd4-9191-4430a766e896/bin/python -m pip install --upgrade pip' command.
Please let me know if anyone has been able to solve this issue. Cheers.