Code Monkey home page Code Monkey logo

Comments (2)

basti1302 avatar basti1302 commented on September 1, 2024

This behaviour could be caused by two different issues:

  1. Maybe the current environment of the process in which puppet runs is not updated with the new PATH. After writing the new path, I'm sending a broadcast event that the environment has been updated, so in theory that should not be the problem, but I'm not completely sure if that works under all circumstances. It could be something similar to the behaviour you will see when you
    • start a command prompt in windows
    • change the PATH variable - but not in that command prompt, let's say you change the PATH throught the system control panel
    • the PATH change will not take effect in the command prompt window you opened earlier but only in command prompt windows you open after you changed PATH
  2. What exactly does the pip provider do to check for the command in the path? Do you know? If it's using the $::path fact from facter, there is also the problem that the fact will not be updated during the puppet run. As far as I know, it is not possible to update a fact during a puppet run and it probably also would not make sense. See this discussion on the "puppet uses" list.

from puppet-windows-path.

basti1302 avatar basti1302 commented on September 1, 2024

Maybe the pip provider could be changed so that it either takes the pip executable's absolut path as an optional parameter or it takes additional directories it should look in as an argument. In your context, you probably know very well where the pip executable is.

from puppet-windows-path.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.