I'm comfortable fixing the code (I know my way aro...
# development
l
I'm comfortable fixing the code (I know my way around Scala), but I'm not sure what the development workflow is because it's completely different from the usual Scala setup (with sbt etc)
b
l
Hi @bitter-ability-32190, thanks
I'm having a really weird behaviour though.
I have Pants installed, and it's been working fine. But when I type
pants
in the
pants
directory (where I cloned the Pants repo), I don't get any output
like, not even the usual
No goals specified.
message. Nothing, absolutely nothing
b
Do you have Python 3.9 installed?
l
Copy code
$ python3 --version
Python 3.10.12
Is that compatible enough?
b
which python3.9
is likely what you want to try
No, we run exactly against Python 3.9 🙂
l
OK… weird, I don't understand why it seems to work in any other directory.
b
pants
in the Pants repo delegates to
./pants
l
I see
b
`pants`in any other repo downloads and uses Python3.9
The difference is we need an actual system install of Python so we can compile against it
(*not techincally, but kinda. Better just leave it at that 😅 )
l
Well my Distro ships with Python 3.10. I guess I could install it with Nix?
b
Pick your poison
l
Do you happen to know if it works with Nix?
b
Nope
l
It seems like it works.
b
👍
l
Copy code
There is no pantsd metadata at /home/matthias/pants/.pids/8b5fde57d45d/pantsd.
Traceback (most recent call last):
  File "/home/matthias/pants/src/python/pants/bin/pants_loader.py", line 18, in <module>
    from pants.bin.pants_runner import PantsRunner
  File "/home/matthias/pants/src/python/pants/bin/pants_runner.py", line 11, in <module>
    from pants.base.exception_sink import ExceptionSink
  File "/home/matthias/pants/src/python/pants/base/exception_sink.py", line 19, in <module>
    from pants.util.dirutil import safe_mkdir, safe_open
  File "/home/matthias/pants/src/python/pants/util/dirutil.py", line 21, in <module>
    from pants.util.strutil import ensure_text
  File "/home/matthias/pants/src/python/pants/util/strutil.py", line 17, in <module>
    from pants.engine.internals.native_engine import Digest
ImportError: libstdc++.so.6: cannot open shared object file: No such file or directory
It's probably some Nix issue.
😞
b
Well, we might be able to help out people like you in the future: https://pantsbuild.slack.com/archives/C0D7TNJHL/p1691685217153919
l
OK, it doesn't seem to be a Nix issue, I've now installed Python 3.9 and Rustup directly on the system and I get the same error message.
l
btw, I experienced the same problem when trying to run for the first time - pants just failing without telling me why (no python 3.9). https://github.com/pantsbuild/pants/pull/19567 fixes that in a different way than https://github.com/pantsbuild/pants/pull/19371
b
I'm actually working on the
scie-pants
-provides-the-interpreter change now, which hopefully makes these moot 🤞
l
What's scie-pants?
b
pants
🙏 1
(the binary)