PyCrypto : AssertionError(“PID check failed. RNG must be re-initialized after fork(). Hint: Try Random.atfork()”)

假如想象 提交于 2019-12-03 11:31:49
unixsnob

You need to call Crypto.Random.atfork() after os.fork()

I just put the __init__() in the security module before the other ones

Installing the pycryptodome package fixed this issue for me on Mac and Linux. It is a fork of the Pycrypto package.

pip install pycryptodome

Here is the link to their docs: https://pycryptodome.readthedocs.io/en/latest/index.html

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!