usermod -aG sudo [user] (this will grant sudo permission to that user)
export LC_ALL=C.UTF-8
Restart PC
python install.py --production --user --verbose (this command will run the install.py file. and with the help of --verbose you can see the setup procedure in front of you. Means, whats going on)
!Importent: type ‘y’ and press enter when ask for your confirmation about
"It is recommended to run this script with python 3,
Do you still wish to continue?[y/n]:"
su [user]
cd
cd frappe-bench
sudo bench setup production [user] (after this process finished, you can see the port number assigned for your site)
Traceback (most recent call last):
File “”, line 1, in
File “/tmp/pip-build-dnf6t2uq/cryptography/setup.py”, line 14, in
from setuptools_rust import RustExtension
ModuleNotFoundError: No module named ‘setuptools_rust’
=============================DEBUG ASSISTANCE==========================
If you are seeing an error here please try the following to
successfully install cryptography:
Upgrade to the latest pip and try again. This will fix errors for most
users. See: https://pip.pypa.io/en/stable/installing/#upgrading-pip
=============================DEBUG ASSISTANCE==========================
----------------------------------------
Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-dnf6t2uq/cryptography/
Traceback (most recent call last):
File “install.py”, line 436, in
install_prerequisites()
File “install.py”, line 143, in install_prerequisites
‘python3’: “sudo -H python3 -m pip install --upgrade setuptools cryptography ansible==2.8.5 pip”
File “install.py”, line 118, 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 -H python3 -m pip install --upgrade setuptools cryptography ansible==2.8.5 pip’ returned non-zero exit status 1