plivo failing to start

345 views
Skip to first unread message

emussu

unread,
May 24, 2012, 7:55:00 AM5/24/12
to plivo...@googlegroups.com
hello
am running plivo on a debian in virtual box, after a lot of troubles i got plibvo installed but cannot start it. below is what i get, anyone with the same prolem?
in the plivo bin directory there is easy install, do i need to run this again?

Traceback (most recent call last):
  File "/usr/local/plivo/bin/plivo-rest", line 4, in <module>
    from pkg_resources import require; require('plivo==0.1.0')
  File "/usr/local/plivo/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 2603, in <module>
  File "/usr/local/plivo/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 666, in require
  File "/usr/local/plivo/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 565, in resolve
pkg_resources.DistributionNotFound: redis==2.4.9
Traceback (most recent call last):
  File "/usr/local/plivo/bin/plivo-outbound", line 4, in <module>
    from pkg_resources import require; require('plivo==0.1.0')
  File "/usr/local/plivo/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 2603, in <module>
  File "/usr/local/plivo/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 666, in require
  File "/usr/local/plivo/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg/pkg_resources.py", line 565, in resolve
pkg_resources.DistributionNotFound: redis==2.4.9
Plivo-Rest [default] start failed
Plivo-Outbound [default] start failed

Mike

unread,
May 24, 2012, 8:03:23 AM5/24/12
to plivo...@googlegroups.com
Hi,

I think some packages have not been installed correctly (here redis
for python) .
I suggest you reinstall plivo using install script .
Maybe internet connection dropped at time you've installed plivo.

If you still have problem, you can paste here plivo install logs (from
terminal) .
--
--

Michael Ricordeau
Co-Founder Plivo

mi...@plivo.com
http://www.plivo.com
twitter @mricordeau
linkedin http://fr.linkedin.com/in/michaelricordeau

Jayesh

unread,
Aug 21, 2013, 7:00:27 AM8/21/13
to plivo...@googlegroups.com
i am facing same problem. any help?

derrick bradbury

unread,
Oct 11, 2013, 4:21:05 PM10/11/13
to plivo...@googlegroups.com
I am starting to play around with this as well...same error.. (this was from a minimal centos 6.4 install)

[root@hammer1 plivo]# bin/plivo-postinstall
Traceback (most recent call last):
  File "bin/plivo-postinstall", line 4, in <module>

    from pkg_resources import require; require('plivo==0.1.0')
  File "/usr/local/plivo/lib/python2.6/site-packages/pkg_resources.py", line 3007, in <module>
    working_set.require(__requires__)
  File "/usr/local/plivo/lib/python2.6/site-packages/pkg_resources.py", line 728, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/local/plivo/lib/python2.6/site-packages/pkg_resources.py", line 626, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: redis
[root@hammer1 plivo]#


Had an issue with PIP not being up to date, corrected that, and still get this error.

I tried:

[root@hammer1 plivo]# pip install --upgrade redis
Requirement already up-to-date: redis in /usr/lib/python2.6/site-packages
Cleaning up...

And it's all clean..

Any thoughts?

Mike

unread,
Oct 12, 2013, 8:02:51 AM10/12/13
to plivo...@googlegroups.com
Try :

source /usr/local/plivo/bin/activate
pip install --upgrade redis


--
You received this message because you are subscribed to the Google Groups "Plivo Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to plivo-users...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

derrick bradbury

unread,
Oct 15, 2013, 10:07:15 AM10/15/13
to plivo...@googlegroups.com
Thanks! That got me around redis.. A whole bunch of other packages were needed:

(For reference, I'm doing this on a Centos 6.4 minimal install...)

This is all AFTER doing and doing the redis update : source /usr/local/plivo/bin/activate

pip install -I ujson==1.9 (Default install is 1.33)
pip install -I flask==0.7.2 (Didn't even try default)

yum -y install libevent-devel
pip install -I gevent

After those, I was able to run the postinstall, and plivo:

(plivo)[root@hammer1 plivo]# ./bin/plivo-postinstall
Plivo postinstall done
(plivo)[root@hammer1 plivo]# ./bin/plivo start
Plivo-Rest [default] started
Plivo-Outbound [default] started


Thanks!

Mike

unread,
Oct 15, 2013, 10:24:53 AM10/15/13
to plivo...@googlegroups.com
ok, I have pushed some changes in the installer script for Centos and also in plivo package setup.py .
Reply all
Reply to author
Forward
0 new messages