Bench Update Error V5

While taking bench update , I got following error.

Command "/home/indictrans/Documents/ESetup/ERP5/frappe-bench/env/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-TzOdYg/cffi/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-7JWdXQ-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/indictrans/Documents/ESetup/ERP5/frappe-bench/env/include/site/python2.7/cffi" failed with error code 1 in /tmp/pip-build-TzOdYg/cffi

Error: None
Traceback (most recent call last):
  File "/usr/local/bin/bench", line 9, in <module>
    load_entry_point('bench==0.1', 'console_scripts', 'bench')()
  File "/home/indictrans/Documents/Firebird/bench-repo/bench/cli.py", line 56, in cli
    bench()
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 610, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 590, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 936, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 782, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 416, in invoke
    return callback(*args, **kwargs)
  File "/home/indictrans/Documents/Firebird/bench-repo/bench/cli.py", line 239, in update
    update_requirements()
  File "/home/indictrans/Documents/Firebird/bench-repo/bench/utils.py", line 324, in update_requirements
    exec_cmd("{pip} install -q -r {req_file}".format(pip=pip, req_file=req_file))
  File "/home/indictrans/Documents/Firebird/bench-repo/bench/utils.py", line 80, in exec_cmd
    subprocess.check_call(cmd, cwd=cwd, shell=True)
  File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command './env/bin/pip install -q -r ./apps/frappe/requirements.txt' returned non-zero exit status 1

This looks like an incomplete traceback. Can you post the full one?

@anand i got same error :
here full trace screen sciprt error

myme@demo:~/frappe-bench$ bench update

remote: Counting objects: 4, done.
remote: Total 4 (delta 2), reused 2 (delta 2), pack-reused 2
Unpacking objects: 100% (4/4), done.
From https://github.com/frappe/bench
a421da1…b07f400 master -> origin/master
Updating a421da1…b07f400
Fast-forward
README.md | 7 ++±—
1 file changed, 3 insertions(+), 4 deletions(-)
remote: Counting objects: 167, done.
remote: Compressing objects: 100% (118/118), done.
remote: Total 167 (delta 92), reused 36 (delta 36), pack-reused 13
Receiving objects: 100% (167/167), 70.08 KiB, done.
Resolving deltas: 100% (92/92), completed with 36 local objects.
From https://github.com/frappe/frappe
6e6a469…0e2f853 develop -> upstream/develop
263d94f…78b390e v6-wip -> upstream/v6-wip
From https://github.com/frappe/shopping-cart

  • branch develop -> FETCH_HEAD
    Already up-to-date.
    remote: Counting objects: 229, done.
    remote: Compressing objects: 100% (112/112), done.
    remote: Total 229 (delta 163), reused 100 (delta 100), pack-reused 17
    Receiving objects: 100% (229/229), 57.74 KiB, done.
    Resolving deltas: 100% (163/163), completed with 73 local objects.
    From https://github.com/frappe/erpnext
  • branch develop -> FETCH_HEAD
    Updating 69095e7…ba1f426
    Fast-forward
    README.md | 6 ±
    …/doctype/journal_entry/journal_entry.py | 5 ±
    …/accounts/doctype/pos_profile/pos_profile.py | 6 -
    …/doctype/sales_invoice/test_sales_invoice.py | 2 ±
    erpnext/accounts/general_ledger.py | 3 ±
    erpnext/buying/doctype/supplier/supplier.js | 2 +
    …/current/stock_entry_additional_costs.md | 2 +
    erpnext/controllers/accounts_controller.py | 2 ±
    erpnext/crm/doctype/opportunity/opportunity.js | 16 ±
    …/manufacturing_settings.json | 13 ±
    …/doctype/production_order/production_order.js | 2 ±
    …/doctype/production_order/production_order.py | 9 ±
    …/production_order/test_production_order.py | 8 ±
    erpnext/patches.txt | 2 +
    erpnext/patches/v5_4/fix_missing_item_images.py | 116 ++++
    …/patches/v5_4/stock_entry_additional_costs.py | 42 ++
    erpnext/selling/doctype/customer/customer.js | 3 +
    erpnext/selling/doctype/customer/customer.json | 564 ++++++++++++++±-
    erpnext/selling/doctype/customer/customer.py | 3 ±
    erpnext/setup/doctype/company/company.py | 2 ±
    …/doctype/delivery_note/test_delivery_note.py | 12 ±
    erpnext/stock/doctype/item/test_item.py | 2 ±
    …/doctype/material_request/material_request.py | 2 ±
    …/material_request/test_material_request.py | 16 ±
    …/purchase_receipt/test_purchase_receipt.py | 4 ±
    erpnext/stock/doctype/stock_entry/stock_entry.js | 67 ±
    erpnext/stock/doctype/stock_entry/stock_entry.json | 648 +++++++++++++++++±-
    erpnext/stock/doctype/stock_entry/stock_entry.py | 340 ++++++±–
    …/stock/doctype/stock_entry/test_records.json | 10 ±
    …/stock/doctype/stock_entry/test_stock_entry.py | 63 ±
    …/stock_entry_detail/stock_entry_detail.json | 584 +++++++++++++++±-
    …/test_stock_reconciliation.py | 4 ±
    erpnext/templates/form_grid/stock_entry_grid.html | 4 ±
    erpnext/utilities/doctype/address/address.json | 4 ±
    erpnext/utilities/repost_stock.py | 2 ±
    sponsors.md | 16 +
    36 files changed, 2223 insertions(+), 363 deletions(-)
    create mode 100644 erpnext/change_log/current/stock_entry_additional_costs.md
    create mode 100644 erpnext/patches/v5_4/fix_missing_item_images.py
    create mode 100644 erpnext/patches/v5_4/stock_entry_additional_costs.py
    From https://github.com/frappe/frappe
  • branch develop -> FETCH_HEAD
    Updating 6e6a469…0e2f853
    Fast-forward
    frappe/init.py | 2 ±
    frappe/change_log/current/integrations.md | 1 +
    frappe/config/desktop.py | 6 +
    frappe/config/integrations.py | 23 ++
    frappe/config/setup.py | 6 -
    frappe/config/website.py | 5 -
    …/core/doctype/communication/communication.json | 414 +++++++++±---------
    frappe/core/doctype/doctype/doctype.py | 4 ±
    frappe/desk/form/load.py | 2 ±
    frappe/desk/form/save.py | 4 ±
    frappe/email/bulk.py | 22 ±
    …/email_unsubscribe/email_unsubscribe.json | 36 ±
    …/doctype/email_unsubscribe/email_unsubscribe.py | 30 ±
    frappe/email/email_body.py | 6 ±
    frappe/handler.py | 4 ±
    …/social_login_keys => integrations}/init.py | 0
    …/social_login_keys/social_login_keys.json | 221 +++++++++++
    …/doctype/social_login_keys/social_login_keys.py | 0
    frappe/model/document.py | 5 ±
    frappe/modules.txt | 1 +
    frappe/public/css/form.css | 12 +
    frappe/public/js/frappe/form/dashboard.js | 2 ±
    …/js/frappe/form/footer/timeline_item.html | 21 ±
    frappe/public/js/frappe/form/formatters.js | 2 ±
    frappe/public/js/frappe/form/save.js | 17 ±
    frappe/public/js/frappe/ui/toolbar/about.js | 2 ±
    frappe/public/js/legacy/form.js | 2 ±
    frappe/public/less/form.less | 15 +
    frappe/public/less/variables.less | 1 +
    frappe/utils/boilerplate.py | 2 ±
    …/social_login_keys/social_login_keys.json | 80 ----
    requirements.txt | 2 +
    32 files changed, 625 insertions(+), 325 deletions(-)
    create mode 100644 frappe/change_log/current/integrations.md
    create mode 100644 frappe/config/integrations.py
    rename frappe/{website/doctype/social_login_keys => integrations}/init.py (100%)
    create mode 100644 frappe/integrations/doctype/init.py
    create mode 100644 frappe/integrations/doctype/social_login_keys/init.py
    create mode 100644 frappe/integrations/doctype/social_login_keys/social_login_keys.json
    rename frappe/{website => integrations}/doctype/social_login_keys/social_login_keys.py (100%)
    delete mode 100644 frappe/website/doctype/social_login_keys/social_login_keys.json
    You are using pip version 6.0.8, however version 7.1.0 is available.
    You should consider upgrading via the ‘pip install --upgrade pip’ command.
    You are using pip version 6.0.8, however version 7.1.0 is available.
    You should consider upgrading via the ‘pip install --upgrade pip’ command.
    You are using pip version 6.0.8, however version 7.1.0 is available.
    You should consider upgrading via the ‘pip install --upgrade pip’ command.
    Command “/home/myme/frappe-bench/env/bin/python -c “import setuptools, tokenize;file=’/tmp/pip-build-oMTo_l/cffi/setup.py’;exec(compile(getattr(tokenize, ‘open’, open)(file).read().replace(’\r\n’, ‘\n’), file, ‘exec’))” install --record /tmp/pip-P34F7n-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/myme/frappe-bench/env/include/site/python2.7” failed with error code 1 in /tmp/pip-build-oMTo_l/cffi
    Error: None
    Traceback (most recent call last):
    File “/usr/local/bin/bench”, line 9, in
    load_entry_point(‘bench==0.1’, ‘console_scripts’, ‘bench’)()
    File “/home/myme/bench-repo/bench/cli.py”, line 56, in cli
    bench()
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 664, in call
    return self.main(*args, **kwargs)
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 644, in main
    rv = self.invoke(ctx)
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 991, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 837, in invoke
    return ctx.invoke(self.callback, **ctx.params)
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 464, in invoke
    return callback(*args, **kwargs)
    File “/home/myme/bench-repo/bench/cli.py”, line 239, in update
    update_requirements()
    File “/home/myme/bench-repo/bench/utils.py”, line 324, in update_requirements
    exec_cmd("{pip} install -q -r {req_file}".format(pip=pip, req_file=req_file))
    File “/home/myme/bench-repo/bench/utils.py”, line 80, in exec_cmd
    subprocess.check_call(cmd, cwd=cwd, shell=True)
    File “/usr/lib/python2.7/subprocess.py”, line 511, in check_call
    raise CalledProcessError(retcode, cmd)
    subprocess.CalledProcessError: Command ‘./env/bin/pip install -q -r ./apps/frappe/requirements.txt’ returned non-zero exit status 1

Same problem here with a clean vagrant box, I thought it was a problem of vagrant or my setup but since more peoeple are having the issue its clearly not. @anand let us know when you have found the problem so I can then do a clean update again.

Hi. Can you update again. I had added pyopenssl in requirements to remove the insecure platform warning. It could be causing the issue.

2 Likes

Its fixed… thanks

phew! sorry people.

Another option is to upgrade pip to remove that insecure platform warning.

cd frappe-bench && ./env/bin/pip install --upgrade pip

-Anand.

even after update
/home/myme/frappe-bench/env/local/lib/python2.7/site-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning

still showed… which part of pirt i need to specsiffically update it… maybe thats will help

Maybe this might help: https://urllib3.readthedocs.org/en/latest/security.html#pyopenssl

do ./env/bin/pip install certifi works for me

1 Like

Nice! We can add that to requirements. It adds mozillas certificates.

bench update error…

ikhlas@Ikhlas:~/sajid/frappe-bench$ bench update
remote: Counting objects: 393, done.
remote: Compressing objects: 100% (199/199), done.
remote: Total 393 (delta 253), reused 152 (delta 149), pack-reused 45
Receiving objects: 100% (393/393), 2.26 MiB | 163 KiB/s, done.
Resolving deltas: 100% (261/261), completed with 85 local objects.
From https://github.com/frappe/frappe
473d1e4…9110268 master -> upstream/master
473d1e4…3c5bd01 develop -> upstream/develop
c6de7c1…259b681 gh-pages -> upstream/gh-pages

  • [new tag] v6.18.1 -> v6.18.1
    From https://github.com/frappe/frappe
  • [new tag] v6.17.5 -> v6.17.5
  • [new tag] v6.17.6 -> v6.17.6
  • [new tag] v6.18.0 -> v6.18.0
    INFO:bench.utils:setting up sudoers
    Already up-to-date.
    Requirement already satisfied (use --upgrade to upgrade): Pillow in ./env/lib/python2.7/site-packages
    INFO:bench.app:pulling frappe
    From https://github.com/frappe/frappe
  • branch master -> FETCH_HEAD
    Updating 473d1e4…9110268
    Fast-forward
    frappe/init.py | 4 ±
    frappe/version.py | 2 ±
    frappe/async.py | 19 ±
    frappe/commands.py | 2 +
    frappe/core/doctype/comment/comment.py | 10 ±
    frappe/core/doctype/communication/communication.js | 2 ±
    frappe/core/doctype/communication/communication.py | 2 ±
    frappe/core/doctype/docshare/docshare.py | 9 ±
    frappe/core/doctype/doctype/doctype.json | 41 +±
    frappe/core/doctype/doctype/doctype.py | 2 ±
    frappe/core/doctype/role/role.py | 4 +
    frappe/core/doctype/user/user.js | 2 ±
    frappe/core/doctype/user/user.json | 6 ±
    frappe/core/page/data_import_tool/importer.py | 5 ±
    …/doctype/customize_form/customize_form.js | 1 -
    frappe/desk/doctype/event/event.json | 36 +±
    frappe/desk/like.py | 6 ±
    frappe/desk/page/applications/applications.py | 6 ±
    frappe/desk/page/setup_wizard/setup_wizard.js | 2 ±
    frappe/docs/user/tutorial/controllers.md | 2 ±
    frappe/docs/user/tutorial/index.md | 6 ±
    frappe/hooks.py | 2 ±
    frappe/model/base_document.py | 5 ±
    frappe/model/document.py | 4 ±
    …/print_format_builder_column_selector.html | 20 ±
    frappe/public/build.json | 11 ±
    frappe/public/css/common.css | 1 +
    frappe/public/css/desk.css | 1 +
    frappe/public/css/navbar.css | 4 ±
    frappe/public/css/website.css | 1 +
    frappe/public/js/frappe/desk.js | 8 +
    frappe/public/js/frappe/dom.js | 12 +
    frappe/public/js/frappe/form/control.js | 10 ±
    frappe/public/js/frappe/form/footer/timeline.js | 2 ±
    frappe/public/js/frappe/form/formatters.js | 2 ±
    frappe/public/js/frappe/misc/utils.js | 12 -
    frappe/public/js/frappe/model/indicator.js | 2 ±
    frappe/public/js/frappe/socketio_client.js | 4 ±
    frappe/public/js/frappe/ui/button.js | 45 —
    frappe/public/js/frappe/ui/editor.js | 2 ±
    …/public/js/frappe/views/reports/query_report.js | 9 ±
    frappe/public/js/frappe/website/editable.js | 57 ----
    frappe/public/js/legacy/dom.js | 36 ±-
    frappe/public/js/legacy/layout.js | 42 ±-
    frappe/public/less/common.less | 1 +
    frappe/public/less/navbar.less | 5 ±
    frappe/sessions.py | 2 ±
    frappe/translations/ar.csv | 227 ++++++±-------
    frappe/translations/bg.csv | 227 ++++++±-------
    frappe/translations/bn.csv | 227 ++++++±-------
    frappe/translations/bs.csv | 227 ++++++±-------
    frappe/translations/ca.csv | 227 ++++++±-------
    frappe/translations/cs.csv | 235 +++++++±-------
    frappe/translations/da-DK.csv | 198 ++++++±------
    frappe/translations/da.csv | 227 ++++++±-------
    frappe/translations/de.csv | 243 +++++++±-------
    frappe/translations/el.csv | 229 +++++++±-------
    frappe/translations/es-PE.csv | 198 ++++++±------
    frappe/translations/es.csv | 227 ++++++±-------
    frappe/translations/fa.csv | 227 ++++++±-------
    frappe/translations/fi.csv | 227 ++++++±-------
    frappe/translations/fr.csv | 231 +++++++±-------
    frappe/translations/gu.csv | 227 ++++++±-------
    frappe/translations/he.csv | 215 +++++++±------
    frappe/translations/hi.csv | 227 ++++++±-------
    frappe/translations/hr.csv | 227 ++++++±-------
    frappe/translations/hu.csv | 227 ++++++±-------
    frappe/translations/id.csv | 227 ++++++±-------
    frappe/translations/it.csv | 289 +++++++++±---------
    frappe/translations/ja.csv | 227 ++++++±-------
    frappe/translations/km.csv | 132 +++±----
    frappe/translations/kn.csv | 227 ++++++±-------
    frappe/translations/ko.csv | 227 ++++++±-------
    frappe/translations/lv.csv | 227 ++++++±-------
    frappe/translations/mk.csv | 227 ++++++±-------
    frappe/translations/ml.csv | 227 ++++++±-------
    frappe/translations/mr.csv | 227 ++++++±-------
    frappe/translations/ms.csv | 227 ++++++±-------
    frappe/translations/my.csv | 227 ++++++±-------
    frappe/translations/nl.csv | 227 ++++++±-------
    frappe/translations/no.csv | 227 ++++++±-------
    frappe/translations/pl.csv | 227 ++++++±-------
    frappe/translations/pt-BR.csv | 227 ++++++±-------
    frappe/translations/pt.csv | 227 ++++++±-------
    frappe/translations/ro.csv | 227 ++++++±-------
    frappe/translations/ru.csv | 241 +++++++±-------
    frappe/translations/sk.csv | 227 ++++++±-------
    frappe/translations/sl.csv | 227 ++++++±-------
    frappe/translations/sq.csv | 227 ++++++±-------
    frappe/translations/sr.csv | 225 ++++++±-------
    frappe/translations/sv.csv | 227 ++++++±-------
    frappe/translations/ta.csv | 227 ++++++±-------
    frappe/translations/th.csv | 227 ++++++±-------
    frappe/translations/tr.csv | 229 +++++++±-------
    frappe/translations/uk.csv | 227 ++++++±-------
    frappe/translations/vi.csv | 237 +++++++±-------
    frappe/translations/zh-cn.csv | 257 +++++++±--------
    frappe/translations/zh-tw.csv | 227 ++++++±-------
    frappe/utils/init.py | 5 ±
    frappe/website/js/website.js | 10 ±
    setup.py | 2 ±
    101 files changed, 6141 insertions(+), 5903 deletions(-)
    delete mode 100644 frappe/public/js/frappe/ui/button.js
    delete mode 100644 frappe/public/js/frappe/website/editable.js
    INFO:bench.app:pulling erpnext
    remote: Counting objects: 194, done.
    remote: Compressing objects: 100% (17/17), done.
    remote: Total 194 (delta 144), reused 137 (delta 137), pack-reused 40
    Receiving objects: 100% (194/194), 781.88 KiB | 112 KiB/s, done.
    Resolving deltas: 100% (155/155), completed with 105 local objects.
    From https://github.com/frappe/erpnext
  • branch master -> FETCH_HEAD
    Updating 574415b…108bc78
    Fast-forward
    README.md | 2 ±
    erpnext/version.py | 2 ±
    …/period_closing_voucher.json | 2 ±
    …/doctype/sales_invoice/sales_invoice.py | 3 +
    …/accounts_receivable/accounts_receivable.py | 1 +
    …/accounts/report/balance_sheet/balance_sheet.py | 8 ±
    erpnext/accounts/report/cash_flow/cash_flow.py | 17 ±
    erpnext/accounts/report/financial_statements.html | 2 ±
    erpnext/accounts/report/financial_statements.py | 28 ±
    …/profit_and_loss_statement.py | 11 ±
    …/accounts/report/trial_balance/trial_balance.py | 2 +
    erpnext/docs/assets/img/setup/key-workflows.png | Bin 0 -> 76924 bytes
    …/articles/production-planning-subassembly.md | 9 +
    …/articles/valuation-based-on-field-in-bom.md | 17 +
    …/articles/creating-depreciation-for-item.md | 24 +
    …/articles/managing-batch-wise-inventory.md | 23 +
    …/articles/managing-user-sign-up-via-website.md | 22 +
    …/manual/en/website/articles/website-security.md | 9 +
    erpnext/hooks.py | 2 ±
    erpnext/patches/v4_2/repost_reserved_qty.py | 18 ±
    erpnext/public/js/setup_wizard.js | 88 -
    erpnext/public/js/templates/address_list.html | 2 ±
    erpnext/public/js/templates/contact_list.html | 2 ±
    erpnext/setup/doctype/email_digest/email_digest.js | 44 ±
    …/terms_and_conditions/terms_and_conditions.json | 28 ±
    erpnext/setup/setup_wizard/setup_wizard.py | 12 ±
    …/delivery_note_item/delivery_note_item.json | 2390 ++++±----
    erpnext/stock/doctype/item/item.json | 4982 +++++++++±---------
    erpnext/translations/ar.csv | 294 ±
    erpnext/translations/bg.csv | 294 ±
    erpnext/translations/bn.csv | 294 ±
    erpnext/translations/bs.csv | 294 ±
    erpnext/translations/ca.csv | 294 ±
    erpnext/translations/cs.csv | 328 ±
    erpnext/translations/da-DK.csv | 259 ±
    erpnext/translations/da.csv | 294 ±
    erpnext/translations/de.csv | 316 ±
    erpnext/translations/el.csv | 300 ±
    erpnext/translations/es-PE.csv | 259 ±
    erpnext/translations/es.csv | 294 ±
    erpnext/translations/fa.csv | 294 ±
    erpnext/translations/fi.csv | 294 ±
    erpnext/translations/fr.csv | 320 ±
    erpnext/translations/gu.csv | 294 ±
    erpnext/translations/he.csv | 287 ±
    erpnext/translations/hi.csv | 294 ±
    erpnext/translations/hr.csv | 294 ±
    erpnext/translations/hu.csv | 294 ±
    erpnext/translations/id.csv | 294 ±
    erpnext/translations/it.csv | 338 ±
    erpnext/translations/ja.csv | 294 ±
    erpnext/translations/km.csv | 149 ±
    erpnext/translations/kn.csv | 294 ±
    erpnext/translations/ko.csv | 294 ±
    erpnext/translations/lv.csv | 294 ±
    erpnext/translations/mk.csv | 294 ±
    erpnext/translations/ml.csv | 294 ±
    erpnext/translations/mr.csv | 294 ±
    erpnext/translations/ms.csv | 294 ±
    erpnext/translations/my.csv | 294 ±
    erpnext/translations/nl.csv | 294 ±
    erpnext/translations/no.csv | 294 ±
    erpnext/translations/pl.csv | 294 ±
    erpnext/translations/pt-BR.csv | 294 ±
    erpnext/translations/pt.csv | 294 ±
    erpnext/translations/ro.csv | 292 ±
    erpnext/translations/ru.csv | 392 ±
    erpnext/translations/sk.csv | 294 ±
    erpnext/translations/sl.csv | 294 ±
    erpnext/translations/sq.csv | 294 ±
    erpnext/translations/sr.csv | 292 ±
    erpnext/translations/sv.csv | 294 ±
    erpnext/translations/ta.csv | 294 ±
    erpnext/translations/th.csv | 294 ±
    erpnext/translations/tr.csv | 328 ±
    erpnext/translations/uk.csv | 290 ±
    erpnext/translations/vi.csv | 330 ±
    erpnext/translations/zh-cn.csv | 372 ±
    erpnext/translations/zh-tw.csv | 294 ±
    setup.py | 2 ±
    80 files changed, 11671 insertions(+), 11223 deletions(-)
    create mode 100644 erpnext/docs/assets/img/setup/key-workflows.png
    create mode 100644 erpnext/docs/user/manual/en/manufacturing/articles/production-planning-subassembly.md
    create mode 100644 erpnext/docs/user/manual/en/manufacturing/articles/valuation-based-on-field-in-bom.md
    create mode 100644 erpnext/docs/user/manual/en/stock/articles/creating-depreciation-for-item.md
    create mode 100644 erpnext/docs/user/manual/en/stock/articles/managing-batch-wise-inventory.md
    create mode 100644 erpnext/docs/user/manual/en/website/articles/managing-user-sign-up-via-website.md
    create mode 100644 erpnext/docs/user/manual/en/website/articles/website-security.md
    INFO:bench.app:pulling shopping_cart
    From https://github.com/frappe/shopping-cart
  • branch develop -> FETCH_HEAD
    Already up-to-date.
    INFO:bench.app:pulling base_vat
    From https://github.com/saguas/frappe_base_vat
  • branch master -> FETCH_HEAD
    Already up-to-date.
    INFO:bench.app:pulling jasper_erpnext_report
    remote: Counting objects: 24, done.
    remote: Total 24 (delta 12), reused 12 (delta 12), pack-reused 12
    Unpacking objects: 100% (24/24), done.
    From https://github.com/saguas/jasper_erpnext_report
  • branch master -> FETCH_HEAD
    Updating a9088a2…86f8bad
    Fast-forward
    …/doctype/jasper_permrole/jasper_permrole.json | 70 ++++++++±-
    …/doctype/jasper_reports/jasper_reports.json | 132 ++++++++++++++++++±
    …/jasperserverconfig/jasperserverconfig.json | 98 +++++++++++++±
    3 files changed, 284 insertions(+), 16 deletions(-)
    INFO:bench.app:pulling poll
    From https://github.com/frappe/poll
  • branch master -> FETCH_HEAD
    Already up-to-date.
    INFO:bench.app:pulling knowledge_base
    From https://github.com/frappe/knowledge_base
  • branch master -> FETCH_HEAD
    Already up-to-date.
    INFO:bench.app:pulling fleet
    From https://github.com/revant/fleet
  • branch develop -> FETCH_HEAD
    Already up-to-date.
    INFO:bench.app:pulling civil_contracting
    From https://github.com/revant/civil_contracting
  • branch master -> FETCH_HEAD
    Already up-to-date.
    INFO:bench.app:pulling schools
    remote: Counting objects: 80, done.
    remote: Compressing objects: 100% (20/20), done.
    remote: Total 80 (delta 33), reused 26 (delta 26), pack-reused 34
    Unpacking objects: 100% (80/80), done.
    From https://github.com/frappe/schools
  • branch master -> FETCH_HEAD
    Updating bc4a281…272868b
    Fast-forward
    schools/academics/doctype/course/course.js | 9 ±
    schools/academics/doctype/fees/fees.js | 1 -
    schools/academics/doctype/fees/fees.json | 17 ±
    schools/academics/doctype/program/program.js | 4 ±
    schools/academics/doctype/program/program.py | 8 ±
    …/program_enrollment/program_enrollment.json | 44 ±
    …/program_enrollment/program_enrollment.py | 17 ±
    …/doctype/scheduling_tool/scheduling_tool.py | 2 +
    schools/academics/doctype/student/student.json | 29 ±
    …/student_applicant/student_applicant.json | 125 ±
    …/student_applicant/student_applicant_list.js | 3 +
    …/doctype/student_group/student_group.py | 4 +
    schools/api.py | 1 -
    schools/config/desktop.py | 104 ±
    schools/demo_docs/Course.json | 134 ++
    schools/demo_docs/Department.json | 30 +
    schools/demo_docs/Instructor.json | 74 +
    schools/demo_docs/Program.json | 102 ++
    schools/demo_docs/Random Student Data.json | 1604 ++++++++++++++++++++
    schools/demo_docs/Room.json | 74 +
    schools/demo_docs/Student Applicant.json | 272 ++++
    schools/make_demo.py | 90 ++
    schools/public/logo.png | Bin 0 -> 14411 bytes
    schools/setup_wizard.py | 16 ±
    schools/simulate.py | 104 ++
    schools/templates/includes/start.js | 25 +
    schools/templates/pages/start.html | 43 +
    27 files changed, 2886 insertions(+), 50 deletions(-)
    create mode 100644 schools/demo_docs/Course.json
    create mode 100644 schools/demo_docs/Department.json
    create mode 100644 schools/demo_docs/Instructor.json
    create mode 100644 schools/demo_docs/Program.json
    create mode 100644 schools/demo_docs/Random Student Data.json
    create mode 100644 schools/demo_docs/Room.json
    create mode 100644 schools/demo_docs/Student Applicant.json
    create mode 100644 schools/make_demo.py
    create mode 100644 schools/public/logo.png
    create mode 100644 schools/simulate.py
    create mode 100644 schools/templates/includes/start.js
    create mode 100644 schools/templates/pages/start.html
    Requirement already up-to-date: pip in ./env/lib/python2.7/site-packages
    Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-g3hVFc-build
    Traceback (most recent call last):
    File “/usr/local/bin/bench”, line 9, in
    load_entry_point(‘bench==0.92’, ‘console_scripts’, ‘bench’)()
    File “/home/ikhlas/sajid/bench-repo/bench/cli.py”, line 60, in cli
    bench()
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 700, in call
    return self.main(*args, **kwargs)
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 680, in main
    rv = self.invoke(ctx)
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 1027, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 873, in invoke
    return ctx.invoke(self.callback, **ctx.params)
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 508, in invoke
    return callback(*args, **kwargs)
    File “/home/ikhlas/sajid/bench-repo/bench/cli.py”, line 241, in _update
    update(pull, patch, build, bench, auto, restart_supervisor, requirements, no_backup, upgrade, force=force)
    File “/home/ikhlas/sajid/bench-repo/bench/cli.py”, line 259, in update
    update_requirements(bench=bench_path)
    File “/home/ikhlas/sajid/bench-repo/bench/utils.py”, line 361, in update_requirements
    exec_cmd("{pip} install -q -r {req_file}".format(pip=pip, req_file=req_file))
    File “/home/ikhlas/sajid/bench-repo/bench/utils.py”, line 105, in exec_cmd
    raise CommandFailedError(cmd)
    bench.utils.CommandFailedError: ./env/bin/pip install -q -r ./apps/jasper_erpnext_report/requirements.txt
    ikhlas@Ikhlas:~/sajid/frappe-bench$

