Error in bench update to v9

i get error after bench update

Last login: Tue Oct 24 01:42:57 2017
frappe@erpnext:~$ cd frappe-bench
frappe@erpnext:~/frappe-bench$
frappe@erpnext:~/frappe-bench$ frappe@erpnext:~/frappe-bench$
-bash: frappe@erpnext:~/frappe-bench$: No such file or directory
frappe@erpnext:~/frappe-bench$ bench update
INFO:bench.utils:updating bench
INFO:bench.utils:git pull
Already up-to-date.
INFO:bench.utils:./env/bin/pip install Pillow
Requirement already satisfied: Pillow in ./env/lib/python2.7/site-packages
Requirement already satisfied: olefile in ./env/lib/python2.7/site-packages (from Pillow)
INFO:bench.app:pulling frappe
INFO:bench.utils:git pull upstream master
From GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript

  • branch master → FETCH_HEAD
    Already up-to-date.
    INFO:bench.utils:find . -name “*.pyc” -delete
    INFO:bench.app:pulling erpnext
    INFO:bench.utils:git pull upstream master
    From GitHub - frappe/erpnext: Free and Open Source Enterprise Resource Planning (ERP)
  • branch master → FETCH_HEAD
    Already up-to-date.
    INFO:bench.utils:find . -name “*.pyc” -delete
    INFO:bench.app:pulling erpnext_demo
    INFO:bench.utils:git pull upstream master
    From GitHub - frappe/erpnext_demo: Deprecated with Version 7 (will work till v6)
  • branch master → FETCH_HEAD
    Already up-to-date.
    INFO:bench.utils:find . -name “*.pyc” -delete
    INFO:bench.app:pulling mandrill_integration
    INFO:bench.utils:git pull upstream master
    From GitHub - frappe/mandrill_integration: Set Communication status from Mandrill via webhooks
  • branch master → FETCH_HEAD
    Already up-to-date.
    INFO:bench.utils:find . -name “*.pyc” -delete
    Updating Python libraries…
    INFO:bench.utils:./env/bin/pip install --upgrade pip
    Requirement already up-to-date: pip in ./env/lib/python2.7/site-packages
    INFO:bench.utils:./env/bin/pip install -q -r /home/frappe/bench-repo/requirements.txt
    INFO:bench.utils:./env/bin/pip install -q -r ./apps/erpnext/requirements.txt
    INFO:bench.utils:./env/bin/pip install -q -r ./apps/mandrill_integration/requirements.txt
    INFO:bench.utils:./env/bin/pip install -q -r ./apps/erpnext_demo/requirements.txt
    INFO:bench.utils:./env/bin/pip install -q -r ./apps/frappe/requirements.txt
    Updating node libraries…
    INFO:bench.utils:npm install
    npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
    npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.1.2
    npm WARN frappe@ No description
    Backing up sites…
    Patching sites…
    Migrating erpnext.vm
    Executing frappe.patches.v9_1.add_sms_sender_name_as_parameters in erpnext.vm (d56cb677eaab3383)
    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/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 94, in
    main()
    File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 18, in main
    click.Group(commands=commands)(prog_name=‘bench’)
    File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 722, in call
    return self.main(*args, **kwargs)
    File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 697, in main
    rv = self.invoke(ctx)
    File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
    File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
    File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
    File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 535, in invoke
    return callback(*args, **kwargs)
    File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/decorators.py”, line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
    File “/home/frappe/frappe-bench/apps/frappe/frappe/commands/init.py”, line 24, in _func
    ret = f(frappe._dict(ctx.obj), *args, **kwargs)
    File “/home/frappe/frappe-bench/apps/frappe/frappe/commands/site.py”, line 217, in migrate
    migrate(context.verbose, rebuild_website=rebuild_website)
    File “/home/frappe/frappe-bench/apps/frappe/frappe/migrate.py”, line 31, in migrate
    frappe.modules.patch_handler.run_all()
    File “/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 29, in run_all
    if not run_single(patchmodule = patch):
    File “/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 63, in run_single
    return execute_patch(patchmodule, method, methodargs)
    File “/home/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 83, in execute_patch
    frappe.get_attr(patchmodule.split()[0] + “.execute”)()
    File “/home/frappe/frappe-bench/apps/frappe/frappe/patches/v9_1/add_sms_sender_name_as_parameters.py”, line 11, in execute
    sms_settings = frappe.get_doc(“SMS Settings”)
    File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 622, in get_doc
    return frappe.model.document.get_doc(*args, **kwargs)
    File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 68, in get_doc
    return controller(*args, **kwargs)
    File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 103, in init
    self.load_from_db()
    File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 155, in load_from_db
    self.set(df.fieldname, children)
    File “/home/frappe/frappe-bench/apps/frappe/frappe/model/base_document.py”, line 123, in set
    self.extend(key, value)
    File “/home/frappe/frappe-bench/apps/frappe/frappe/model/base_document.py”, line 151, in extend
    self.append(key, v)
    File “/home/frappe/frappe-bench/apps/frappe/frappe/model/base_document.py”, line 137, in append
    value = self._init_child(value, key)
    File “/home/frappe/frappe-bench/apps/frappe/frappe/model/base_document.py”, line 166, in _init_child
    value = get_controller(value[“doctype”])(value)
    File “/home/frappe/frappe-bench/apps/frappe/frappe/model/base_document.py”, line 35, in get_controller
    module = load_doctype_module(doctype, module_name)
    File “/home/frappe/frappe-bench/apps/frappe/frappe/modules/utils.py”, line 185, in load_doctype_module
    raise ImportError(‘Module import failed for {0} ({1})’.format(doctype, module_name + ’ Error: ’ + str(e)))
    ImportError: Module import failed for SMS Parameter (erpnext.setup.doctype.sms_parameter.sms_parameter Error: No module named sms_parameter.sms_parameter)
    frappe@erpnext:~/frappe-bench$

did you solved this issue ?

I have exactly the same issue… please send me your insights if you solved it. kind regards from México.

Enrique

Added GitHub Issue :

https://github.com/frappe/frappe/issues/4525

Same issue… I tried to alter tabDocType table but still no success.

same issue updating from 9.2.0 to 9.2.21

Same issue any solution @revant_one

any update @revant_one