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

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

Aperta
#615 0 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, ruby
Ambito
devops

Direzione di ricerca

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.

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

Descrizione

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

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.