plivoframework
plivoframework copied to clipboard
gevent problem on Debian Jessie (missing SSLv3)
It's not possible to start Plivo when installed with the gevent version 1.03a downloaded from plivo_install.sh on a Debian 8 Jessie system:
[...]
from gevent import socket
File "/usr/local/plivo/local/lib/python2.7/site-packages/gevent/socket.py", line 695, in <module>
from gevent.ssl import sslwrap_simple as ssl, SSLError as sslerror, SSLSocket as SSLType
File "/usr/local/plivo/local/lib/python2.7/site-packages/gevent/ssl.py", line 438, in <module>
def get_server_certificate(addr, ssl_version=PROTOCOL_SSLv3, ca_certs=None):
NameError: name 'PROTOCOL_SSLv3' is not defined
Upgrading to the latest gevent version with
<plivo_root>/bin/pip install gevent --upgrade
seems to fix the problem.
Upgrading to latest version of gevent no longer works. To get plivo running, uninstall gevent and install version 1.1.0 (now on Github):
<plivo_root>/bin/pip uninstall gevent
<plivo_root>/bin/pip install -Iv https://github.com/gevent/gevent/releases/download/v1.1.0/gevent-1.1.0.tar.gz
Fixed this in plivo_install.sh: https://github.com/plivo/plivoframework/pull/137/commits/d252364855f58bd75150e7e827e3e272531c1694
This will make plivo run but then when I try to make calls I get:
BlockingSwitchOutError: Impossible to call blocking function in the event loop callback
This is from plivo outbound log and I think it is a problem with python and gevent.
Basically , the plivo framework installation and runtime fails on most recent linux distros
I am also facing the same issue. Is there any solution for this?