chilly-carpet-91912
02/04/2020, 12:52 PMException message: Could not satisfy all requirements for Markdown==2.1.1:
Markdown==2.1.1(from: pantsbuild.pants==1.23.0), markdown>=2.6.8(from: tensorflow==1.12.0->tensorboard<1.13.0,>=1.12.0)
I'm out of ideaschilly-carpet-91912
02/04/2020, 4:07 PMhappy-kitchen-89482
02/04/2020, 8:47 PMhappy-kitchen-89482
02/04/2020, 8:49 PMhappy-kitchen-89482
02/04/2020, 8:49 PMhappy-kitchen-89482
02/04/2020, 8:50 PMchilly-carpet-91912
02/05/2020, 8:35 AMdocker-plugin
to build images with .pex
chilly-carpet-91912
02/05/2020, 8:39 AMpython_library(
name = "docker",
dependencies = [
"3rdparty/python:pantsbuild.pants",
],
sources = globs("*.py"),
)
chilly-carpet-91912
02/05/2020, 9:56 AMTAG
for that case?happy-kitchen-89482
02/06/2020, 5:21 PMhappy-kitchen-89482
02/06/2020, 5:22 PMchilly-carpet-91912
02/06/2020, 5:25 PMhundreds-father-404
02/06/2020, 5:27 PMWhat do we do in these cases to re-pin a dep that for some reason Pants is insisting on a specific version of?I don’t think there’s any solution for this, afaict. Generally, Pants is likely far too restrictive in its version numbers and this was a huge pain point when I was at Foursquare to make sure that versions matched
hundreds-father-404
02/06/2020, 5:29 PMchilly-carpet-91912
02/06/2020, 5:29 PMchilly-carpet-91912
02/06/2020, 5:32 PMhundreds-father-404
02/06/2020, 5:34 PM3rdparyt/python/requirements.txt
. See https://www.pantsbuild.org/howto_contribute.html for a contributor guidehappy-kitchen-89482
02/06/2020, 5:47 PMchilly-carpet-91912
02/06/2020, 6:13 PMhundreds-father-404
02/06/2020, 6:14 PMMarkdown>=2.1.1
chilly-carpet-91912
02/06/2020, 6:20 PMhundreds-father-404
02/06/2020, 6:20 PM>=2.1
and your other library requires ==2.2
, then Pip will resolve 2.2
, even if there is a newer version 2.3
chilly-carpet-91912
02/06/2020, 6:21 PMchilly-carpet-91912
02/06/2020, 6:24 PMhundreds-father-404
02/06/2020, 6:25 PMbut when it does not find any restrictionsHence why we generally pin requirements in Pants. Usually, Pants is run as an executable. But it can also be used as a library. Executables want to pin their versions exactly to avoid things changing overnight on you and breaking the app. In contrast, libraries are better to float so that you don’t force a user to use a particular version of a library You’re correct that if you don’t like using the newest version of Markdown, in your own personal requirements.txt you could always pin to a specific version, so long as it’s compatible with all the other requirements
chilly-carpet-91912
02/06/2020, 6:34 PMMarkdown>=2.1.1
can't be done i guesschilly-carpet-91912
02/06/2020, 6:35 PMchilly-carpet-91912
02/06/2020, 6:36 PMchilly-carpet-91912
02/06/2020, 6:36 PMhundreds-father-404
02/06/2020, 6:40 PMso adding Markdown>=2.1.1 can’t be done i guessHow come? I don’t follow
chilly-carpet-91912
02/06/2020, 6:44 PMchilly-carpet-91912
02/06/2020, 10:14 PMUsually, Pants is run as an executable. But it can also be used as a library. Executables want to pin their versions exactly to avoid things changing overnight on you and breaking the app.@hundreds-father-404 isn't is potentially harmful for your users to update the requirements.txt with
Markdown>=2.1.1
hundreds-father-404
02/06/2020, 10:15 PMchilly-carpet-91912
02/07/2020, 8:43 AM