Hello Guys!!
I have faced below issue while creating new site in master branch.
frappe-bench~/workspace/erpnext/frappe-bench$ bench new-site master_dev1
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/demo/workspace/erpnext/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 94, in
main()
File “/home/demo/workspace/erpnext/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 18, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/home/demo/workspace/erpnext/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 764, in call
return self.main(*args, **kwargs)
File “/home/demo/workspace/erpnext/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 717, in main
rv = self.invoke(ctx)
File “/home/demo/workspace/erpnext/frappe-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/demo/workspace/erpnext/frappe-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/demo/workspace/erpnext/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/demo/workspace/erpnext/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 555, in invoke
return callback(*args, **kwargs)
File “/home/demo/workspace/erpnext/frappe-bench/apps/frappe/frappe/commands/site.py”, line 34, in new_site
verbose=verbose, install_apps=install_app, source_sql=source_sql, force=force)
File “/home/demo/workspace/erpnext/frappe-bench/apps/frappe/frappe/commands/site.py”, line 65, in _new_site
admin_password=admin_password, verbose=verbose, source_sql=source_sql,force=force, reinstall=reinstall)
File “/home/demo/workspace/erpnext/frappe-bench/apps/frappe/frappe/installer.py”, line 34, in install_db
frappe.local.db = get_root_connection(root_login, root_password)
File “/home/demo/workspace/erpnext/frappe-bench/apps/frappe/frappe/installer.py”, line 103, in get_root_connection
frappe.local.flags.root_connection = frappe.database.Database(user=root_login, password=root_password)
AttributeError: ‘module’ object has no attribute ‘Database’
Please anybody has solution.
Thanks.