-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
enhancementNew feature or requestNew feature or request
Description
FIPS support would be nice to have.
Running the application on a RHEL9 FIPS enabled system results in this error:
Loaded support for 47 languages (94 models total)!
Traceback (most recent call last):
File "/home/libretranslate/.local/bin/libretranslate", line 8, in <module>
sys.exit(main())
File "/home/libretranslate/.local/lib/python3.9/site-packages/libretranslate/main.py", line 226, in main
app = create_app(args)
File "/home/libretranslate/.local/lib/python3.9/site-packages/libretranslate/app.py", line 1199, in create_app
Session(app)
File "/home/libretranslate/.local/lib/python3.9/site-packages/flask_session/__init__.py", line 54, in __init__
self.init_app(app)
File "/home/libretranslate/.local/lib/python3.9/site-packages/flask_session/__init__.py", line 61, in init_app
app.session_interface = self._get_interface(app)
File "/home/libretranslate/.local/lib/python3.9/site-packages/flask_session/__init__.py", line 90, in _get_interface
session_interface = FileSystemSessionInterface(
File "/home/libretranslate/.local/lib/python3.9/site-packages/flask_session/sessions.py", line 322, in __init__
self.cache = FileSystemCache(cache_dir, threshold=threshold, mode=mode)
File "/home/libretranslate/.local/lib/python3.9/site-packages/cachelib/file.py", line 88, in __init__
self._update_count(value=len(list(self._list_dir())))
File "/home/libretranslate/.local/lib/python3.9/site-packages/cachelib/file.py", line 110, in _update_count
self.set(self._fs_count_file, new_count, mgmt_element=True)
File "/home/libretranslate/.local/lib/python3.9/site-packages/cachelib/file.py", line 256, in set
filename = self._get_filename(key)
File "/home/libretranslate/.local/lib/python3.9/site-packages/cachelib/file.py", line 213, in _get_filename
bkey_hash = self._hash_method(bkey).hexdigest()
File "/home/libretranslate/.local/lib/python3.9/site-packages/cachelib/file.py", line 24, in _lazy_md5
return hashlib.md5(string)
ValueError: [digital envelope routines] unsupported
I can try running the app with a more recent version of python if you think that might help, 3.9 is just what is shipped with RHEL9 by default.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request