ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts

What is the problem?

Upon upgrading to 1.9.0 I can catch this on the console screen before the server reboots:

"ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
sentry-sdk 1.24.0 requires urllib3<2.0.0, but you have urllib3 2.0.2 which is incompatible."

What did you already try to solve it?

Came to the forums to ask.

Have you tried running in safe mode?

No as it happened when upgrading core Octoprint.

SO I'm just wondering if it's a matter of outdated packages or anything "broken" in my instance.

Thanks!

Please share the systeminfo bundle

Most likely some hard pins by plugins that are now causing issues (as in, that warning) with OctoPrint's updated dependencies.

Sadly plugin authors seem to happily hard pin specific versions of things that OctoPrint also relies on. They shouldn't, but some do. So when I now update the core dependencies, to make sure y'all get newer versions with bug and security fixes pulled in, but some plugin earlier got installed with a hard pin on an earlier version, you get that message. Things should continue to work still. It would be best if the plugin authors in question could stop hard pinning (package == version) and instead use version ranges.

I had the same and a couple of plugins did not work anymore. After I downgraded urllib3 to 1.26.16 everything works again fine.

  • cd /home/pi/oprint
  • source ./bin/activate
  • pip3 install "urllib3==1.26.16"

Well I don't use that many plugins but ty for the input! :wink:

If you shared the systeminfo bundle we might be able to work out which plugin :wink:

octoprint-systeminfo-20230525093848.zip (1.1 MB)

interesting...

sentry-sdk 1.24.0 requires urllib3<2.0.0, but you have urllib3 2.0.2 which is incompatible.

looking at the plugin list that's installed, not sure which one of those would be version pinning that module.

I got a similar error during upgrade to 1.9.0:

2023-05-25 22:34:34,047 ! sentry-sdk 1.24.0 requires urllib3>=1.26.11; python_version >= "3.6", but you have urllib3 1.26.3 which is incompatible.

How do I find the culprit?
octoprint-systeminfo-20230525224238.zip (91.2 KB)

Not sure if this is useful, but when I use "pip3 show urllib3" (from oprint venv) the only "required-by" packages listed are "requests, sentry-sdk". The requests package calls for "urllib3 (<3,>=1.21.1)". The sentry-sdk package (for python 3.9) calls for "urllib3 (<2.0.0)" and "urllib3 (>=1.26.11)". So, I don't see any plugin or anything else that is "hard pinning" a requirement for the older urllib3 package (but my understanding of pip/python easily fits inside a thimble with room to spare, so I may be missing something here).

In any case... I manually updated (pip3 install "urllib3==1.26.16"), and so far have not seen any problems.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.