python3-venv missing ? pip3 missing in the virtualenv ?
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 35/100
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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)
- Vorherrschende Sprache
- Ruby
- Sterne
- 196
- Forks
- 371
- Ø Merge
- 5 Std. 54 Min.
- Gemergte PRs (30 T.)
- 5
Entwicklungsumgebung
Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus voxpupuli/puppet-python
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 67/100
voxpupuli/puppet-python#759 ·
-
bug
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 45/100
voxpupuli/puppet-python#743 · 1 Kommentar ·
-
enhancement
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 35/100
voxpupuli/puppet-python#721 · 1 Reaktion ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 35/100
voxpupuli/puppet-python#711 · 1 Kommentar ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 52/100
voxpupuli/puppet-python#673 · 1 Kommentar ·
Alle Issues in voxpupuli/puppet-python
Ähnliche Issues
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 82/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
zold-io/zold-ruby-sdk#85 ·
-
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 62/100
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 85/100