Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-9647

Pip package provider does not handle pip executable paths with spaces

    XMLWordPrintable

Details

    • Coremunity
    • Platform Core KANBAN
    • Customer Feedback
    • 34604
    • 1
    • Bug Fix
    • Puppet could not manage pip resources if the pip command was in a directory containing spaces, like C:\Program Files\Python27 on Windows.
    • Needs Assessment

    Description

      The package pip provider has some suggestion of Windows support. However, it uses "execpipe" to invoke commands, which puts a shell redirection of "2>&1" into the final command which is not compatible with Windows.

      On a Windows system with Python installed when the "pip_version" method is called it results in an error: "Cannot collect packages for Puppet::Type::Package::ProviderPip3 provider; undefined method `[]' for nil:NilClass"

      Reworking this in terms of execute allows the pip provider to work on Windows as well.

       

      Attachments

        Issue Links

          Activity

            People

              josh Josh Cooper
              seanmil Sean Millichamp
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support