Erro on update erpnext

I get a error on update erpnext.
My version is 10.1.53.

frappe@1.0.0 /home/ubuntu/frappe-bench
├── babel-preset-babili@0.0.12 extraneous
├── babel-preset-es2015@6.24.1 extraneous
├── babel-preset-es2016@6.24.1 extraneous
├── babel-preset-es2017@6.24.1 extraneous
└── socket.io@2.0.1

npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.2.4
npm WARN frappe@1.0.0 No description
Backing up sites…
Patching sites…
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/ubuntu/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 94, in
main()
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 18, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 716, in call
return self.main(*args, **kwargs)
File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 696, in main
rv = self.invoke(ctx)
File “/home/ubuntu/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/ubuntu/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/ubuntu/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/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 534, in invoke
return callback(*args, **kwargs)
File “/home/ubuntu/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/ubuntu/frappe-bench/apps/frappe/frappe/commands/init.py”, line 24, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/commands/site.py”, line 215, in migrate
from frappe.migrate import migrate
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/migrate.py”, line 17, in
import frappe.utils.help
File “/home/ubuntu/frappe-bench/apps/frappe/frappe/utils/help.py”, line 14, in
from bs4 import BeautifulSoup
File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/bs4/init.py”, line 30, in
from .builder import builder_registry, ParserRejectedMarkup
File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/bs4/builder/init.py”, line 314, in
from . import _html5lib
File “/home/ubuntu/frappe-bench/env/local/lib/python2.7/site-packages/bs4/builder/_html5lib.py”, line 70, in
class TreeBuilderForHtml5lib(html5lib.treebuilders._base.TreeBuilder):
AttributeError: ‘module’ object has no attribute ‘_base’

Seems you have not setup the requirements before migrating the transaction run

bench setup requirements