question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error when updating pip packages

See original GitHub issue

About 5-10 days ago dependabot pipeline started failing for python packages, which have updated versions. There is no specific dependency which triggers this failure, basically any dependency update will result in similar stracktrace as below.

Stacktrace

Task         : Dependabot
Description  : Automatically update dependencies and vulnerabilities in your code
Version      : 1.14.420
Author       : Tingle Software
Help         : For help please visit https://github.com/tinglesoftware/dependabot-azure-devops
==============================================================================
/usr/bin/docker run --rm -i -e GITHUB_ACCESS_TOKEN=*** -e DEPENDABOT_PACKAGE_MANAGER=pip -e DEPENDABOT_OPEN_PULL_REQUESTS_LIMIT=10 -e DEPENDABOT_DIRECTORY=/ -e DEPENDABOT_VERSIONING_STRATEGY=auto -e DEPENDABOT_MILESTONE=115080 -e DEPENDABOT_EXTRA_CREDENTIALS=[{"type":"docker_registry","url":null,"registry":"<redacted>azurecr.io","username":"AzureDevopsDependabot","password":"***"}] -e DEPENDABOT_FAIL_ON_EXCEPTION=true -e AZURE_ORGANIZATION=<redacted> -e AZURE_PROJECT=<redacted> -e AZURE_REPOSITORY=<redacted> -e AZURE_ACCESS_TOKEN=*** -e AZURE_MERGE_STRATEGY=squash -e DEPENDABOT_FAIL_ON_EXCEPTION=false tingle/dependabot-azure-devops:0.14
warning: parser/current is loading parser/ruby31, which recognizes3.1.3-compliant syntax, but you are running 3.1.2.
Please see https://github.com/whitequark/parser#compatibility-with-ruby-mri.
GitHub access token has been provided.
Fetching GitHub's GraphQL schema (should only happen once per run)
Using '[https://dev.azure.com:443/'](https://dev.azure.com/') as API endpoint
Pull Requests shall be linked to milestone (work item) 115080
Working in <redacted>/_git/<redacted>, 'default' branch under '/' directory
Looking for configuration file in the repository ...
.......
Using configuration file at '/.github/dependabot.yml' 😎
Using 'auto' requirements update strategy
Fetching pip dependency files ...
.......
.......
Found 4 dependency file(s) at commit 4d5b321973718f669df4f76af0f0feda3219f42d
 - /requirements-dev.txt
 - /requirements-tests.txt
 - /requirements.txt
 - /setup.py
Parsing dependencies information
Found 24 dependencies
.......
Checking if matplotlib 3.6.3 needs updating
🌍 --> GET https://pypi.org/simple/matplotlib/
🌍 <-- 200 ://pypi.org:443/simple/matplotlib/
🌍 --> GET https://pypi.org/simple/matplotlib/
🌍 <-- 200 ://pypi.org:443/simple/matplotlib/
Error working on updates for matplotlib 3.6.3 (continuing)
/home/dependabot/dependabot-script/vendor/ruby/3.1.0/gems/dependabot-common-0.215.0/lib/dependabot/update_checkers/base.rb:269:in `block in preferred_version_resolvable_with_unlock?': undefined method `[]' for nil:NilClass (NoMethodError)

        updated_requirements.none? { |r| r[:requirement] == :unfixable }
                                          ^^^^^^^^^^^^^^
	from /home/dependabot/dependabot-script/vendor/ruby/3.1.0/gems/dependabot-common-0.215.0/lib/dependabot/update_checkers/base.rb:269:in `none?'
	from /home/dependabot/dependabot-script/vendor/ruby/3.1.0/gems/dependabot-common-0.215.0/lib/dependabot/update_checkers/base.rb:269:in `preferred_version_resolvable_with_unlock?'
	from /home/dependabot/dependabot-script/vendor/ruby/3.1.0/gems/dependabot-python-0.215.0/lib/dependabot/python/update_checker.rb:126:in `preferred_version_resolvable_with_unlock?'
	from /home/dependabot/dependabot-script/vendor/ruby/3.1.0/gems/dependabot-common-0.215.0/lib/dependabot/update_checkers/base.rb:252:in `numeric_version_can_update?'
	from /home/dependabot/dependabot-script/vendor/ruby/3.1.0/gems/dependabot-common-0.215.0/lib/dependabot/update_checkers/base.rb:202:in `version_can_update?'
	from /home/dependabot/dependabot-script/vendor/ruby/3.1.0/gems/dependabot-common-0.215.0/lib/dependabot/update_checkers/base.rb:44:in `can_update?'
	from ./update-script.rb:551:in `block in <main>'
	from ./update-script.rb:503:in `each'
	from ./update-script.rb:503:in `<main>'
.......

.github/dependabot.yml

version: 2
updates:

- package-ecosystem: "pip"
  directory: "/"
  open-pull-requests-limit: 10
  milestone: 115080
  versioning-strategy: "auto"

- package-ecosystem: "docker"
  directory: "/"
  open-pull-requests-limit: 10
  milestone: 115080
  versioning-strategy: "auto"

registries:
  ob-acr:
    type: docker-registry
    url: redacted
    username: AzureDevopsDependabot
    password: ${{ ACR_PASSWORD }}

Issue Analytics

  • State:closed
  • Created 7 months ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mburumaxwellcommented, Feb 27, 2023

Maybe this should be an issue raised in the main repo at https://github.com/dependabot/dependabot-core ?

0reactions
bedzinskcommented, Feb 28, 2023

Thank you for your support! Apparently the setup is very sensitive to different dependabot versions. From my side issue can be closed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

python - Upgrade Pip error message
A permission issue means your user privileges don't allow you to write on the desired folder( /Library/Python/2.7/site-packages/pip/ ).
Read more >
Error while upgrading pip ERROR Could not install packages ...
Hey Folks, I received the following warning message: WARNING: You are using pip version 19.1.1, however version 19.2.3 is available.
Read more >
pip upgrade fails - tells me to upgrade pip : r/learnpython
Uninstall the pip packages in your distro, and use only your package manager globally. Use virtual environments instead, where you can be ...
Read more >
4 Ways to Fix the Pip Install Not Working Issue
How to Fix the Pip Install Not Working Issue · Open Command Prompt. · Execute the command “python -v”. It will tell you...
Read more >
Pip upgrade to 22.3 windows10 - Packaging
Hi all, I'm trying to upgrade my pip version. I'm running in cmd promtp as admin and my error is this When I...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found