plivo / plivoframework

Open Source Telephony Application Prototyping Framework
http://www.plivo.com/open-source/
Other
417 stars 180 forks source link

gevent problem on Debian Jessie (missing SSLv3) #135

Open lape opened 8 years ago

lape commented 8 years ago

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.

lape commented 7 years ago

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
lape commented 7 years ago

Fixed this in plivo_install.sh: https://github.com/plivo/plivoframework/pull/137/commits/d252364855f58bd75150e7e827e3e272531c1694

abstream commented 7 years ago

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.

abstream commented 7 years ago

Basically , the plivo framework installation and runtime fails on most recent linux distros

ktrev commented 6 years ago

I am also facing the same issue. Is there any solution for this?