-
-
Notifications
You must be signed in to change notification settings - Fork 374
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pip install runs on every puppet run. #218
Comments
Not to mention that your host will stay in active instead of converging to a stable state. |
which version of the module are you using, @supereman16 / @ekohl ? |
If we don't talk about #193, I think there is sometimes a "strange" behavior when a package has just been updated on PyPI. The pip search package_name command doesn't return the real latest version. I don't know how pip search works but after a couple of minutes the information is updated and the behavior will be the right one (since in pip.pp it uses pip search command). |
@igalic 1.9.5 here. I'm wondering if in my case I can blame it on using |
Have you checked your call to python::pip ? pip will install a package with a different case, but the grep in the the definition will always fail so puppet will try and reinstall it. |
@adamcstephens I think that's exactly the problem. However, when you simplify |
I have the same problem but just for one package (I'm just installing two of them). I'm using the following code:
|
hyphen != underscore:
|
My bad... I don't know were I saw that the package name was with an underscore... New to Python and pip so because it was installing just fine I didn't see that mistake. Thanks so much @adamcstephens |
I'm running into this as well, though not trying to install any pip packages yet. Simply using the pip provider on the python class look for the incorrect path of pip here: https://github.com/stankevich/puppet-python/blob/master/manifests/install.pp#L74 |
Same here for both 1.7.16 and 1.9.1 versions with the following code:
|
Here is the fork I've been keeping to get out of some oddities in this module, such as this issue: https://github.com/xaque208/puppet-python |
Thanks @xaque208, your fork looks interesting, but I need Puppet 3.8 support. |
@gdubicki keep in mind that puppet 3.x is eol at the end of the year |
See #390 |
@stankevich
causes this every time:
I land on this issue from Google. |
On every run of my puppet agent, it runs a pip install, both when I have
or,
There has to be a better way to check if it's already the latest version or installed, without just running and Exec for
pip install package
orpip install --upgrade package
. It takes up a lot of time in the agent's run when I'm installing a lot of packages.The text was updated successfully, but these errors were encountered: