unverbuggt / mkdocs-encryptcontent-plugin

A MkDocs plugin that encrypt/decrypt markdown content with AES
https://unverbuggt.github.io/mkdocs-encryptcontent-plugin/
MIT License
123 stars 15 forks source link

Crypto module not found & module 'mkdocs.utils' has no attribute 'string_types' #4

Closed anthonyeden closed 4 years ago

anthonyeden commented 4 years ago

I had some issues starting this for the first time.

    from Crypto import Random
    ModuleNotFoundError: No module named 'Crypto'

To solve this on Mac OS, I had to run:

pip3 uninstall crypto
pip3 uninstall pycrypto
pip3 install pycryptodome

This may not be an issue with this plugin, but I wanted to document it here in case someone else has the same issue.

CoinK0in commented 4 years ago

PyCrypto is no longer recommended and pycryptodome seems to replace it.

I added pycryptodome at the same time as this commit

Tell me if it's enough or if you see something else to do to force the use of pycryptodome.

Thanks for your feedback.