GithubHelp home page GithubHelp logo

AmazonLinux [ !! ] Python scripting failed. Python requires package 'distro' or 'platform' to determine the Operating System and Version. about apache2buddy HOT 6 CLOSED

richardforth avatar richardforth commented on June 20, 2024
AmazonLinux [ !! ] Python scripting failed. Python requires package 'distro' or 'platform' to determine the Operating System and Version.

from apache2buddy.

Comments (6)

richardforth avatar richardforth commented on June 20, 2024

upgraded to python 3.8 on amazon liinux but the distro package is still missing

its there on Ubuntu 20.04

$ python3
Python 3.8.10 (default, Nov 26 2021, 20:14:08)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import distro
>>> distro.linux_distribution()
('Ubuntu', '20.04', 'focal')
>>>

from apache2buddy.

richardforth avatar richardforth commented on June 20, 2024

https://distro.readthedocs.io/en/latest/

Lists "Amazon" as AmazonLinux

Yet the python-distro package is not available, and its not built in, I could try pip next?

from apache2buddy.

richardforth avatar richardforth commented on June 20, 2024

Well at least on ubuntu, pip knows about distro, so it might be an option.

from apache2buddy.

richardforth avatar richardforth commented on June 20, 2024

On Ubuntu

$ pip install distro
Requirement already satisfied: distro in /usr/lib/python3/dist-packages (1.4.0)

from apache2buddy.

richardforth avatar richardforth commented on June 20, 2024

pip3 install distro

...
Collecting distro
Downloading distro-1.7.0-py3-none-any.whl (20 kB)
Installing collected packages: distro
Successfully installed distro-1.7.0

from apache2buddy.

richardforth avatar richardforth commented on June 20, 2024

Closed, tests passing with deprecation warnings

from apache2buddy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.