Skip to content
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

When updating pip via puppet-python, an error occurs. #484

Closed
pillarsdotnet opened this issue May 21, 2019 · 1 comment
Closed

When updating pip via puppet-python, an error occurs. #484

pillarsdotnet opened this issue May 21, 2019 · 1 comment

Comments

@pillarsdotnet
Copy link
Contributor

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 6.4.2
  • Ruby: ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-linux]
  • Distribution: CentOS Linux release 7.6.1810 (Core)
  • Module version: master

How to reproduce (e.g Puppet code you use)

What are you seeing

$ grep -A5 python: data/app/pup.yaml
python::python_pips:
  pip:        { ensure: 'latest' }
  pre-commit: { ensure: 'latest' }
  setuptools: { ensure: 'latest' }
  wheel:      { ensure: 'latest' }

$ /opt/puppetlabs/bin/puppet agent -t
Info: Using configured environment 'dev'
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Retrieving locales
Info: Loading facts
Error: Facter: error while resolving custom fact "pip_version": undefined method `[]' for nil:NilClass
Info: Caching catalog for cusppupent01.internal.cnngad.com
Info: Applying configuration version '1558463440'
Notice: System Reboot Required Because:
  audit => modified
Notice: Applied catalog in 25.40 seconds
$ which pre-commit
/usr/bin/which: no pre-commit in (/usr/local/openssl/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/opt/puppetlabs/bin:/opt/puppetlabs/puppet/bin)

What behaviour did you expect instead

Successful installation of pip, setuptools, wheel, and pre-commit

Output log

See above.

Any additional information you'd like to impart

Possibly related: pre-commit/pre-commit#1039

@pillarsdotnet
Copy link
Contributor Author

Apparently, I must install the python-setuptools rpm before installing the setuptools pip, else it will fail silently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant