Bench update error... help required

When I run bech update, I am getting the following:

 ➜  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 newmatik
    From https://github.com/dottenbr/newmatik
     * branch            master     -> FETCH_HEAD
    Already up-to-date.
    INFO:bench.app:pulling quality
    From https://github.com/newmatik/Quality
     * branch            master     -> FETCH_HEAD
    Already up-to-date.
    INFO:bench.app:pulling pick_and_place
    From https://github.com/newmatik/Pick-and-Place
     * branch            master     -> FETCH_HEAD
    Already up-to-date.
    Requirement already up-to-date: pip in ./env/lib/python2.7/site-packages
    /Users/makis/Dev/frappe-bench/env/bin/python: dlopen(/Users/makis/Dev/frappe-bench/env/lib/python2.7/site-packages/_mysql.so, 2): Library not loaded: /usr/local/lib/libmysqlclient.18.dylib
      Referenced from: /Users/makis/Dev/frappe-bench/env/lib/python2.7/site-packages/_mysql.so
      Reason: image not found
    Traceback (most recent call last):
      File "/usr/local/bin/bench", line 9, in <module>
        load_entry_point('bench==0.92', 'console_scripts', 'bench')()
      File "/Users/makis/Dev/bench-repo/bench/cli.py", line 40, in cli
        bench_command()
      File "/usr/local/lib/python2.7/site-packages/click/core.py", line 664, in __call__
        return self.main(*args, **kwargs)
      File "/usr/local/lib/python2.7/site-packages/click/core.py", line 644, in main
        rv = self.invoke(ctx)
      File "/usr/local/lib/python2.7/site-packages/click/core.py", line 991, in invoke
        return _process_result(sub_ctx.command.invoke(sub_ctx))
      File "/usr/local/lib/python2.7/site-packages/click/core.py", line 837, in invoke
        return ctx.invoke(self.callback, **ctx.params)
      File "/usr/local/lib/python2.7/site-packages/click/core.py", line 464, in invoke
        return callback(*args, **kwargs)
      File "/Users/makis/Dev/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 "/Users/makis/Dev/bench-repo/bench/commands/update.py", line 89, in _update
        backup_all_sites(bench=bench_path)
      File "/Users/makis/Dev/bench-repo/bench/utils.py", line 345, in backup_all_sites
        backup_site(site, bench=bench)
      File "/Users/makis/Dev/bench-repo/bench/utils.py", line 341, in backup_site
        run_frappe_cmd('--site', site, 'backup', bench=bench)
      File "/Users/makis/Dev/bench-repo/bench/utils.py", line 454, in run_frappe_cmd
        raise CommandFailedError(args)
    bench.utils.CommandFailedError: ('--site', 'site1.local', 'backup')

Any recommendation how to resolve it?

Are you sure you have a site name “site1.local” ?
if yes try to execute the following command and share the results with us…

bench --site site1.local backup

Hi @mostafa ty for your quick response.
Here what I got:

➜  frappe-bench bench --site site1.local backup
/Users/makis/Dev/frappe-bench/env/bin/python: dlopen(/Users/makis/Dev/frappe-bench/env/lib/python2.7/site-packages/_mysql.so, 2): Library not loaded: /usr/local/lib/libmysqlclient.18.dylib
  Referenced from: /Users/makis/Dev/frappe-bench/env/lib/python2.7/site-packages/_mysql.so
  Reason: image not found

What is your OS?

Anyway you can do the following to solve the problem
First:

export DYLD_LIBRARY_PATH=/usr/local/mysql/lib

Then you have to make a symlink link between the files

sudo ln -s /usr/local/mysql/lib/libmysqlclient.18.dylib /usr/local/lib/libmysqlclient.18.dylib

Hi @mostafa,
I run the 2 commands you sent but the bench update still gives the same error.
My OS is mac OS X