Unable to run the command run_ptop --all

I installed commcarehq platform in my system. I was able to run the server
through docker.

I want to reindex so ran this commance

./manage.py run_ptop --all

The stack trace that I get is:
Traceback (most recent call last):
File "./manage.py", line 118, in
execute_from_command_line(sys.argv)
File
"/home/ubuntu/Documents/virtuals/compcare/local/lib/python2.7/site-packages/django/core/management/init.py",
line 354, in execute_from_command_line
utility.execute()
File
"/home/ubuntu/Documents/virtuals/compcare/local/lib/python2.7/site-packages/django/core/management/init.py",
line 328, in execute
django.setup()
File
"/home/ubuntu/Documents/virtuals/compcare/local/lib/python2.7/site-packages/django/init.py",
line 18, in setup
apps.populate(settings.INSTALLED_APPS)
File
"/home/ubuntu/Documents/virtuals/compcare/local/lib/python2.7/site-packages/django/apps/registry.py",
line 85, in populate
app_config = AppConfig.create(entry)
File
"/home/ubuntu/Documents/virtuals/compcare/local/lib/python2.7/site-packages/django/apps/config.py",
line 86, in create
module = import_module(entry)
File "/usr/lib/python2.7/importlib/init.py", line 37, in import_module
import(name)
File
"/home/ubuntu/Documents/virtuals/compcare/local/lib/python2.7/site-packages/couchdbkit/init.py",
line 35, in
"critical": logging.CRITICAL,
AttributeError: 'module' object has no attribute 'CRITICAL'

Can anyone please help me fixing this issue?