python3-venv missing ? pip3 missing in the virtualenv ?

Offen
#430 4 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
35/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
python
Bereich
devops

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

In Codespaces öffnen

Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus voxpupuli/puppet-python

Alle Issues in voxpupuli/puppet-python

Ähnliche Issues

Weitere Issues zu Ruby

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.