I have an complected issue.
First i was getting error on file upload. So i looked for solution and i found solution that i need to run
i did this after that is asked me to run bench --update.
When i tried this it gave me error
You should not run this command as root
Because i was using sudo. So i tried too install without sudo. Then i got permission error.
Collecting python-crontab (from bench==4.1.0)
Traceback (most recent call last):
File “/usr/lib/python2.7/dist-packages/pip/basecommand.py”, line 215, in main
status = self.run(options, args)
File “/usr/lib/python2.7/dist-packages/pip/commands/install.py”, line 342, in run
File “/usr/lib/python2.7/dist-packages/pip/req/req_set.py”, line 380, in prepare_files
File “/usr/lib/python2.7/dist-packages/pip/req/req_set.py”, line 554, in _prepare_file
File “/usr/lib/python2.7/dist-packages/pip/req/req_install.py”, line 281, in populate_link
self.link = self._wheel_cache.cached_wheel(self.link, self.name)
File “/usr/lib/python2.7/dist-packages/pip/wheel.py”, line 68, in cached_wheel
self._cache_dir, link, self._format_control, package_name)
File “/usr/lib/python2.7/dist-packages/pip/wheel.py”, line 129, in cached_wheel
wheel_names = os.listdir(root)
OSError: [Errno 13] Permission denied: ‘/root/.cache/pip/wheels/45/c2/12/4f9e435a355df948f562120991107677bf2dce1bb86b18e751’
So i am stuck bench command is not working because it is installed as root user. And normal user unable to install bench.
Please provide solution for issue.