ITADN

pex fails to work in FIPS mode on Redhat Linux

#3163Openvalmakai 创建于 2026-04-30
bugin progress
V
valmakaicommented
pex -r requirements.txt -scie-all -o test Traceback (most recent call last): File "/usr/lib64/python3.11/hashlib.py", line 165, in __hash_new return _hashlib.new(name, data, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _hashlib.UnsupportedDigestmodError: [digital envelope routines] unsupported During handling of the above exception, another exception occurred: Traceback (most recent call last): File "bin/pex", line 5, in <module> from pex.bin.pex import main File "/lib64/python3.11/site-packages/pex/bin/pex.py", line 18, in <module> from pex import build_properties, dependency_configuration, pex_warnings, repl, scie File "/lib64/python3.11/site-packages/pex/dependency_configuration.py", line 15, in <module> from pex.requirements import LocalProjectRequirement, ParseError, parse_requirement_string File "/lib64/python3.11/site-packages/pex/requirements.py", line 14, in <module> from pex.artifact_url import VCS, ArchiveScheme, ArtifactURL, VCSScheme File "/lib64/python3.11/site-packages/pex/artifact_url.py", line 139, in <module> sorted( File "/lib64/python3.11/site-packages/pex/artifact_url.py", line 141, in <lambda> key=lambda alg: (-hashlib.new(alg).digest_size, alg), ^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/hashlib.py", line 171, in __hash_new return __get_builtin_constructor(name)(data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib64/python3.11/hashlib.py", line 87, in __get_builtin_constructor raise ValueError('unsupported hash type ' + name + '(in FIPS mode)') ValueError: unsupported hash type md5(in FIPS mode)
10 条评论