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

System python on CentOS 8 is not "python" #529

Open
IBBoard opened this issue Jan 3, 2020 · 1 comment
Open

System python on CentOS 8 is not "python" #529

IBBoard opened this issue Jan 3, 2020 · 1 comment

Comments

@IBBoard
Copy link

IBBoard commented Jan 3, 2020

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 6.11.1
  • Ruby: 2.5.7p206
  • Distribution: CentOS 8
  • Module version: 4.0.0

How to reproduce (e.g Puppet code you use)

        class { 'python':
                ensure => 'present',
                pip => 'present',
                virtualenv => 'present',
                use_epel => false,
        }

What are you seeing

Error: Execution of '/bin/dnf -d 0 -e 1 -y install python' returned 1: Error: Unable to find a match                                                        
Error: /Stage[main]/Python::Install/Package[python]/ensure: change from 'purged' to 'present' failed: Execution of '/bin/dnf -d 0 -e 1 -y install python' retu
rned 1: Error: Unable to find a match                                                          

What behaviour did you expect instead

Python 2.7 is now EOL and so CentOS 8 are pushing a lot of Python 3. Because of the long lifespan of a CentOS release, they've only got versioned Python (python2 and python3) and python as a package doesn't exist.

"system" should be Python 3 on CentOS 8 (and other distros that have similar behaviour)

This would also solve the problem of installing Python as v3 (rather than system) and then having to specify v3 for all virtualenvs as well.

@ju5t
Copy link
Contributor

ju5t commented Feb 16, 2020

The package pip doesn't exist either. And it's likely there will be other problems.

Unfortunately my time is very limited so I can't address this myself, but it would be great if this module could include CentOS 8 support.

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

2 participants