Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CentOS 8 ModuleNotFoundError: No module named 'distro' #18

Open
1 task
skygunner opened this issue Mar 10, 2021 · 2 comments
Open
1 task

CentOS 8 ModuleNotFoundError: No module named 'distro' #18

skygunner opened this issue Mar 10, 2021 · 2 comments

Comments

@skygunner
Copy link

skygunner commented Mar 10, 2021

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 frappe/bench#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
image

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

@ViktorNova
Copy link

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

@quelixir
Copy link

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.

@ankush ankush transferred this issue from frappe/bench Nov 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants