Potential dependency conflicts between ChannelBreakoutBot and urllib3
Hi, as shown in the following full dependency graph of ChannelBreakoutBot, ChannelBreakoutBot requires urllib3 (the latest version), while the installed version of requests(2.22.0) requires urllib3>=1.21.1,<1.26.
According to Pip's “first found wins” installation strategy, urllib3 1.25.3 is the actually installed version.
Although the first found package version urllib3 1.25.3 just satisfies the later dependency constraint (urllib3>=1.21.1,<1.26), it will lead to a build failure once developers release a newer version of urllib3.
Dependency tree--------
ChannelBreakoutBot(version range:)
| +-hyperopt(version range:)
| +-matplotlib(version range:)
| +-networkx(version range:==1.11)
| +-numpy(version range:)
| +-pandas(version range:)
| +-pubnub(version range:)
| | +-pycryptodomex(version range:>=3.3)
| | +-requests(version range:>=2.4)
| | | +-chardet(version range:>=3.0.2,<3.1.0)
| | | +-idna(version range:>=2.5,<2.9)
| | | +-urllib3(version range:>=1.21.1,<1.26)
| | | +-certifi(version range:>=2017.4.17)
| | +-six(version range:>=1.10)
| +-requests(version range:)
| | +-chardet(version range:>=3.0.2,<3.1.0)
| | +-idna(version range:>=2.5,<2.9)
| | +-urllib3(version range:>=1.21.1,<1.26)
| | +-certifi(version range:>=2017.4.17)
| +-six(version range:)
| +-tornado(version range:)
| +-urllib3(version range:)
| +-websocket-client(version range:)
Thanks for your attention. Best, Neolith
Solution
-
Fix your direct dependencies to be urllib3>=1.21.1,<1.26 and requests==2.22.0, to remove this conflict. I have checked this revision will not affect your downstream projects now.
-
Remove your direct dependency urllib3, and use the library urllib3 transitively introduced by requests.
Personally, I prefer solution 2. What's your opinion?
@Connie-Wild May I pull a request to solve this issue?