Skip to content

Could not retrieve pip_version: undefined method #61

@technolo-g

Description

@technolo-g

Hi and thank you for the great module! I am experiencing a warning across all nodes after installing the latest version of your module. What I am seeing is the following:

On a puppet run:

[root@hostname ~]# puppet agent --test
info: Retrieving plugin
info: Loading facts in /var/lib/puppet/lib/facter/rvm_installed.rb
info: Loading facts in /var/lib/puppet/lib/facter/pip_version.rb
info: Loading facts in /var/lib/puppet/lib/facter/concat_basedir.rb
info: Loading facts in /var/lib/puppet/lib/facter/root_home.rb
info: Loading facts in /var/lib/puppet/lib/facter/puppet_vardir.rb
info: Loading facts in /var/lib/puppet/lib/facter/virtualenv_version.rb
info: Loading facts in /var/lib/puppet/lib/facter/python_version.rb
info: Loading facts in /var/lib/puppet/lib/facter/facter_dot_d.rb
Could not retrieve pip_version: undefined method `[]' for nil:NilClass
Could not retrieve pip_version: undefined method `[]' for nil:NilClass
info: Caching catalog for hostname.example.com
info: Applying configuration version '1393955494'
notice: /Stage[main]/Motd/Exec[update-motd]/returns: executed successfully
notice: Finished catalog run in 11.01 seconds

Running facter manually:

[root@hostname ~]# facter -p virtualenv_version pip_version
Could not retrieve pip_version: undefined method `[]' for nil:NilClass
pip_version => 
virtualenv_version => 1.10.1

What I have in the node manifest:

  class { 'python':
    version     => 'system',
    dev         => true,
    virtualenv  => true,
  }

Information about the system:

[root@hostname ~]# cat /etc/issue
Scientific Linux release 6.5 (Carbon)
Kernel \r on an \m

[root@hostname ~]# rpm -qa | grep python
python-gudev-147.1-4.el6_0.1.x86_64
python-ldap-2.3.10-1.el6.x86_64
python-lxml-2.2.3-1.1.el6.x86_64
python-dmidecode-3.10.13-3.el6_4.x86_64
python-hwdata-1.7.3-1.el6.noarch
uwsgi-plugin-python-2.0-1.el6.x86_64
python-devel-2.6.6-52.el6.x86_64
python-setuptools-0.6.10-3.el6.noarch
python-virtualenv-1.10.1-1.el6.noarch
python-virtualenvwrapper-3.5-2.el6.noarch
newt-python-0.52.11-3.el6.x86_64
python-simplejson-2.0.9-3.1.el6.x86_64
python-iniparse-0.3.1-2.1.el6.noarch
python-paste-1.7.4-2.el6.noarch
python-kerberos-1.1-6.2.el6.x86_64
python-pycurl-7.19.0-8.el6.x86_64
python-krbV-1.0.90-3.el6.x86_64
python-netaddr-0.7.5-4.el6.noarch
python-2.6.6-52.el6.x86_64
dbus-python-0.83.0-6.1.el6.x86_64
libipa_hbac-python-1.9.2-129.el6_5.4.x86_64
ipa-python-3.0.0-37.el6.x86_64
libxml2-python-2.7.6-14.el6.x86_64
rpm-python-4.8.0-37.el6.x86_64
python-imaging-1.1.6-19.el6.x86_64
python-virtualenv-clone-0.2.4-1.el6.noarch
python-nss-0.13-1.el6.x86_64
python-urlgrabber-3.9.1-9.el6.noarch
python-ethtool-0.6-5.el6.x86_64
libselinux-python-2.0.94-5.3.el6_4.1.x86_64
python-libs-2.6.6-52.el6.x86_64

[root@hostname ~]# puppet --version
2.7.23

Please let me know if there is any further information I can provide.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions