that command itself exited with error as shown during easy install script, still i did separately
sudo -H python3 -m pip install --upgrade setuptools cryptography ansible==2.8.5 pip
[sudo] password for frappe:
Collecting setuptools
Using cached https://files.pythonhosted.org/packages/ae/42/2876a3a136f8bfa9bd703518441c8db78ff1eeaddf174baa85c083c1fd15/setuptools-56.0.0-py3-none-any.whl
Collecting cryptography
Using cached https://files.pythonhosted.org/packages/9b/77/461087a514d2e8ece1c975d8216bc03f7048e6090c5166bc34115afdaa53/cryptography-3.4.7.tar.gz
Complete output from command python setup.py egg_info:
=============================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==========================
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-jo_q00z2/cryptography/setup.py", line 14, in <module>
from setuptools_rust import RustExtension
ModuleNotFoundError: No module named 'setuptools_rust'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-jo_q00z2/cryptography/
Meanwhile,
pip3 --version
pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6)
frappe@vmi563446:~$ alias pip=pip3
frappe@vmi563446:~$ pip --version
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
pip 21.0.1 from /home/frappe/.local/lib/python3.6/site-packages/pip (python 3.6)
frappe@vmi563446:~$ sudo -H python3 install.py --production --user frappe --mysql-root-password Jaie^bdr59y --admin-password 123
Logs are saved under /tmp/logs/easy-install__2021-04-17__06-26.log
Checking System Compatibility...
ubuntu 18 is compatible!
curl already installed!
wget already installed!
git already installed!
pip3 already installed!
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-jub7l7ec/cryptography/
Traceback (most recent call last):
File "install.py", line 436, in <module>
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/python3.6/subprocess.py", line 311, 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.
frappe@vmi563446:~$ sudo -H python3 -m pip install --upgrade setuptools cryptography ansible==2.8.5 pip
Requirement already up-to-date: setuptools in /usr/local/lib/python3.6/dist-packages
Collecting cryptography
Using cached https://files.pythonhosted.org/packages/9b/77/461087a514d2e8ece1c975d8216bc03f7048e6090c5166bc34115afdaa53/cryptography-3.4.7.tar.gz
Complete output from command python setup.py egg_info:
=============================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==========================
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-h80r7vnt/cryptography/setup.py", line 14, in <module>
from setuptools_rust import RustExtension
ModuleNotFoundError: No module named 'setuptools_rust'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-h80r7vnt/cryptography/
Solution:
New cryptohraphy needs setuptools_rust instead of setuptools
Install rustup using snap and then install cryptography as cryptography installation fails