henry2004y / henry2004y/flekspy

unyt md5 error

Open
#27 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
3
Forks
1
Avg merge
1d 3h
Merged PRs (30d)
2

Description

On Pleiades, I encountered this strange error:

```python
>>> import yt
File "/home1/hzhou4/swbuild/Python-3.12.10/lib/python3.12/site-packages/unyt/unit_registry.py", line 96, in unit_system_id
m = md5()
^^^^^
ValueError: [digital envelope routines: EVP_DigestInit_ex] disabled for FIPS
```

This appears to be common among tools that use hashlib. The following workaround seems to fix the problem, edit
```python
hasher = hashlib.md5(usedforsecurity=False)
```

I submited an issue to unyt: https://github.com/yt-project/unyt/issues/580

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported `import yt` failure on Pleiades with FIPS enabled and inspect the installed `unyt/unit_registry.py` at the reported `unit_system_id` location. Read the linked unyt issue for context, then determine whether flekspy owns the affected integration; done means the import no longer raises the FIPS-related md5 error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.