Hello,
I am using this command to upgrade:
bench switch-to-branch version-12 frappe erpnext --upgrade
using frappe user and inside frappe-bench folder.
After some processing, this error occurs:
> erpnext/accounts/doctype/item_tax_template_detail/item_tax_tem
Aborting
Error switching to branch version-12 for erpnext
Updating Python libraries…
INFO:bench.utils:./env/bin/pip install --upgrade pip
Traceback (most recent call last):
File “./env/bin/pip”, line 6, in
from pip._internal import main
File “/home/frappe/frappe-bench/env/lib/python2.7/site-packages/pip/_internal/init.py”, line 40, in
from pip._internal.cli.autocompletion import autocomplete
File “/home/frappe/frappe-bench/env/lib/python2.7/site-packages/pip/_internal/cli/autocompletion.py”, line 8, in
from pip._internal.cli.main_parser import create_main_parser
File “/home/frappe/frappe-bench/env/lib/python2.7/site-packages/pip/_internal/cli/main_parser.py”, line 11, in
from pip._internal.commands import (
File “/home/frappe/frappe-bench/env/lib/python2.7/site-packages/pip/_internal/commands/init.py”, line 6, in
from pip._internal.commands.completion import CompletionCommand
File “/home/frappe/frappe-bench/env/lib/python2.7/site-packages/pip/_internal/commands/completion.py”, line 6, in
from pip._internal.cli.base_command import Command
File “/home/frappe/frappe-bench/env/lib/python2.7/site-packages/pip/_internal/cli/base_command.py”, line 26, in
from pip._internal.index import PackageFinder
ImportError: cannot import name PackageFinder
Traceback (most recent call last):
File “/usr/bin/bench”, line 11, in
load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()
File “/home/frappe/.bench/bench/cli.py”, line 40, in cli
bench_command()
File “/usr/lib64/python2.7/site-packages/click/core.py”, line 764, in call
return self.main(*args, **kwargs)
File “/usr/lib64/python2.7/site-packages/click/core.py”, line 717, in main
rv = self.invoke(ctx)
File “/usr/lib64/python2.7/site-packages/click/core.py”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/lib64/python2.7/site-packages/click/core.py”, line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/lib64/python2.7/site-packages/click/core.py”, line 555, in invoke
return callback(*args, **kwargs)
File “/home/frappe/.bench/bench/commands/update.py”, line 138, in switch_to_branch
switch_to_branch(branch=branch, apps=list(apps), upgrade=upgrade)
File “/home/frappe/.bench/bench/app.py”, line 397, in switch_to_branch
switch_branch(branch, apps=apps, bench_path=bench_path, upgrade=upgrade)
File “/home/frappe/.bench/bench/app.py”, line 383, in switch_branch
update_requirements()
File “/home/frappe/.bench/bench/utils.py”, line 429, in update_requirements
exec_cmd(“{pip} install --upgrade pip”.format(pip=pip))
File “/home/frappe/.bench/bench/utils.py”, line 161, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: ./env/bin/pip install --upgrade pip
frappe@vps [~/frappe-bench]#
How can I solve it?
Regards
Jaime