Python 2.7 ImportError:GAE中没有名为_openssl的模块 实际上我正在GAE上上传python应用程序(使用pusher模块)。它在我的本地系统上运行良好。但在GAE(谷歌应用程序引擎)中,当我将此应用程序托管到GAE时,它给出了以下错误。 回溯(最近一次调用):(/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/cgi.py:122) 文件“/base/data/home/apps/s~pushapi-1117/1.388696378960329626/main.py”,第行 26,在 秘密 文件“lib/pusher/pusher.py”,第42行,在pusher.requests的_uinit__uu中 导入请求备份 文件“lib/pusher/requests.py”,第12行,在 导入urllib3.contrib.pyopenssl 文件“lib/urllib3/contrib/pyopenssl.py”,第53行,在 导入OpenSSL.SSL 文件“lib/OpenSSL/_init__uuu.py”,第8行,在 从OpenSSL导入rand、加密、SSL 文件“lib/OpenSSL/rand.py”,第11行,在 从OpenSSL.\u util导入( 文件“lib/OpenSSL/_util.py”,第6行,在 从cryptography.hazmat.bindings.openssl.binding导入绑定 文件“lib/cryptography/hazmat/bindings/openssl/binding.py”,第13行,在 来自cryptography.hazmat.bindings.\u openssl导入ffi,lib **ImportError:没有名为_openssl的模块**
我已经安装了所有依赖的模块加密,OpenSSL也出现了这个问题。只有当我在GAE上托管我的应用程序时,才会出现这个错误。GAE不支持C扩展,pyca/加密(pyOpenSSL依赖的)导入C扩展(通过cffi).Google有关于的更多信息。GAE不支持C扩展,pyca/加密(pyOpenSSL依赖于)导入C扩展(通过cffi)。Google有关于的更多信息Python 2.7 ImportError:GAE中没有名为_openssl的模块 实际上我正在GAE上上传python应用程序(使用pusher模块)。它在我的本地系统上运行良好。但在GAE(谷歌应用程序引擎)中,当我将此应用程序托管到GAE时,它给出了以下错误。 回溯(最近一次调用):(/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/cgi.py:122) 文件“/base/data/home/apps/s~pushapi-1117/1.388696378960329626/main.py”,第行 26,在 秘密 文件“lib/pusher/pusher.py”,第42行,在pusher.requests的_uinit__uu中 导入请求备份 文件“lib/pusher/requests.py”,第12行,在 导入urllib3.contrib.pyopenssl 文件“lib/urllib3/contrib/pyopenssl.py”,第53行,在 导入OpenSSL.SSL 文件“lib/OpenSSL/_init__uuu.py”,第8行,在 从OpenSSL导入rand、加密、SSL 文件“lib/OpenSSL/rand.py”,第11行,在 从OpenSSL.\u util导入( 文件“lib/OpenSSL/_util.py”,第6行,在 从cryptography.hazmat.bindings.openssl.binding导入绑定 文件“lib/cryptography/hazmat/bindings/openssl/binding.py”,第13行,在 来自cryptography.hazmat.bindings.\u openssl导入ffi,lib **ImportError:没有名为_openssl的模块**,python-2.7,Python 2.7,我已经安装了所有依赖的模块加密,OpenSSL也出现了这个问题。只有当我在GAE上托管我的应用程序时,才会出现这个错误。GAE不支持C扩展,pyca/加密(pyOpenSSL依赖的)导入C扩展(通过cffi).Google有关于的更多信息。GAE不支持C扩展,pyca/加密(pyOpenSSL依赖于)导入C扩展(通过cffi)。Google有关于的更多信息 Actually I am uploading python app (which using pusher module) on GAE.
Actually I am uploading python app (which using pusher module) on GAE. Its working fine on my local system. But in GAE(Google App Engine) Its giving following error when I host this app to GAE.
Traceback (most recent call last): (/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/cgi.py:122)
File "/base/data/home/apps/s~pushapi-1117/1.388696378960329626/main.py", line
26, in <module>
secret=secret
File "lib/pusher/pusher.py", line 42, in __init__ from pusher.requests
import RequestsBackend
File "lib/pusher/requests.py", line 12, in <module>
import urllib3.contrib.pyopenssl
File "lib/urllib3/contrib/pyopenssl.py", line 53, in <module>
import OpenSSL.SSL
File "lib/OpenSSL/__init__.py", line 8, in <module>
from OpenSSL import rand, crypto, SSL
File "lib/OpenSSL/rand.py", line 11, in <module>
from OpenSSL._util import (
File "lib/OpenSSL/_util.py", line 6, in <module>
from cryptography.hazmat.bindings.openssl.binding import Binding
File "lib/cryptography/hazmat/bindings/openssl/binding.py", line 13, in
<module>
from cryptography.hazmat.bindings._openssl import ffi, lib
**ImportError: No module named _openssl**