CentOS 8 ModuleNotFoundError: No module named 'distro'
Issue: Easy Install
Do the checklist before filing an issue:
- [x ] Did you retain the logfile (path of logfile is shared while the script is run)? We definitely need the logfile to debug any easy install related issues.
- [ ] Is this something you can debug and fix? Send a pull request! Bug fixes and documentation fixes are welcome
Distro Information (Required) Ovh public cloud centos 8 1. Linux c2-7-syd1 4.18.0-240.15.1.el8_3.x86_64 #1 SMP Mon Mar 1 17:16:16 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux 2. CentOS Linux release 8.3.2011 NAME="CentOS Linux" VERSION="8" ID="centos" ID_LIKE="rhel fedora" VERSION_ID="8" PLATFORM_ID="platform:el8" PRETTY_NAME="CentOS Linux 8" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:centos:centos:8" CENTOS_MANTISBT_PROJECT="CentOS-8" CENTOS_MANTISBT_PROJECT_VERSION="8" CentOS Linux release 8.3.2011 CentOS Linux release 8.3.2011
Command Run (Required) sudo python3 install.py --production
Log File (Required) easy-install__2021-03-10__16-31.log
Screenshots

Additional context Running sudo python3 install.py --production on centos 8 reports can't find python-setuptools, python-devel because on centos the package names are python3-setuptools, python3-devel. Edit the install.py file for this and run again, got error of ModuleNotFoundError: No module named 'distro'
Possible Solution
I ran into this too, on CentOS 8.
I got past it by running
dnf install python3-distro
..however running the script again gives the error
Sorry, the installer doesn't support centos linux. Aborting installation!
Hacking the script to 'support' CentOS 8 leads to other errors
The fact that this got past it shows that the easy install script is getting it's own venv and the OS python environment mixed up, which breaks everything. Unfortunate
This is even more frustrating because the following text is in the repo's README:
Note: This script works only on GNU/Linux based server distributions, and has been designed and tested to work on Ubuntu 16.04+, CentOS 7+, and Debian-based systems.