DigitalTrustCenter / sectxt

security.txt parser and validator
European Union Public License 1.2
17 stars 6 forks source link

Python 3.13 ModuleNotFoundError: No module named 'imghdr' #81

Closed petrprikryl closed 1 month ago

petrprikryl commented 1 month ago

Hi, it is related to https://github.com/SecurityInnovation/PGPy/issues/462

    from sectxt import SecurityTXT
/home/django/.venv/lib/python3.13/site-packages/sectxt/__init__.py:15: in <module>
    import pgpy
/home/django/.venv/lib/python3.13/site-packages/pgpy/__init__.py:4: in <module>
    from .pgp import PGPKey
/home/django/.venv/lib/python3.13/site-packages/pgpy/pgp.py:25: in <module>
    from .constants import CompressionAlgorithm
/home/django/.venv/lib/python3.13/site-packages/pgpy/constants.py:5: in <module>
    import imghdr
E   ModuleNotFoundError: No module named 'imghdr'
DigitalTrustCenter commented 1 month ago

We explored the idea to publish a patched version of the PGPy module. We now have a dependency on PGPy-dtc which allows us to fix certain issues. We have fix this issue with the imghdr. We used the proposed solution from the issue on the PGPy library. This dependency is added in version 0.9.5