python3-venv missing ? pip3 missing in the virtualenv ?
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
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
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di voxpupuli/puppet-python
-
Requirements not installedAperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 67/100
voxpupuli/puppet-python#759 ·
-
bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
voxpupuli/puppet-python#743 · 1 commento ·
-
enhancement
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
voxpupuli/puppet-python#721 · 1 reazione ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
voxpupuli/puppet-python#711 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 52/100
voxpupuli/puppet-python#673 · 1 commento ·
Tutte le issue di voxpupuli/puppet-python
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
metanorma/metanorma-standoc#1315 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
metanorma/metanorma-iso#1681 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
Missing zh-CN translation: components/common/CommunitySolution.tsx:communitySolution.authorsSolutionAperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 70/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
killbill/killbill-admin-ui#676 ·