looks like some issue with one of the pre-requisites in jasper erpnext.

@luisfmfernandes can you have a look?

@anand: As soon as possible.
@Mohamed_Sajid: Meanwhile check if Java jdk is instaled.

S…Now What I Do For These Bench Updaate???

ikhlas@Ikhlas:~/sajid/frappe-bench$ bench update
INFO:bench.utils:setting up sudoers
Already up-to-date.
Requirement already satisfied (use --upgrade to upgrade): Pillow in ./env/lib/python2.7/site-packages
INFO:bench.app:pulling frappe
From https://github.com/frappe/frappe

  • branch master -> FETCH_HEAD
    Already up-to-date.
    INFO:bench.app:pulling erpnext
    From https://github.com/frappe/erpnext
  • branch master -> FETCH_HEAD
    Already up-to-date.
    INFO:bench.app:pulling shopping_cart
    From https://github.com/frappe/shopping-cart
  • branch develop -> FETCH_HEAD
    Already up-to-date.
    INFO:bench.app:pulling base_vat
    From https://github.com/saguas/frappe_base_vat
  • branch master -> FETCH_HEAD
    Already up-to-date.
    INFO:bench.app:pulling poll
    From https://github.com/frappe/poll
  • branch master -> FETCH_HEAD
    Already up-to-date.
    INFO:bench.app:pulling knowledge_base
    From https://github.com/frappe/knowledge_base
  • branch master -> FETCH_HEAD
    Already up-to-date.
    INFO:bench.app:pulling fleet
    From https://github.com/revant/fleet
  • branch develop -> FETCH_HEAD
    Already up-to-date.
    INFO:bench.app:pulling civil_contracting
    From https://github.com/revant/civil_contracting
  • branch master -> FETCH_HEAD
    Already up-to-date.
    INFO:bench.app:pulling schools
    From https://github.com/frappe/schools
  • branch master -> FETCH_HEAD
    Already up-to-date.
    /home/ikhlas/sajid/frappe-bench/env/local/lib/python2.7/site-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
    InsecurePlatformWarning
    Requirement already up-to-date: pip in ./env/lib/python2.7/site-packages
    Migrating testsite
    Updating frappe : [========================================]
    Updating fleet : [========================================]
    Updating erpnext : [========================================]
    Updating civil_contracting : [========================================]
    Updating schools : [========================================]
    Migrating ikhlaserp
    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/ikhlas/sajid/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 79, in
    main()
    File “/home/ikhlas/sajid/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 16, in main
    click.Group(commands=commands)(prog_name=‘bench’)
    File “/home/ikhlas/sajid/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 700, in call
    return self.main(*args, **kwargs)
    File “/home/ikhlas/sajid/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 680, in main
    rv = self.invoke(ctx)
    File “/home/ikhlas/sajid/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1027, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
    File “/home/ikhlas/sajid/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1027, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
    File “/home/ikhlas/sajid/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 873, in invoke
    return ctx.invoke(self.callback, **ctx.params)
    File “/home/ikhlas/sajid/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 508, in invoke
    return callback(*args, **kwargs)
    File “/home/ikhlas/sajid/frappe-bench/env/local/lib/python2.7/site-packages/click/decorators.py”, line 16, in new_func
    return f(get_current_context(), *args, **kwargs)
    File “/home/ikhlas/sajid/frappe-bench/apps/frappe/frappe/commands.py”, line 29, in _func
    ret = f(frappe._dict(ctx.obj), *args, **kwargs)
    File “/home/ikhlas/sajid/frappe-bench/apps/frappe/frappe/commands.py”, line 213, in migrate
    frappe.modules.patch_handler.run_all()
    File “/home/ikhlas/sajid/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 23, in run_all
    for patch in get_all_patches():
    File “/home/ikhlas/sajid/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/ikhlas/sajid/frappe-bench/apps/frappe/frappe/init.py”, line 628, in get_pymodule_path
    return os.path.join(os.path.dirname(get_module(scrub(modulename)).file), *joins)
    File “/home/ikhlas/sajid/frappe-bench/apps/frappe/frappe/init.py”, line 590, 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 jasper_erpnext_report
    Traceback (most recent call last):
    File “/usr/local/bin/bench”, line 9, in
    load_entry_point(‘bench==0.92’, ‘console_scripts’, ‘bench’)()
    File “/home/ikhlas/sajid/bench-repo/bench/cli.py”, line 60, in cli
    bench()
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 700, in call
    return self.main(*args, **kwargs)
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 680, in main
    rv = self.invoke(ctx)
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 1027, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 873, in invoke
    return ctx.invoke(self.callback, **ctx.params)
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 508, in invoke
    return callback(*args, **kwargs)
    File “/home/ikhlas/sajid/bench-repo/bench/cli.py”, line 241, in _update
    update(pull, patch, build, bench, auto, restart_supervisor, requirements, no_backup, upgrade, force=force)
    File “/home/ikhlas/sajid/bench-repo/bench/cli.py”, line 270, in update
    patch_sites(bench=bench_path)
    File “/home/ikhlas/sajid/bench-repo/bench/utils.py”, line 161, in patch_sites
    run_frappe_cmd(’–site’, ‘all’, ‘migrate’, bench=bench)
    File “/home/ikhlas/sajid/bench-repo/bench/utils.py”, line 496, in run_frappe_cmd
    raise CommandFailedError(args)
    bench.utils.CommandFailedError: (’–site’, ‘all’, ‘migrate’)

You delete jasper_erpnext_report module in the wrong way.
Try to remove it from file frappe-bench/sites/apps.txt.

OR

bench remove-from-installed-apps jasper_erpnext_report

If wall that do not solve your problem then try bench uninstall-app jasper_erpnext_report

Luis.

Thanks lot For @all

ikhlas@Ikhlas:~/erpnext/frappe-bench$ bench update
INFO:bench.utils:setting up sudoers
Already up-to-date.
Requirement already satisfied (use --upgrade to upgrade): Pillow in ./env/lib/python2.7/site-packages
INFO:bench.app:pulling frappe
From https://github.com/frappe/frappe

  • branch master -> FETCH_HEAD
    Already up-to-date.
    INFO:bench.app:pulling erpnext
    From https://github.com/frappe/erpnext
  • branch master -> FETCH_HEAD
    Already up-to-date.
    INFO:bench.app:pulling fleet_management
    From https://github.com/dalwadani/fleet_management
  • branch master -> FETCH_HEAD
    Already up-to-date.
    INFO:bench.app:pulling shopping_cart
    From https://github.com/frappe/shopping_cart
  • branch develop -> FETCH_HEAD
    Already up-to-date.
    /home/ikhlas/erpnext/frappe-bench/env/local/lib/python2.7/site-packages/pip/vendor/requests/packages/urllib3/util/ssl.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
    InsecurePlatformWarning
    Requirement already up-to-date: pip in ./env/lib/python2.7/site-packages
    Migrating site1.local
    Updating frappe : [========================================]
    Updating erpnext : [========================================]
    Migrating ikhlaskk
    Executing frappe.patches.v5_0.convert_to_barracuda_and_utf8mb4 in ikhlaskk (f13bed8599)
    Success
    Executing frappe.patches.v6_1.rename_file_data in ikhlaskk (f13bed8599)
    Success
    Executing execute:frappe.reload_doc(‘core’, ‘doctype’, ‘docfield’, force=True) #2015-10-16 in ikhlaskk (f13bed8599)
    Success
    Executing execute:frappe.reload_doc(‘core’, ‘doctype’, ‘docperm’) #2014-06-24 in ikhlaskk (f13bed8599)
    Success
    Executing execute:frappe.reload_doc(‘custom’, ‘doctype’, ‘custom_field’) #2015-10-19 in ikhlaskk (f13bed8599)
    Success
    Executing execute:frappe.reload_doc(‘email’, ‘doctype’, ‘email_alert’) #2014-07-15 in ikhlaskk (f13bed8599)
    Success
    Executing execute:frappe.reload_doc(‘desk’, ‘doctype’, ‘todo’) #2014-12-31-1 in ikhlaskk (f13bed8599)
    Success
    Executing execute:frappe.reload_doc(‘custom’, ‘doctype’, ‘property_setter’) #2014-12-31-1 in ikhlaskk (f13bed8599)
    Success
    Executing execute:frappe.reload_doc(‘core’, ‘doctype’, ‘patch_log’) #2016-10-31 in ikhlaskk (f13bed8599)
    Success
    Executing execute:frappe.reload_doctype(“File”) # 2015-10-19 in ikhlaskk (f13bed8599)
    Success
    Executing execute:frappe.reload_doc(‘core’, ‘doctype’, ‘error_snapshot’) in ikhlaskk (f13bed8599)
    Success
    Executing frappe.patches.v6_4.reduce_varchar_length in ikhlaskk (f13bed8599)
    Success
    Executing frappe.patches.v5_2.change_checks_to_not_null in ikhlaskk (f13bed8599)
    Success
    Executing frappe.patches.v6_9.int_float_not_null #2015-11-25 in ikhlaskk (f13bed8599)
    Success
    Executing frappe.patches.v5_0.v4_to_v5 in ikhlaskk (f13bed8599)
    Success
    Executing frappe.patches.v5_0.remove_shopping_cart_app in ikhlaskk (f13bed8599)
    Success
    Executing execute:frappe.permissions.reset_perms(“Module Def”) in ikhlaskk (f13bed8599)
    Success
    Executing execute:frappe.permissions.reset_perms(“User”) #2015-03-24 in ikhlaskk (f13bed8599)
    Success
    Executing frappe.patches.v5_0.rename_table_fieldnames in ikhlaskk (f13bed8599)
    Success
    Executing frappe.patches.v5_0.communication_parent in ikhlaskk (f13bed8599)
    Success
    Executing frappe.patches.v5_0.clear_website_group_and_notifications in ikhlaskk (f13bed8599)
    Success
    Executing execute:frappe.db.sql(""“update tabComment set comment = substr(comment, 6, locate(”:", comment)-6) where comment_type in (“Assigned”, “Assignment Completed”)""") in ikhlaskk (f13bed8599)
    Success
    Executing frappe.patches.v5_0.fix_feed in ikhlaskk (f13bed8599)
    Success
    Executing frappe.patches.v5_0.update_shared in ikhlaskk (f13bed8599)
    Success
    Executing execute:frappe.reload_doc(“core”, “doctype”, “docshare”) #2015-07-21 in ikhlaskk (f13bed8599)
    Success
    Executing frappe.patches.v6_16.star_to_like in ikhlaskk (f13bed8599)
    Success
    Executing frappe.patches.v5_0.bookmarks_to_stars in ikhlaskk (f13bed8599)
    Success
    Executing frappe.patches.v5_0.style_settings_to_website_theme in ikhlaskk (f13bed8599)
    Success
    Executing frappe.patches.v5_0.rename_ref_type_fieldnames in ikhlaskk (f13bed8599)
    Success
    Executing frappe.patches.v5_0.fix_email_alert in ikhlaskk (f13bed8599)
    Success
    Executing frappe.patches.v5_0.fix_null_date_datetime in ikhlaskk (f13bed8599)
    Success
    Executing frappe.patches.v5_0.force_sync_website in ikhlaskk (f13bed8599)
    Success
    Executing execute:frappe.delete_doc(“DocType”, “Tag”) in ikhlaskk (f13bed8599)
    Success
    Executing execute:frappe.db.sql(“delete from tabProperty Setter where property in (‘idx’, ‘_idx’)”) in ikhlaskk (f13bed8599)
    Success
    Executing frappe.patches.v5_0.move_scheduler_last_event_to_system_settings in ikhlaskk (f13bed8599)
    Success
    Executing execute:frappe.db.sql(“update tabUser set new_password=’’ where ifnull(new_password, ‘’)!=’’”) in ikhlaskk (f13bed8599)
    Success
    Executing frappe.patches.v5_0.fix_text_editor_file_urls in ikhlaskk (f13bed8599)
    Success
    Executing execute:frappe.db.sql(“update tabComment set comment_type=‘Comment’ where comment_doctype=‘Blog Post’ and ifnull(comment_type, ‘’)=’’”) in ikhlaskk (f13bed8599)
    Success
    Executing frappe.patches.v5_0.modify_session in ikhlaskk (f13bed8599)
    Success
    Executing frappe.patches.v5_0.expire_old_scheduler_logs in ikhlaskk (f13bed8599)
    Success
    Executing execute:frappe.permissions.reset_perms(“DocType”) in ikhlaskk (f13bed8599)
    Success
    Executing execute:frappe.db.sql(“delete from tabProperty Setter where property = ‘idx’”) in ikhlaskk (f13bed8599)
    Success
    Executing frappe.patches.v5_3.rename_chinese_languages in ikhlaskk (f13bed8599)
    Success
    Executing frappe.patches.v6_0.communication_status_and_permission in ikhlaskk (f13bed8599)
    Success
    Executing frappe.patches.v6_0.make_task_log_folder in ikhlaskk (f13bed8599)
    Success
    Executing frappe.patches.v6_0.document_type_rename in ikhlaskk (f13bed8599)
    Success
    Executing frappe.patches.v6_0.fix_ghana_currency in ikhlaskk (f13bed8599)
    Success
    Executing frappe.patches.v6_2.ignore_user_permissions_if_missing in ikhlaskk (f13bed8599)
    Success
    Executing execute:frappe.db.sql(“delete from tabSessions where user is null”) in ikhlaskk (f13bed8599)
    Success
    Executing frappe.patches.v6_2.rename_backup_manager in ikhlaskk (f13bed8599)
    Success
    Executing execute:frappe.delete_doc(“DocType”, “Backup Manager”) in ikhlaskk (f13bed8599)
    Success
    Executing frappe.patches.v6_4.rename_bengali_language in ikhlaskk (f13bed8599)
    Success
    Executing execute:frappe.db.sql(""“update tabCommunication set parenttype=null, parent=null, parentfield=null”"") #2015-10-22 in ikhlaskk (f13bed8599)
    Success
    Executing execute:frappe.permissions.reset_perms(“Web Page”) in ikhlaskk (f13bed8599)
    Success
    Executing frappe.patches.v6_6.user_last_active in ikhlaskk (f13bed8599)
    Success
    Executing frappe.patches.v6_6.rename_slovak_language in ikhlaskk (f13bed8599)
    Success
    Executing frappe.patches.v6_6.fix_file_url in ikhlaskk (f13bed8599)
    Success
    Executing frappe.patches.v6_9.rename_burmese_language in ikhlaskk (f13bed8599)
    Success
    Executing frappe.patches.v6_11.rename_field_in_email_account in ikhlaskk (f13bed8599)
    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/ikhlas/erpnext/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 79, in
    main()
    File “/home/ikhlas/erpnext/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 16, in main
    click.Group(commands=commands)(prog_name=‘bench’)
    File “/home/ikhlas/erpnext/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 700, in call
    return self.main(*args, **kwargs)
    File “/home/ikhlas/erpnext/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 680, in main
    rv = self.invoke(ctx)
    File “/home/ikhlas/erpnext/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1027, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
    File “/home/ikhlas/erpnext/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1027, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
    File “/home/ikhlas/erpnext/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 873, in invoke
    return ctx.invoke(self.callback, **ctx.params)
    File “/home/ikhlas/erpnext/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 508, in invoke
    return callback(*args, **kwargs)
    File “/home/ikhlas/erpnext/frappe-bench/env/local/lib/python2.7/site-packages/click/decorators.py”, line 16, in new_func
    return f(get_current_context(), *args, **kwargs)
    File “/home/ikhlas/erpnext/frappe-bench/apps/frappe/frappe/commands.py”, line 29, in func
    ret = f(frappe.dict(ctx.obj), *args, **kwargs)
    File “/home/ikhlas/erpnext/frappe-bench/apps/frappe/frappe/commands.py”, line 213, in migrate
    frappe.modules.patch_handler.run_all()
    File “/home/ikhlas/erpnext/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 25, in run_all
    if not run_single(patchmodule = patch):
    File “/home/ikhlas/erpnext/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 52, in run_single
    return execute_patch(patchmodule, method, methodargs)
    File “/home/ikhlas/erpnext/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 68, in execute_patch
    frappe.get_attr(patchmodule.split()[0] + “.execute”)()
    File “/home/ikhlas/erpnext/frappe-bench/apps/frappe/frappe/patches/v6_11/rename_field_in_email_account.py”, line 4, in execute
    frappe.reload_doctype(“Email Account”)
    File “/home/ikhlas/erpnext/frappe-bench/apps/frappe/frappe/init.py”, line 569, in reload_doctype
    reload_doc(scrub(db.get_value(“DocType”, doctype, “module”)), “doctype”, scrub(doctype), force=force)
    File “/home/ikhlas/erpnext/frappe-bench/apps/frappe/frappe/init.py”, line 594, in scrub
    return txt.replace(’ ‘,’
    ’).replace(’-’, '
    ’).lower()
    AttributeError: ‘NoneType’ object has no attribute ‘replace’
    Traceback (most recent call last):
    File “/usr/local/bin/bench”, line 9, in
    load_entry_point(‘bench==0.92’, ‘console_scripts’, ‘bench’)()
    File “/home/ikhlas/sajid/bench-repo/bench/cli.py”, line 60, in cli
    bench()
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 700, in call
    return self.main(*args, **kwargs)
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 680, in main
    rv = self.invoke(ctx)
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 1027, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 873, in invoke
    return ctx.invoke(self.callback, **ctx.params)
    File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 508, in invoke
    return callback(*args, **kwargs)
    File “/home/ikhlas/sajid/bench-repo/bench/cli.py”, line 241, in _update
    update(pull, patch, build, bench, auto, restart_supervisor, requirements, no_backup, upgrade, force=force)
    File “/home/ikhlas/sajid/bench-repo/bench/cli.py”, line 270, in update
    patch_sites(bench=bench_path)
    File “/home/ikhlas/sajid/bench-repo/bench/utils.py”, line 161, in patch_sites
    run_frappe_cmd(’–site’, ‘all’, ‘migrate’, bench=bench)
    File “/home/ikhlas/sajid/bench-repo/bench/utils.py”, line 496, in run_frappe_cmd
    raise CommandFailedError(args)
    bench.utils.CommandFailedError: (’–site’, ‘all’, ‘migrate’)

I can’t help with this one because i don’t know what did you do…

What i can do is point out where is the error. In your case db.get_value("DocType", doctype, "module") is returning None for some reason for doctype “Email Account”.

Sorry,
Luis.

sunrise@sunrise:~/bench-repo/bench$ cd …/…/frape-bench
bash: cd: …/…/frape-bench: No such file or directory
sunrise@sunrise:~/bench-repo/bench$ cd …/…/frappe-bench
sunrise@sunrise:~/frappe-bench$ bench update
INFO:bench.utils:updating bench
Already up-to-date.
Requirement already satisfied (use --upgrade to upgrade): Pillow in ./env/lib/python2.7/site-packages
INFO:bench.app:pulling frappe
From https://github.com/frappe/frappe

  • branch develop -> FETCH_HEAD
    Already up-to-date.
    INFO:bench.app:pulling erpnext
    From https://github.com/frappe/erpnext
  • branch develop -> FETCH_HEAD
    Already up-to-date.
    INFO:bench.app:pulling erpnext_shopify
    From https://github.com/frappe/erpnext_shopify
  • branch master -> FETCH_HEAD
    Already up-to-date.
    Requirement already up-to-date: pip in ./env/lib/python2.7/site-packages
    Migrating sun
    Updating frappe : [========================================]
    Migrating demo
    Updating frappe : [========================================]
    Updating erpnext : [========================================]
    Migrating store
    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/sunrise/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 79, in
    main()
    File “/home/sunrise/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 16, in main
    click.Group(commands=commands)(prog_name=‘bench’)
    File “/home/sunrise/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 716, in call
    return self.main(*args, **kwargs)
    File “/home/sunrise/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 696, in main
    rv = self.invoke(ctx)
    File “/home/sunrise/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
    File “/home/sunrise/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
    File “/home/sunrise/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 889, in invoke
    return ctx.invoke(self.callback, **ctx.params)
    File “/home/sunrise/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 534, in invoke
    return callback(*args, **kwargs)
    File “/home/sunrise/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/sunrise/frappe-bench/apps/frappe/frappe/commands.py”, line 29, in _func
    ret = f(frappe._dict(ctx.obj), *args, **kwargs)
    File “/home/sunrise/frappe-bench/apps/frappe/frappe/commands.py”, line 220, in migrate
    migrate(context.verbose, rebuild_website=rebuild_website)
    File “/home/sunrise/frappe-bench/apps/frappe/frappe/migrate.py”, line 27, in migrate
    frappe.modules.patch_handler.run_all()
    File “/home/sunrise/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 21, in run_all
    executed = [p[0] for p in frappe.db.sql(""“select patch from tabPatch Log“””)]
    File “/home/sunrise/frappe-bench/apps/frappe/frappe/database.py”, line 147, in sql
    self._cursor.execute(query)
    File “/home/sunrise/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/cursors.py”, line 205, in execute
    self.errorhandler(self, exc, value)
    File “/home/sunrise/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/connections.py”, line 36, in defaulterrorhandler
    raise errorclass, errorvalue
    _mysql_exceptions.ProgrammingError: (1146, “Table ‘3a21295d81.tabPatch Log’ doesn’t exist”)
    Traceback (most recent call last):
    File “/usr/local/bin/bench”, line 9, in
    load_entry_point(‘bench==2.1.0’, ‘console_scripts’, ‘bench’)()
    File “/home/sunrise/bench-repo/bench/cli.py”, line 40, in cli
    bench_command()
    File “/usr/local/lib/python2.7/dist-packages/click-6.4-py2.7.egg/click/core.py”, line 716, in call
    return self.main(*args, **kwargs)
    File “/usr/local/lib/python2.7/dist-packages/click-6.4-py2.7.egg/click/core.py”, line 696, in main
    rv = self.invoke(ctx)
    File “/usr/local/lib/python2.7/dist-packages/click-6.4-py2.7.egg/click/core.py”, line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
    File “/usr/local/lib/python2.7/dist-packages/click-6.4-py2.7.egg/click/core.py”, line 889, in invoke
    return ctx.invoke(self.callback, **ctx.params)
    File “/usr/local/lib/python2.7/dist-packages/click-6.4-py2.7.egg/click/core.py”, line 534, in invoke
    return callback(*args, **kwargs)
    File “/home/sunrise/bench-repo/bench/commands/update.py”, line 60, in update
    _update(pull, patch, build, bench, auto, restart_supervisor, requirements, no_backup, upgrade, force=force)
    File “/home/sunrise/bench-repo/bench/commands/update.py”, line 90, in _update
    patch_sites(bench=bench_path)
    File “/home/sunrise/bench-repo/bench/utils.py”, line 131, in patch_sites
    run_frappe_cmd(’–site’, ‘all’, ‘migrate’, bench=bench)
    File “/home/sunrise/bench-repo/bench/utils.py”, line 454, in run_frappe_cmd
    raise CommandFailedError(args)
    bench.utils.CommandFailedError: (’–site’, ‘all’, ‘migrate’)
    sunrise@sunrise:~/frappe-bench$