Open VRehnberg opened 2 days ago
Sometimes the wrong package version may be installed, see https://github.com/easybuilders/easybuild-framework/issues/4706 which introduces a fix for a known way this could happen.
To catch similar issues it would probably be good to sanity check the version of installed packages.
Some possibilities:
pip list --format=json
pip show %(name)s
from pkg_resources import get_distribution; assert get_distribution(%(name)s).version == %(version)s
import %(modulename)s; from importlib.metadata import version; assert version('%(modulename)s') == %(version)s
import %(modulename)s; if hasattr(%(modulename)s, '__version__'): assert %(modulename)s.__version__ == %(version)s
__version__
Sometimes the wrong package version may be installed, see https://github.com/easybuilders/easybuild-framework/issues/4706 which introduces a fix for a known way this could happen.
To catch similar issues it would probably be good to sanity check the version of installed packages.
Some possibilities:
pip list --format=json
orpip show %(name)s
from pkg_resources import get_distribution; assert get_distribution(%(name)s).version == %(version)s
import %(modulename)s; from importlib.metadata import version; assert version('%(modulename)s') == %(version)s
import %(modulename)s; if hasattr(%(modulename)s, '__version__'): assert %(modulename)s.__version__ == %(version)s
__version__
will not be sanity checked