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