pooch icon indicating copy to clipboard operation
pooch copied to clipboard

Tests fail with OpenSSL FIPS enabled

Open RossComputerGuy opened this issue 3 months ago • 1 comments

Description of the problem:

Enable FIPS in OpenSSL, ensure openssl list -providers shows that the FIPS provider is enabled.

Full code that generated the error

PASTE YOUR CODE HERE

Full error message

pooch> =========================== short test summary info ============================
pooch> FAILED pooch/tests/test_core.py::test_alternative_hashing_algorithms - _hashlib.UnsupportedDigestmodError: [digital envelope routines] unsupported
pooch> FAILED pooch/tests/test_hashes.py::test_file_hash[md5] - _hashlib.UnsupportedDigestmodError: [digital envelope routines] unsupported
pooch> FAILED pooch/tests/test_hashes.py::test_hash_matches[md5] - _hashlib.UnsupportedDigestmodError: [digital envelope routines] unsupported
pooch> FAILED pooch/tests/test_hashes.py::test_hash_matches_strict[md5] - _hashlib.UnsupportedDigestmodError: [digital envelope routines] unsupported
pooch> FAILED pooch/tests/test_hashes.py::test_hash_matches_uppercase[md5] - _hashlib.UnsupportedDigestmodError: [digital envelope routines] unsupported
pooch> FAILED pooch/tests/test_utils.py::test_unique_name_long - _hashlib.UnsupportedDigestmodError: [digital envelope routines] unsupported
pooch> =========== 6 failed, 37 passed, 10 skipped, 104 deselected in 3.85s ===========

System information

  • Operating system: NixOS
  • Python installation (Anaconda, system, ETS): Python 3.13
  • Version of Python: 3.13
  • Version of this package: 1.8.2
  • If using conda, paste the output of conda list below:
Output of conda list

PASTE OUTPUT OF CONDA LIST HERE

RossComputerGuy avatar Oct 15 '25 22:10 RossComputerGuy

Thanks for reporting. There’s more info here https://til.simonwillison.net/python/md5-fips. Seems like an easy fix since we don’t use the hashes for cryptography and only to check of files exist.

leouieda avatar Oct 16 '25 09:10 leouieda