https://pantsbuild.org/ logo
#general
Title
# general
a

abundant-byte-99983

09/07/2020, 3:39 PM
Hello, what linux requirements does pants have? I'm trying to run it inside docker.io/centos:8.2.2004 and I get an error when building the linters https://pastebin.com/EBBa13Ey
same error occurs when running in a minimal install centos8 vm
h

hundreds-father-404

09/07/2020, 4:13 PM
Hey Razvan, welcome. Centos and most distros should work in general. We only know Alpine to not work. What Pants version are you using? You can run
./pants --version
. Also, what does
which -a python
and
which -a python3
show? If you’re using 1.30, it requires
python
to be discoverable, and many Linux distros don’t have it, hence file not found error. That’s fixed in 2.0.0a2, which is generally a much more polished experience. Only caveat is that Protobuf isn’t working in that release yet. (We plan to switch the docs to default to 2.0 this week - we only need to update a page first. You can manually switch the version of the docs in the top left corner iirc)
a

abundant-byte-99983

09/07/2020, 4:14 PM
1.30.0
👍 1
which -a python /usr/bin/which: no python in (/home/centos/.local/bin/home/centos/bin/usr/local/bin/usr/bin/usr/local/sbin:/usr/sbin)
👍 1
Copy code
which -a python3
/usr/bin/python3
h

hundreds-father-404

09/07/2020, 4:14 PM
Cool, that’s likely the issue. You can upgrade by changing the pants_version option to 2.0.0a2 in pants.toml
a

abundant-byte-99983

09/07/2020, 4:15 PM
if i symlink to python3 will it work ?
h

hundreds-father-404

09/07/2020, 4:15 PM
Yep, that works too!
a

abundant-byte-99983

09/07/2020, 4:16 PM
thanks for your help, symlink solved it
❤️ 1
h

hundreds-father-404

09/07/2020, 4:17 PM
In 2.0, the more robust fix is that we search for python, python2, and python3, and only need one to exist. But yes, a symlink is another workaround
Awesome! Let us know what feedback and questions you have! We may be slower to respond today because most the maintainers live in the US and it’s Labor Day, but we’d love to help
a

abundant-byte-99983

09/07/2020, 4:20 PM
in this case, double thanks if you're in the US
❤️ 1
😄
2 Views