pycryptodome
pycryptodome copied to clipboard
Raise ImportError along with OSError when .so files can't be imported
Is it possible for Crypto to raise OSError as well as ImportError when an so file can't be loaded during importing?
What is the reason for doing so?
If you install PyCryptodome but remove the .so files, then try to use yt-dlp, it will fail because youtube-dl doesn't catch OSError when importing PyCryptodome. I tried to get them to also catch OSError, but they weren't receptive.
So, it's mostly to work around one program in one specific use-case.