Issue while installing commcare-hq

0
down vote
favorite

i'm installing dimagi/commcare-hq

i've followed all the steps so far until i reached setting up the django environment, when ever i insert the command

./manage.py sync_couch_views

i get the error below

(commcare-hq) gasha@ubuntu:~/commcare/commcare-hq/commcare-hq$ ./manage.py sync_couch_views
Traceback (most recent call last):
File "./manage.py", line 123, in
from restkit.session import set_session; set_session("gevent")
File "/home/gasha/commcare/commcare-hq/local/lib/python2.7/site-packages/restkit/session.py", line 41, in set_session
backend=backend_name, **options)
File "/home/gasha/commcare/commcare-hq/local/lib/python2.7/site-packages/socketpool/pool.py", line 53, in init
self.backend_mod = load_backend(backend)
File "/home/gasha/commcare/commcare-hq/local/lib/python2.7/site-packages/socketpool/util.py", line 71, in load_backend
raise ImportError(error_msg)
ImportError: gevent isn't a socketpool backend

I've seen this error before with files that import unicode_literals from __future__ since the socketpool library is matching on a byte string not unicode.

For this specific case I don't see that import in manage.py or sync_couch_views.py.

Perhaps check your library versions and run pip install -U -r requirements/requirements.txt

File "/usr/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/adapter.py", line 47, in send
resp = super(CacheControlAdapter, self).send(request, **kw)
File "/usr/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/adapters.py", line 423, in send
timeout=timeout
File "/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/connectionpool.py", line 643, in urlopen
_stacktrace=sys.exc_info()[2])
File "/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/util/retry.py", line 315, in increment
total -= 1
TypeError: unsupported operand type(s) for -=: 'Retry' and 'int'

pip install -U -r requirements/requirements.txt

1 Like

Hi Robela

Did you solve this issue. The latests error seems like it could be an connectivity issue.