Getting error while Creating New Site

Hi,

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/runpy.py”, line 174, in _run_module_as_main
“main”, fname, loader, pkg_name)
File “/usr/lib/python2.7/runpy.py”, line 72, in _run_code
exec code in run_globals
File “/home/frappe/iocl_bench/apps/frappe/frappe/utils/bench_helper.py”, line 97, in
main()
File “/home/frappe/iocl_bench/apps/frappe/frappe/utils/bench_helper.py”, line 18, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/home/frappe/iocl_bench/env/local/lib/python2.7/site-packages/click/core.py”, line 764, in call
return self.main(args, kwargs)
File “/home/frappe/iocl_bench/env/local/lib/python2.7/site-packages/click/core.py”, line 717, in main
rv = self.invoke(ctx)
File “/home/frappe/iocl_bench/env/local/lib/python2.7/site-packages/click/core.py”, 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/core.py”, 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/core.py”, line 956, in invoke
return ctx.invoke(self.callback, ctx.params)
File “/home/frappe/iocl_bench/env/local/lib/python2.7/site-packages/click/core.py”, line 555, in invoke
return callback(args, **kwargs)
File “/home/frappe/iocl_bench/apps/frappe/frappe/commands/site.py”, line 33, in new_site
db_type = db_type)
File “/home/frappe/iocl_bench/apps/frappe/frappe/commands/site.py”, 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/installer.py”, line 40, in install_db
remove_missing_apps()
File “/home/frappe/iocl_bench/apps/frappe/frappe/installer.py”, 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/database.py”, line 683, in get_global
return self.get_default(key, user)
File “/home/frappe/iocl_bench/apps/frappe/frappe/database/database.py”, line 687, in get_default
d = self.get_defaults(key, parent)
File “/home/frappe/iocl_bench/apps/frappe/frappe/database/database.py”, line 705, in get_defaults
defaults = frappe.defaults.get_defaults(parent)
File “/home/frappe/iocl_bench/apps/frappe/frappe/defaults.py”, line 71, in get_defaults
globald = get_defaults_for()
File “/home/frappe/iocl_bench/apps/frappe/frappe/defaults.py”, line 193, in get_defaults_for
defaults = frappe.cache().hget(“defaults”, parent)
File “/home/frappe/iocl_bench/apps/frappe/frappe/utils/redis_wrapper.py”, 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

Hello,
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.

hii
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
write

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

Good to go

17 Likes

Thanks its working. :grinning:

@Himanshu_Mishra

Thanks its working for me also…

It worked. :smiley: