Issue while installing commcare-hq

down vote

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

./ sync_couch_views

i get the error below

(commcare-hq) gasha@ubuntu:~/commcare/commcare-hq/commcare-hq$ ./ sync_couch_views
Traceback (most recent call last):
File “./”, 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/”, line 41, in set_session
backend=backend_name, **options)
File “/home/gasha/commcare/commcare-hq/local/lib/python2.7/site-packages/socketpool/”, line 53, in init
self.backend_mod = load_backend(backend)
File “/home/gasha/commcare/commcare-hq/local/lib/python2.7/site-packages/socketpool/”, 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 or

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/”, 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/”, line 423, in send
File “/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/”, line 643, in urlopen
File “/usr/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/util/”, 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.