mozilla / bugbot

A Mozilla release management tool to send reminders to Firefox developers and improve Bugzilla metadata
BSD 3-Clause "New" or "Revised" License
41 stars 68 forks source link

Dependency version conflict with BugBug #2507

Closed suhaibmujahid closed 1 month ago

suhaibmujahid commented 1 month ago

numpy

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.
scipy 1.11.3 requires numpy<1.28.0,>=1.21.6, but you have numpy 2.1.1 which is incompatible.
numba 0.58.0 requires numpy<1.26,>=1.21, but you have numpy 2.1.1 which is incompatible.
matplotlib 3.8.0 requires numpy<2,>=1.21, but you have numpy 2.1.1 which is incompatible.
contourpy 1.1.1 requires numpy<2.0,>=1.16; python_version <= "3.11", but you have numpy 2.1.1 which is incompatible.
bugbug 0.0.522 requires libmozdata==0.2.4, but you have libmozdata 0.2.8 which is incompatible.
bugbug 0.0.522 requires numpy==1.22.4, but you have numpy 2.1.1 which is incompatible.
bugbug 0.0.522 requires requests==2.31.0, but you have requests 2.32.3 which is incompatible.
bugbug 0.0.522 requires tenacity==8.2.3, but you have tenacity 9.0.0 which is incompatible.

libmozdata

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.
bugbug 0.0.522 requires libmozdata==0.2.4, but you have libmozdata 0.2.8 which is incompatible.
bugbug 0.0.522 requires numpy==1.22.4, but you have numpy 2.1.1 which is incompatible.
bugbug 0.0.522 requires requests==2.31.0, but you have requests 2.32.3 which is incompatible.
bugbug 0.0.522 requires tenacity==8.2.3, but you have tenacity 9.0.0 which is incompatible.
marco-c commented 1 month ago

I don't think there's much we can do here, it is expected that the two projects might have different dependencies. To avoid conflicts, one can use a virtualenv.

suhaibmujahid commented 1 month ago

I'm sorry, that was my mistake. I use virtualenv, but it seems that I had BugBug installed manually. I thought BugBug was still a dependency for BugBot (we already dropped that a long time ago).

Fixed by running pip uninstall bugbug in the virtualenv.