Hello, what linux requirements does pants have? I'...
# general
a
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
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
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
Cool, that’s likely the issue. You can upgrade by changing the pants_version option to 2.0.0a2 in pants.toml
a
if i symlink to python3 will it work ?
h
Yep, that works too!
a
thanks for your help, symlink solved it
❤️ 1
h
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
in this case, double thanks if you're in the US
❤️ 1
😄