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

python3-venv missing ? pip3 missing in the virtualenv ?

Aperta
#430 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python
Ambito
devops

Direzione di ricerca

Start with the python::pyvenv and python::pip resources in the module and compare their behavior with the Debian 9.5 reproduction in the issue. Check the README guidance and verify the virtualenv can be created with pip3 available without the reported manual package addition or symlink.

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

Descrizione

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 4.8.2
  • Ruby: 2.3.3p222
  • Distribution: debian 9.5
  • Module version: last 2.1.1

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

class { 'python' :
  version    => 'python3',
  pip        => 'present',
  dev        => 'absent',
  virtualenv => 'present',
  gunicorn   => 'absent',
}
package {'python3-venv':
ensure => present,
}->
python::pyvenv  { '/data/python/.virtualenvs' :
  ensure       => present,
  systempkgs   => true,
  owner        => 'pod',
  group        => 'pod',
}

python::pip { 'virtualenvwrapper' :
  ensure        => 'present',
  pip_provider  => 'pip3',
  pkgname       => 'virtualenvwrapper',
  proxy         => 'someproxy:3128',
  virtualenv    => '/data/python/.virtualenvs',
  owner         => 'pod',
  timeout       => 1800,
}

What are you seeing

It's probably a problem of how I use the module but I had to add

package {'python3-venv':
ensure => present,
}->

to have python::pyvenv working because i had :

Error: /Stage[main]/Main/Node[pod-web-test.grenet.fr]/Python::Pyvenv[/data/python/.virtualenvs]/Exec[python_virtualenv_/data/python/.virtualenvs]/returns: change from notrun to 0 failed: Could not find command 'pyvenv'

and I had to do a symlink of pip3 to have it in my virtualenv
ln -s /usr/bin/pip3 /data/python/.virtualenvs/bin/pip3

What am I missing in my use of the module so I don't have to do the fix I did ? I turned the readme upside down and didn't found an answer (I don't know python but I have to install a python app on my server so I'm trying to write the requierement in puppet instead of following the app's doc that explain how to do it by hand)

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.