Hi All,
While restoring the sql backup to an local standalone machine .
we are getting an error while runnning the below command
bench --site site1.local migrate
error is attach
ubuntu@ip-172-31-42-108:~/frappe-bench$ bench --site
site1.local --force
restore
/tmp/20160523_47212338_database.sql
MySQL root password:
*** Scheduler is disabled ***
ubuntu@ip-172-31-42-108:~/frappe-bench$ bench --site site1.local remove-from-ins
talled-apps frappe_subscription
ubuntu@ip-172-31-42-108:~/frappe-bench$ bench --site
site1.local migrate
Migrating site1.local
Traceback (most recent call last):
File “/usr/lib/python2.7/runpy.py”, line
162, 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/ubuntu/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”,
lin
e 79, in
main()
File
“/home/ubuntu/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”,
lin
e 16, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/co
re.py”, line 716, in call
return self.main(*args, **kwargs)
File
“/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/co
re.py”, line 696, in main
rv = self.invoke(ctx)
File
“/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/co
re.py”, line 1060, in invoke
return
_process_result(sub_ctx.command.invoke(sub_ctx))
File
“/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/co
re.py”, line 1060, in invoke
return
_process_result(sub_ctx.command.invoke(sub_ctx))
File
“/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/co
re.py”, line 889, in invoke
return ctx.invoke(self.callback,
**ctx.params)
File
“/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/co
re.py”, line 534, in invoke
return callback(*args, **kwargs)
File
“/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/de
corators.py”, line 17, in new_func
return f(get_current_context(), *args,
**kwargs)
File
“/home/ubuntu/frappe-bench/apps/frappe/frappe/commands.py”, line 29,
in
_
func
ret = f(frappe._dict(ctx.obj), *args,
**kwargs)
File
“/home/ubuntu/frappe-bench/apps/frappe/frappe/commands.py”, line 205,
in
migrate
migrate(context.verbose,
rebuild_website=rebuild_website)
File
“/home/ubuntu/frappe-bench/apps/frappe/frappe/migrate.py”, line 27,
in
mi
grate
frappe.modules.patch_handler.run_all()
File
“/home/ubuntu/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”,
line 23, in run_all
for patch in get_all_patches():
File
“/home/ubuntu/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”,
line 37, in get_all_patches
patches.extend(frappe.get_file_items(frappe.get_pymodule_path(app,
“patches.
txt”)))
File
“/home/ubuntu/frappe-bench/apps/frappe/frappe/init.py”, line 637,
in
get_pymodule_path
return
os.path.join(os.path.dirname(get_module(scrub(modulename)).file),
*joins)
File
“/home/ubuntu/frappe-bench/apps/frappe/frappe/init.py”, line 599,
in
get_module
return
importlib.import_module(modulename)
File
“/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
__import__(name)
ImportError: No module named mandrill_integration