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

Fixes to avoid pip NoneType error #160

Merged
merged 1 commit into from
Dec 23, 2020

Conversation

digitalsleuth
Copy link
Contributor

The fixes applied here remove the 'upgrade: True' for several pip.installed states. There are two current issues at play: One which comes with pip3 20.3+ and the currently-disabled pip search feature, and one which is a result of a pip3 versioning issue in pip3 20.3 and SaltStack (referenced here - saltstack/salt#59100).
The error in the saltstack log is:

line 2087, in wrapper\n    return f(*args, **kwargs)\n  File \"/usr/lib/python3/dist-packages/salt/states/pip_state.py\",
      line 866, in installed\n    **kwargs\n  File \"/usr/lib/python3/dist-packages/salt/states/pip_state.py\",
      line 329, in _check_if_installed\n    desired_version = available_versions[-1]\nTypeError:
      'NoneType' object is not subscriptable\n"

Until the issue is resolved on a larger scale, these states have had their upgrade: True removed so as not to cause the error, and prevent the installation of several python3 packages. These fixes will allow all states to be installed, regardless of pip version or Ubuntu version (18/20).

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

Successfully merging this pull request may close these issues.

2 participants