Python发送推送 Can't connect to HTTPS URL because the SSL module is not available
Python 服务器推送消息的时候 提示 File
"/home/zhaojianbo/crazy/kbengine/kbe/res/scripts/common/Lib/requests/adapters.py", line 403, in send
timeout=timeout
S_ERR baseapp01 1006 7129652375332859701 [2016-07-11 17:10:35 431] - File "/home/zhaojianbo/crazy/kbengine/kbe/res/scripts/common/Lib/requests/packages/urllib3/connectionpool.py", line 566, in urlopen
conn = self._get_conn(timeout=pool_timeout)
S_ERR baseapp01 1006 7129652375332859701 [2016-07-11 17:10:35 431] - File "/home/zhaojianbo/crazy/kbengine/kbe/res/scripts/common/Lib/requests/packages/urllib3/connectionpool.py", line 256, in _get_conn
return conn or self._new_conn()
S_ERR baseapp01 1006 7129652375332859701 [2016-07-11 17:10:35 432] - File "/home/zhaojianbo/crazy/kbengine/kbe/res/scripts/common/Lib/requests/packages/urllib3/connectionpool.py", line 791, in _new_conn
raise SSLError("Can't connect to HTTPS URL because the SSL "
S_ERR baseapp01 1006 7129652375332859701 [2016-07-11 17:10:35 432] - requests.packages.urllib3.exceptions.SSLError: Can't connect to HTTPS URL because the SSL module is not available.
S_ERR baseapp01 1006 7129652375332859701 [2016-07-11 17:10:35 432] -
During handling of the above exception, another exception occurred:
S_ERR baseapp01 1006 7129652375332859701 [2016-07-11 17:10:35 433] - Traceback (most recent call last):
File "/home/zhaojianbo/crazy/kbengine/kbe/res/scripts/common/Lib/jpush/core.py", line 32, in _request
response = self.session.request(method, url, data=body, params=params, headers=headers, timeout=30)
S_ERR baseapp01 1006 7129652375332859701 [2016-07-11 17:10:35 433] - File "/home/zhaojianbo/crazy/kbengine/kbe/res/scripts/common/Lib/requests/sessions.py", line 475, in request
resp = self.send(prep, **send_kwargs)
S_ERR baseapp01 1006 7129652375332859701 [2016-07-11 17:10:35 434] - File "/home/zhaojianbo/crazy/kbengine/kbe/res/scripts/common/Lib/requests/sessions.py", line 585, in send
r = adapter.send(request, **kwargs)
S_ERR baseapp01 1006 7129652375332859701 [2016-07-11 17:10:35 434] - File "/home/zhaojianbo/crazy/kbengine/kbe/res/scripts/common/Lib/requests/adapters.py", line 477, in send
raise SSLError(e, request=request)
S_ERR baseapp01 1006 7129652375332859701 [2016-07-11 17:10:35 434] - requests.exceptions.SSLError: Can't connect to HTTPS URL because the SSL module is not available.
S_ERR baseapp01 1006 7129652375332859701 [2016-07-11 17:10:35 434] -
During handling of the above exception, another exception occurred:
S_ERR baseapp01 1006 7129652375332859701 [2016-07-11 17:10:35 436] - Traceback (most recent call last):
File "/home/zhaojianbo/crazy/kbengine/tank_asset/scripts/base/Player.py", line 1175, in _getPlayerAliasCallback
self.sendPushMsg(alias)
S_ERR baseapp01 1006 7129652375332859701 [2016-07-11 17:10:35 437] - File "/home/zhaojianbo/crazy/kbengine/tank_asset/scripts/base/Player.py", line 1193, in sendPushMsg
push.send()
S_ERR baseapp01 1006 7129652375332859701 [2016-07-11 17:10:35 438] - File "/home/zhaojianbo/crazy/kbengine/kbe/res/scripts/common/Lib/jpush/push/core.py", line 48, in send
response = self._jpush._request('POST', body, common.PUSH_URL, 'application/json', version=3)
S_ERR baseapp01 1006 7129652375332859701 [2016-07-11 17:10:35 438] - File "/home/zhaojianbo/crazy/kbengine/kbe/res/scripts/common/Lib/jpush/core.py", line 36, in _request
raise common.APIConnectionException("Connection to api.jpush.cn error.")
S_ERR baseapp01 1006 7129652375332859701 [2016-07-11 17:10:35 438] - jpush.common.APIConnectionException: 'Connection to api.jpush.cn error.'
我直接ping api.jpush.cn 是可以ping通的, 用的是Python request是2.1版本,请问是什么原因