Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

System python on CentOS 8 is not "python"

Aperta
#529 1 commento 5 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
centos, linux, python, ruby

Direzione di ricerca

Start with the module's package-installation logic and reproduce the issue using the Puppet class shown on CentOS 8. Check how the system Python choice is translated into package names and verify the result with the reported pip and virtualenv settings. Done means system Python installs successfully on CentOS 8 and the existing system-based virtualenv workflow no longer requires version-specific overrides.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Ruby
Stelle
196
Fork
371
Merge medio
5h 54m
PR unite (30g)
5

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di voxpupuli/puppet-python

Tutte le issue di voxpupuli/puppet-python

Issue simili

Altre issue su Ruby

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.