From Cryptography.hazmat.bindings._constant_time Import Lib Importerror: No Module Named _constant_time
I am basically deploying a flask app in app engine that uses pywebpush(https://github.com/web-push-libs/pywebpush). I followed the following tutorial to deploy(https://cloud.google
Solution 1:
That library is not included in App Engine, so, you have to include it.
Follow the commands in Copying a third-party library, in your case, with pywebpush
, to do so.
EDIT: pywebpush
depends on a library with C extensions, which can not be used in Standard. To be able to use pywebpush
, you will have to move to App Engine Flexible. I have followed this example, adding the pywebpush
dependency and calling a function from it, and it worked both in local and deployed.
Post a Comment for "From Cryptography.hazmat.bindings._constant_time Import Lib Importerror: No Module Named _constant_time"