[SOLVED] Bench Update Upgrade error

Hi,

While I tried running a bench update --upgrade on one of the client machines, I got this following error. Looks like the upgrade got completed but ended up with this error.

Your bench was upgraded to version 7
supervisor.conf already exists and this will overwrite it. Do you want to continue? [y/N]: y
Traceback (most recent call last):
  File "/usr/local/bin/bench", line 9, in <module>
    load_entry_point('bench==0.92', 'console_scripts', 'bench')()
  File "/home/ubuntu/bench-repo/bench/cli.py", line 40, in cli
    bench_command()
  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/ubuntu/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/ubuntu/bench-repo/bench/commands/update.py", line 94, in _update
    post_upgrade(version_upgrade[1], version_upgrade[2], bench_path=bench_path)
  File "/home/ubuntu/bench-repo/bench/utils.py", line 500, in post_upgrade
    make_nginx_conf(bench_path=bench_path)
  File "/home/ubuntu/bench-repo/bench/config/nginx.py", line 26, in make_nginx_conf
    "limit_conn_shared_memory": get_limit_conn_shared_memory(),
  File "/home/ubuntu/bench-repo/bench/config/nginx.py", line 167, in get_limit_conn_shared_memory
    import psutil
ImportError: No module named psutil

Can you please let me know how to resolve this error?

Thanks
Uma

3 posts were merged into an existing topic: [SOLVED] ImportError: No module named psutil