Hacktoberfest 2026: die Issues, die Maintainer für den Oktober markiert haben – offen und einsteigerfreundlich. Hacktoberfest-Issues durchsuchen

Could not evaluate: Working directory <virualenv> does not exist!

Offen
#615 0 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, ruby
Bereich
devops

Rechercherichtung

Start in manifests/pip.pp, focusing on the exec resource and its $cwd evaluation during Puppet noop runs. Reproduce the virtualenv and pip resource scenario in noop mode, then verify that a new virtual environment produces no missing-working-directory error while normal mode still installs dependencies.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 2019.8
  • Ruby: 2.5.7-1
  • Distribution: ---
  • Module version: v6.1.0

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

python::pyvenv { $_virtualenv:
  ensure   => 'present',
  version  => $pythonconfig::package_ensure,
  venv_dir => $_virtualenv,
}

python::pip { $pkgname:
  ensure       => $ensure,
  pkgname      => $pkgname,
  virtualenv   => $_virtualenv,
  pip_provider => 'pip3',
  require      => Python::Pyvenv[$_virtualenv]
}

python::pip { "certifi for venv ${_virtualenv}":
  ensure       => 'present',
  pkgname      => 'certifi',
  virtualenv   => $_virtualenv,
  pip_provider => 'pip3',
  require      => Python::Pip[$pkgname]
}

What are you seeing

Issue only occurs when running Puppet in noop mode.
The following error occurs:

Could not evaluate: Working directory <virtualenv> does not exist!

When running Puppet in normal mode the virtual environment is created and all dependencies are installed.

Looks like the evaluation on the $cwd parameter in the exec in https://github.com/voxpupuli/puppet-python/blob/master/manifests/pip.pp is not working as expected.

What behaviour did you expect instead

No error message and a successful noop run when deploying a new virtual environment.

Output log

Any additional information you'd like to impart

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.