Continuing the discussion from Moving to ERPNext v12:
I am trying to upgrade v11 → v12 with these steps
cd ~/frappe-bench
bench update
bench setup requirements
bench switch-to-branch version-12 frappe erpnext --upgrade
bench update --patch
bench migrate
bench update --build
steps 1-3 work fine but with
bench switch-to-branch version-12 ...
I am hitting an error
seems the critical moment comes with yarn install
$ yarn install
yarn install v1.13.0
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning " > bootstrap@4.3.1" has unmet peer dependency "jquery@1.9.1 - 3".
warning " > bootstrap@4.3.1" has unmet peer dependency "popper.js@^1.14.7".
[4/4] Building fresh packages...
Done in 96.48s.
Traceback (most recent call last):
File "/usr/local/bin/bench", line 11, in <module>
load_entry_point('bench', 'console_scripts', 'bench')()
File "/home/frappe/bench/bench/cli.py", line 41, in cli
bench_command()
File "/home/frappe/.local/lib/python2.7/site-packages/click/core.py", line 764, in __call__
return self.main(*args, **kwargs)
File "/home/frappe/.local/lib/python2.7/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/home/frappe/.local/lib/python2.7/site-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/frappe/.local/lib/python2.7/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/frappe/.local/lib/python2.7/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/home/frappe/bench/bench/commands/update.py", line 43, in switch_to_branch
switch_to_branch(branch=branch, apps=list(apps), upgrade=upgrade)
File "/home/frappe/bench/bench/app.py", line 417, in switch_to_branch
switch_branch(branch, apps=apps, bench_path=bench_path, upgrade=upgrade)
File "/home/frappe/bench/bench/app.py", line 409, in switch_branch
reload_module(utils)
NameError: global name 'utils' is not defined
the entire output of bench switch-to-branch version-12 frappe erpnext --upgrade
can be found here