CryptoUnavailableError:没有可用的加密库,并且从oauth2client导入加密失败。
我在链接中提到了上述错误。我能够通过重新安装pyOpenSSL和加密来解决此问题。但是现在出现了以下错误。
ImportError: No module named cryptography.hazmat.bindings._openssl
Run Code Online (Sandbox Code Playgroud)
_openssl是Unix可执行文件(_openssl.so)。以下是导入声明
from cryptography.hazmat.bindings._openssl import ffi, lib
Run Code Online (Sandbox Code Playgroud)
上面的代码在加密模块中的bindings.py中。这些都使用oauth2client链接到gspread身份验证。请帮帮我。我为此苦苦挣扎。
更新:该问题是由某些依赖项失败引起的。我无法找到依赖项失败的地方。从顶部重新安装所有库。这样解决了这个问题。
authentication google-app-engine oauth-2.0 python-2.7 gspread
我试图使用Polymer实现推送通知.我按照这个链接,能够让服务工作者注册.我得到了以下Javascript控制台的评论.
Service Worker is ready :^) ServiceWorkerRegistration
Run Code Online (Sandbox Code Playgroud)
但我也收到了这个错误.
Uncaught (in promise) DOMException: Registration failed - manifest empty or missing
Run Code Online (Sandbox Code Playgroud)
注意:
<link rel="manifest" href="manifest.json">
Run Code Online (Sandbox Code Playgroud)
已经在我的index.html中.由于我使用Google App Engine,在我的app.yaml中我也添加了以下内容
url: /manifest.json
static_files: templates/manifest.json
upload: templates/manifest.json
Run Code Online (Sandbox Code Playgroud)
如果我尝试localhost:8080/manifest.json,我的清单json将显示在浏览器上.我无法让它工作.请提供一些帮助,建议检查我的index.html中是否实际可以访问manifest.json
javascript json push-notification service-worker google-app-engine-python