packaging-problems icon indicating copy to clipboard operation
packaging-problems copied to clipboard

AGH-vqis 3.2.1 does not work with python 3.12

Open mpinson-NTIA opened this issue 1 year ago • 1 comments

Problem description

a package distutils has been depreciated in python version 3.11, which does not allow pip to install this package

we tried to install setuptools which now also provides distutils, but this avenue threw an error from a subprocess

python 3.10.11 works with 3.2.1

mpinson-NTIA avatar Jun 03 '24 20:06 mpinson-NTIA

That package pins scikit-learn to 1.2.0. A pinned or upper capped version will always break eventually. See https://iscinumpy.dev/post/bound-version-constraints.

However, if you use uv instead of pip, you can get it to install on Python 3.12 like this:

echo "scikit-learn>=1.2" > "overrides.txt"
uv venv
uv pip install AGH-vqis --override overrides.txt

Now the virtualenv at the default location (.venv) will have AGH-vqis installed.

(Also, you should contact the authors about this, as it's not our fault they pinned scikit-learn ;) Also, there's no source code for it and it's only under an evaluation license.)

henryiii avatar Jun 03 '24 20:06 henryiii