You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes the wrong package version may be installed, see easybuilders/easybuild-framework#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:
Parse pip list --format=json or pip show %(name)s
Requires pip
Run from pkg_resources import get_distribution; assert get_distribution(%(name)s).version == %(version)s
Requires setuptools
Run import %(modulename)s; from importlib.metadata import version; assert version('%(modulename)s') == %(version)s
Requires Python>=3.8 or importlib_metadata
Run import %(modulename)s; if hasattr(%(modulename)s, '__version__'): assert %(modulename)s.__version__ == %(version)s
Packages not defining __version__ will not be sanity checked
The text was updated successfully, but these errors were encountered:
Sometimes the wrong package version may be installed, see easybuilders/easybuild-framework#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 checkedThe text was updated successfully, but these errors were encountered: