-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gevent 1.0rc2 breaks plivo #96
Comments
ok do you have an idea when gevent (version/commit) added this assertion check ? |
Will plivoframework team plan to support gevent-1.0rc2? |
Any chance you could make a note about this issue on this page http://docs.plivo.org/get-started/ ? I'm new to Plivo, and it took me a while to find this issue and figure out I wasn't doing anything wrong... |
I should have been more specific... In it's current state, you can't install the plivo framework. Within plivo_install.sh, there's these two lines: pip install --upgrade -f http://gevent.googlecode.com/files/gevent-1.0a3.tar.gz gevent The first does install the older version of gevent, but the second triggers some dependency that installs the latest gevent due to some dependency...which renders the install broken due to this issue. I tried working around it by doing a pip install of the older version, but that triggers a different gevent bug where it requires cython to do the build. That, in turns, fails because cython complains about "default encoding required for conversion" on one of the core files in plivo. In short, again, at least on a debian box, you can't get a working install of plivo by running the simple "get started" install. |
Is it still the same error : "AssertionError: Impossible to call blocking function in the event loop callback" you see when using last gevent version ? |
Yes, the same error. I tried it a few more times, and wrote up something with more detail on the Plivo-User's group, here; https://groups.google.com/forum/#!topic/plivo-users/q3gdHEcDXsU I was wrong in my assumption that the newer version of gevent was overwriting the older version. It's more straightforward than that. This line: pip install --upgrade -f http://gevent.googlecode.com/files/gevent-1.0a3.tar.gz gevent Does not install gevent-1.0a3.tar.gz...it grabs the lastest version of gevent. Must be something about how pip works internally? |
Yes. On 12/9/13 2:11 PM, Michael Ricordeau wrote:
|
I finally hit on something that worked. I replaced this line in plivo_install.sh
With this:
FYI, that -Iv switch above is a capital letter i, not a lowercase l. The font here on github isn't great for telling the difference.... I and l look the same. And re-ran the installer. It does prompt me for confirmation during the install, but everything is working now, no "AssertionError: Impossible to call blocking function in the event loop callback" problems with inbound calls. |
please refer to second commit of |
I've downloaded last version of plivo source with cloning of git in plivo_install.sh |
Just to confirm that BrightLedSigns' fix worked for me; I didn't have to rerun install.sh, just restarted the plivo processes. |
Fixed it in #132 |
Testing an inbound call, with TRACE enabled succeeds with the gevent installed through pip.
However, it fails when using the newest gevent based off of libev.
This is using the newest code from the master branch of plivoframework.
The text was updated successfully, but these errors were encountered: