Getting error while Creating New Site


I am trying to create a new site while installing manually instead of using single install script.

Past two days I am getting following error while creating new site. Please help

:~/iocl_bench$ bench new-site library
MySQL root password:
Traceback (most recent call last):
File “/usr/lib/python2.7/”, line 174, in _run_module_as_main
“main”, fname, loader, pkg_name)
File “/usr/lib/python2.7/”, line 72, in _run_code
exec code in run_globals
File “/home/frappe/iocl_bench/apps/frappe/frappe/utils/”, line 97, in
File “/home/frappe/iocl_bench/apps/frappe/frappe/utils/”, line 18, in main
File “/home/frappe/iocl_bench/env/local/lib/python2.7/site-packages/click/”, line 764, in call
return self.main(args, kwargs)
File “/home/frappe/iocl_bench/env/local/lib/python2.7/site-packages/click/”, line 717, in main
rv = self.invoke(ctx)
File “/home/frappe/iocl_bench/env/local/lib/python2.7/site-packages/click/”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/frappe/iocl_bench/env/local/lib/python2.7/site-packages/click/”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/frappe/iocl_bench/env/local/lib/python2.7/site-packages/click/”, line 956, in invoke
return ctx.invoke(self.callback, ctx.params)
File “/home/frappe/iocl_bench/env/local/lib/python2.7/site-packages/click/”, line 555, in invoke
return callback(args, **kwargs)
File “/home/frappe/iocl_bench/apps/frappe/frappe/commands/”, line 33, in new_site
db_type = db_type)
File “/home/frappe/iocl_bench/apps/frappe/frappe/commands/”, line 66, in _new_site
source_sql=source_sql,force=force, reinstall=reinstall, db_type=db_type)
File “/home/frappe/iocl_bench/apps/frappe/frappe/”, line 40, in install_db
File “/home/frappe/iocl_bench/apps/frappe/frappe/”, line 289, in remove_missing_apps
installed_apps = json.loads(frappe.db.get_global(“installed_apps”) or “[]”)
File “/home/frappe/iocl_bench/apps/frappe/frappe/database/”, line 683, in get_global
return self.get_default(key, user)
File “/home/frappe/iocl_bench/apps/frappe/frappe/database/”, line 687, in get_default
d = self.get_defaults(key, parent)
File “/home/frappe/iocl_bench/apps/frappe/frappe/database/”, line 705, in get_defaults
defaults = frappe.defaults.get_defaults(parent)
File “/home/frappe/iocl_bench/apps/frappe/frappe/”, line 71, in get_defaults
globald = get_defaults_for()
File “/home/frappe/iocl_bench/apps/frappe/frappe/”, line 193, in get_defaults_for
defaults = frappe.cache().hget(“defaults”, parent)
File “/home/frappe/iocl_bench/apps/frappe/frappe/utils/”, line 165, in hget
value = super(redis.Redis, self).hget(_name, key)
AttributeError: ‘super’ object has no attribute ‘hget’

Installed Python-dev,python-setuptools, python-pip, node, mariadb, redis-server, yarn

1 Like

i got the same error, have you found any solution yet?

No yar… Facing same problem.

Now I am able to create site . Without error not sure why it failed earlier.

1 Like

Did you start bench/supervisor?

can you share bench and frappe version?

Hi Kolate,

From yesterday I am not getting that error. Not sure why i got it before two days for multiple times.

Current versions

erpnext 12.x.x-develop
foundation 0.0.1
frappe 12.x.x-develop

Thank You

You can switch to master branch, which is more stable.

Can you please tell me what operations did you perform between that day, so it went fine.

please share your steps.

bench switch-to-master will switch branch to master

I’m still getting the error, Sambhaji.

go to frappe-bench folder

./env/bin/pip install redis==2.10.6

Good to go


Thanks its working. :grinning:


Thanks its working for me also…

It worked. :smiley: