I am upgrading v8 to v10 and I am about to update the requirements but I received this error.
error: cannot open .git/FETCH_HEAD: Permission denied
error: cannot open .git/FETCH_HEAD: Permission denied
INFO:bench.utils:./env/bin/pip install Pillow
Requirement already satisfied: Pillow in ./env/lib/python2.7/site-packages
Requirement already satisfied: olefile in ./env/lib/python2.7/site-packages (from Pillow)
Updating Python libraries...
INFO:bench.utils:./env/bin/pip install --upgrade pip
Requirement already up-to-date: pip in ./env/lib/python2.7/site-packages
INFO:bench.utils:./env/bin/pip install -q -r /home/frappe/.bench/requirements.txt
INFO:bench.utils:./env/bin/pip install -q -r ./apps/erpnext/requirements.txt
Exception:
Traceback (most recent call last):
File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/basecommand.py", line 21
status = self.run(options, args)
File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/commands/install.py", li
prefix=options.prefix_path,
File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/req/req_set.py", line 77
requirement.uninstall(auto_confirm=True)
File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/req/req_install.py", lin
paths_to_remove.remove(auto_confirm)
File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/req/req_uninstall.py", l
renames(path, new_path)
File "/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/pip/utils/__init__.py", line
shutil.move(old, new)
File "/usr/lib/python2.7/shutil.py", line 303, in move
os.unlink(src)
OSError: [Errno 13] Permission denied: '/home/frappe/frappe-bench/env/lib/python2.7/site-packages/nu
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 40, in cli
bench_command()
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/home/frappe/.bench/bench/commands/update.py", line 62, in update
_update(pull, patch, build, bench, auto, restart_supervisor, requirements, no_backup, upgrade, f
File "/home/frappe/.bench/bench/commands/update.py", line 82, in _update
update_requirements(bench_path=bench_path)
File "/home/frappe/.bench/bench/utils.py", line 410, in update_requirements
install_requirements(pip, req_file)
File "/home/frappe/.bench/bench/utils.py", line 446, in install_requirements
exec_cmd("{pip} install -q -r {req_file}".format(pip=pip, req_file=req_file))
File "/home/frappe/.bench/bench/utils.py", line 140, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: ./env/bin/pip install -q -r ./apps/erpnext/requirements.txt
edit:formatted error log