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

undefined method `pip_version' with pip3 provider

    Details

    • Template:
      PUP Bug Template
    • Agent OS:
      Other
    • Master OS:
      Other
    • Team:
      Night's Watch
    • Method Found:
      Needs Assessment
    • Release Notes:
      Bug Fix
    • Release Notes Summary:
      Fix error introduced in puppet 6.5.0 when running pip provider.
    • QA Risk Assessment:
      Needs Assessment

      Description

      Puppet Version: 6.5.0
      Puppet Server Version: 6.4.0
      OS Name/Version: Debian stretch

      After updating puppet-agent to 6.5.0 and the puppet server to 6.4.0 package resources with a pip3 provider throw the following error:

      Debug: Prefetching pip3 resources for packageDebug: Executing '/usr/bin/pip3 --version'
      Debug: Executing '/usr/bin/pip3 freeze --all'Debug: Puppet::Type::Package::ProviderPip3: Prefetched instance: %{name} via command: %{command}
      Debug: Puppet::Type::Package::ProviderPip3: Prefetched instance: %{name} via command: %{command}
      Error: Could not get latest version: undefined method `pip_version' for Package[checkdmarc](provider=pip3)(command=default):Puppet::Type::Package::ProviderPip3
      Info: Unknown failure using insync_values? on type: Package[checkdmarc] / property: ensure to compare values [:latest] and 4.1.10 Error: /Stage[main]/Main/Node[redacted]/Mail::Dmarc_report[redacted]/Package[checkdmarc]/ensure: change from '4.1.10' to 'latest' failed: Could not get latest version: undefined method `pip_version' for Package[checkdmarc](provider=pip3)(command=default):Puppet::Type::Package::ProviderPip3

      The code from the module is just:

      package { 'checkdmarc':
       ensure => 'latest'
       , provider => 'pip3'
       , require => Package['python3-pip']
       }

       

      $ /usr/bin/pip3 --version
      pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.5)
      

       

       

       

        Attachments

          Issue Links

            Activity

              jsd-sla-details-panel

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  mphilipps Maximilian Philipps
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: