Hi,
I am trying to install erp on a new fresh ubuntu server, but I have encountered this error.
Logs are saved under /tmp/logs/easy-install__2021-02-10__01-49.log
curl already installed!
wget already installed!
git already installed!
pip3 already installed!
The directory ‘/home/frappe/.cache/pip/http’ or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.
The directory ‘/home/frappe/.cache/pip’ or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.
Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-3j2vt7_n/cryptography/
Traceback (most recent call last):
File “install.py”, line 484, in
install_prerequisites()
File “install.py”, line 174, in install_prerequisites
‘python3’: “sudo pip3 install --upgrade setuptools cryptography ansible==2.8.5.0 pip”
File “install.py”, line 141, in run_os_command
returncode = subprocess.check_call(command, shell=True, stdout=log_stream, stderr=sys.stderr)
File “/usr/lib/python2.7/subprocess.py”, line 190, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘sudo pip3 install --upgrade setuptools cryptography ansible==2.8.5.0 pip’ returned non-zero exit status 1
Already tried with both
sudo python install.py --production --user frappe
sudo python3 install.py --production --user frappe
Also tried with this
‘pip’: “sudo pip install --upgrade setuptools cryptography ansible==2.8.5.0 pip”
And then I tried installation from here, still wont work.
These are the error for these command.
pip install --user -e bench-repo
/usr/lib/python2.7/dist-packages/secretstorage/dhcrypto.py:15: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release.
from cryptography.utils import int_from_bytes
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
ERROR: bench-repo is not a valid editable requirement. It should either be a path to a local project or a VCS URL (beginning with svn+, git+, hg+, or bzr+).
But this error still occurs, please advise what should I do.
Thanks