Background:
Cloud Service: Amazon AWS
Instance Type: t2.micro
Instance OS: Ubuntu 20.04
Using EC2, i spinned a fresh Ubuntu 20.04 LTS instance. After creating a non-root user with sudo rights, and installing the minimals
(sudo apt install python3-minimal build-essential python3-setuptools)
i decided for the easy install script approach.
Upon entering sudo /usr/bin/python3 install.py --production --user myfrappe, i am getting following error message.
Traceback (most recent call last):
File “install.py”, line 433, in
check_distribution_compatibility()
File “install.py”, line 78, in check_distribution_compatibility
dist_name, dist_version = get_distribution_info()
File “install.py”, line 100, in get_distribution_info
current_dist = platform.dist()
AttributeError: module ‘platform’ has no attribute ‘dist’
Upon checking the install.py script, seems we need to make an entry for Ubuntu 20.
Currently the value is ‘ubuntu’: [14, 15, 16, 18, 19]
Issue: I thought of editing install.py by myself. So i gave sudo
chmod 777 install.py.
Upon opening the file, i am getting a message ‘Directory is non-writable’. Still i managed to save, and now the def check_distribution_compatibility() block is having the following entry:
‘ubuntu’: [14, 15, 16, 18, 19, 20]
Upon entering sudo /usr/bin/python3 install.py --production --user myfrappe, i am getting same error message.
Traceback (most recent call last):
File “install.py”, line 433, in
check_distribution_compatibility()
File “install.py”, line 78, in check_distribution_compatibility
dist_name, dist_version = get_distribution_info()
File “install.py”, line 100, in get_distribution_info
current_dist = platform.dist()
AttributeError: module ‘platform’ has no attribute ‘dist’
Should i raise a Feature Request for this to be updated in easy install script since Ubuntu 20.04 LTS is released recently?
Note: I have installed V12 through manual mode in Ubuntu 18.04. So i believe i can make it work in 20.04 also. Still thought of taking easy install script way. Can this be resolved locally?
Thanks for your time.
Bala