EESSI / compatibility-layer

Compatibility layer of the EESSI project
https://eessi.github.io/docs/compatibility_layer
GNU General Public License v2.0
12 stars 21 forks source link

pip check fails in 2021.12 #152

Closed trz42 closed 1 year ago

trz42 commented 2 years ago

Some package in the compatibility layer of 2021.12 is missing as reported by pip check. Reproduce as follows

$ source /cvmfs/pilot.eessi-hpc.org/versions/2021.12/init/bash ... $ pip check gitpython 3.1.24 requires typing-extensions, which is not installed.

The problem has actually been reported to gentoo, see https://bugs.gentoo.org/827882 The fix, however, was not used to bootstrap the prefix. It seems the specific commit being used (https://github.com/gentoo/gentoo/commit/7eaa2512d1e6ddb44e3b41bbddf6c74723f234ce) is two days too old.

It might be possible to fix this with an in-place update of the package.

boegel commented 2 years ago

We should probably add pip check to the tests that are run for the compat layer, because EasyBuild relies on pip check during the sanity check of Python packages...

boegel commented 1 year ago

@bedroge We should fix this by updating dev-python/GitPython?

Thanks to #164 we've jumped to a newer gentoo commit, so should be possible now...

boegel commented 1 year ago

Just for the record: this is not a problem anymore in EESSI pilot 2023.04:

$ /cvmfs/pilot.eessi-hpc.org/versions/2023.04/compat/linux/$(uname -m)/startprefix
Entering Gentoo Prefix /cvmfs/pilot.eessi-hpc.org/versions/2023.04/compat/linux/x86_64
$ which python3
/cvmfs/pilot.eessi-hpc.org/versions/2023.04/compat/linux/x86_64/usr/bin/python3

$ unset PYTHONPATH
$ python3 -m pip check
No broken requirements found.
boegel commented 1 year ago

Same result for EESSI 2023.06, since https://bugs.gentoo.org/827882 was fixed:

$ /cvmfs/pilot.eessi-hpc.org/versions/2023.06/compat/linux/x86_64/startprefix
Entering Gentoo Prefix /cvmfs/pilot.eessi-hpc.org/versions/2023.06/compat/linux/x86_64
$ which python3
/cvmfs/pilot.eessi-hpc.org/versions/2023.06/compat/linux/x86_64/usr/bin/python3
$ python3 -V
Python 3.11.4
$ unset PYTHONPATH
$ python3 -m pip check
No broken requirements found.

So closing this issue (there's little point in fixing this for 2021.12 imho)