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

Pip package provider does not handle pip executable paths with spaces

    Details

    • Template:
      PUP Bug Template
    • Team:
      Coremunity
    • Sprint:
      Platform Core KANBAN
    • Method Found:
      Customer Feedback
    • Zendesk Ticket IDs:
      34604
    • Zendesk Ticket Count:
      1
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      Puppet could not manage pip resources if the pip command was in a directory containing spaces, like C:\Program Files\Python27 on Windows.
    • QA Risk Assessment:
      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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Zendesk Support