Bench Update Error - 12 May 2016

I get the following error when I run bench update:

epoch@epoch-staging:~$ 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 schools
    From https://github.com/frappe/schools
  • branch master -> FETCH_HEAD
    Already up-to-date.
    INFO:bench.app:pulling jasper_erpnext_report
    From https://github.com/saguas/jasper_erpnext_report
  • branch master -> FETCH_HEAD
    Already up-to-date.
    Requirement already up-to-date: pip in ./env/lib/python2.7/site-packages
    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/epoch/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 79, in
    main()
    File “/home/epoch/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 12, in main
    commands = get_app_groups()
    File “/home/epoch/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 21, in get_app_groups
    app_group = get_app_group(app)
    File “/home/epoch/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 27, in get_app_group
    app_commands = get_app_commands(app)
    File “/home/epoch/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 58, in get_app_commands
    app_command_module = importlib.import_module(app + ‘.commands’)
    File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
    import(name)
    File “/home/epoch/frappe-bench/apps/jasper_erpnext_report/jasper_erpnext_report/init.py”, line 11, in
    frappe.get_logger(“jasper_erpnext_report”).addHandler(logging.NullHandler())
    AttributeError: ‘module’ object has no attribute ‘get_logger’
    Traceback (most recent call last):
    File “/usr/local/bin/bench”, line 9, in
    load_entry_point(‘bench==0.1’, ‘console_scripts’, ‘bench’)()
    File “/home/epoch/bench-repo/bench/cli.py”, line 40, in cli
    bench_command()
    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/epoch/bench-repo/bench/commands/update.py”, line 61, in update
    _update(pull, patch, build, bench, auto, restart_supervisor, requirements, no_backup, upgrade, force=force)
    File “/home/epoch/bench-repo/bench/commands/update.py”, line 90, in _update
    backup_all_sites(bench=bench_path)
    File “/home/epoch/bench-repo/bench/utils.py”, line 359, in backup_all_sites
    backup_site(site, bench=bench)
    File “/home/epoch/bench-repo/bench/utils.py”, line 355, in backup_site
    run_frappe_cmd(’–site’, site, ‘backup’, bench=bench)
    File “/home/epoch/bench-repo/bench/utils.py”, line 468, in run_frappe_cmd
    raise CommandFailedError(args)
    bench.utils.CommandFailedError: (’–site’, ‘chamundi.local’, ‘backup’)

Hi, it seems your custom app uses the old logger that was replaced quite recently

You’ll have to modify your code accordingly.

For production, it’s not recommended to use develop branches for erpnext and frappe.