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

Remove resource collector overriding pip_provider #511

Merged
merged 1 commit into from
Apr 26, 2020

Conversation

jplindquist
Copy link
Contributor

@jplindquist jplindquist commented Oct 18, 2019

Pull Request (PR) description

Remove resource collector overriding pip_provider parameter in Python::Pip

This Pull Request (PR) fixes the following issues

Fixes #505

There seems to be an unrelated acceptance test failing locally for me (it's failing on master as well):

Failures:

  1) python class default parameters works with ensure=>latest for package with underscore in its name
     Failure/Error: apply_manifest(pp, catch_failures: true)
     Beaker::Host::CommandFailure:
       Host 'debian9-64-1' exited with 6 running:
        puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest.pp.si5Ebi
       Last 10 lines of output were:
       	Info: Applying configuration version '1571415656'
       	Notice: /Stage[main]/Main/Python::Virtualenv[venv]/File[/opt/venv4]/ensure: created
       	Notice: /Stage[main]/Main/Python::Virtualenv[venv]/Exec[python_virtualenv_/opt/venv4]/returns: executed successfully
       	Notice: /Stage[main]/Main/Python::Pip[Randomized_Requests]/Exec[pip_install_Randomized_Requests]/returns: DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
       	Notice: /Stage[main]/Main/Python::Pip[Randomized_Requests]/Exec[pip_install_Randomized_Requests]/returns: ERROR: Could not find a version that satisfies the requirement Randomized_Requests (from versions: none)
       	Notice: /Stage[main]/Main/Python::Pip[Randomized_Requests]/Exec[pip_install_Randomized_Requests]/returns: ERROR: No matching distribution found for Randomized_Requests
       	Error: '/opt/venv4/bin/pip --log /opt/venv4/pip.log install --upgrade     Randomized_Requests' returned 1 instead of one of [0]
       	Error: /Stage[main]/Main/Python::Pip[Randomized_Requests]/Exec[pip_install_Randomized_Requests]/returns: change from 'notrun' to ['0'] failed: '/opt/venv4/bin/pip --log /opt/venv4/pip.log install --upgrade     Randomized_Requests' returned 1 instead of one of [0]
       	Info: Class[Main]: Unscheduling all events on Class[Main]
       	Notice: Applied catalog in 4.40 seconds

@saz
Copy link
Contributor

saz commented Nov 9, 2019

What's required to get this merged?

@igalic
Copy link
Contributor

igalic commented Nov 12, 2019

@saz somebody to review this code and approve of it.
Somebody (else) to figure out why acceptance tests are failing on 'debian9-64-1'… though this is lower priority, and not a blocker.
Does it maybe not have python2.7?

@saz
Copy link
Contributor

saz commented Mar 25, 2020

The suggested change is working for me with pip 18.1 and 20.0.2.
Before this change, package installations where broken on pip 18.1

Tests are failing due to the deprecation of Python 2

@jplindquist
Copy link
Contributor Author

Is there anything I need to do as well to help move this along?

@bastelfreak
Copy link
Member

@jplindquist I fixed the test on master and rebased your branch.

@bastelfreak bastelfreak added bug Something isn't working and removed tests-fail labels Apr 26, 2020
@bastelfreak bastelfreak merged commit fe96d62 into voxpupuli:master Apr 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong pip referenced inside virtualenv
5 participants