broad-processor-92400
11/22/2022, 8:56 PM$ docker run -it --platform linux/amd64 python:3.9 bash -c 'echo -e "[GLOBAL]\npants_version = \"2.14.0\"" > pants.toml && curl -L -O <https://static.pantsbuild.org/setup/pants> && chmod +x ./pants && ./pants version'
... setup ...
New virtual environment successfully created at /root/.cache/pants/setup/bootstrap-Linux-x86_64/2.14.0_py39.
20:52:23.81 [INFO] waiting for pantsd to start...
20:52:28.81 [INFO] waiting for pantsd to start...
Traceback (most recent call last):
File "/root/.cache/pants/setup/bootstrap-Linux-x86_64/2.14.0_py39/lib/python3.9/site-packages/pants/engine/internals/scheduler.py", line 215, in __init__
self._py_scheduler = native_engine.scheduler_create(
ValueError: Failed to begin watching the filesystem: Function not implemented (os error 38)
20:52:33.83 [INFO] waiting for pantsd to start...
... continues like that ~forever ...
Is there a way to get this to work?
_update_: solution: run like ./pants --no-pantsd --no-watch-filesystem ...
and make sure the docker containers have a high enough memory limitbitter-ability-32190
11/22/2022, 8:57 PMhundreds-father-404
11/22/2022, 8:58 PMinotify
. See last paragraph of: https://www.pantsbuild.org/docs/prerequisites#macoshundreds-father-404
11/22/2022, 8:59 PM./pants
from your localhost (mac), and Pants will use Docker for you appropriately
Any interest in that? What commands are you running?broad-processor-92400
11/22/2022, 9:02 PM--platform linux/amd64
image under emulation 🐌), but yeah, --no-watch-filesystem
seems to resolve it. Thanks.broad-processor-92400
11/22/2022, 9:02 PMbroad-processor-92400
11/22/2022, 9:22 PM--no-pantsd --no-watch-filesystem
stops the exception, but it now just dies: logs with -ldebug
21:14:01.84 [DEBUG] File handle limit is: 1048576
21:14:04.65 [DEBUG] Using [cache::CommandRunner { inner: bounded::CommandRunner { inner: nailgun::CommandRunner { inner: local::CommandRunner { .. }, .. }, .. }, .. }, cache::CommandRunner { inner: bounded::CommandRunner { inner: nailgun::CommandRunner { inner: local::CommandRunner { .. }, .. }, .. }, .. }] for process execution.
21:14:05.74 [DEBUG] Launching 1 roots (poll=false).
21:14:05.88 [DEBUG] computed 1 nodes in 0.137155 seconds. there are 7 total nodes.
21:14:06.19 [DEBUG] File handle limit is: 1048576
Killed
hundreds-father-404
11/22/2022, 9:31 PM./pants --version
broad-processor-92400
11/22/2022, 9:37 PM./pants -ldebug --no-pantsd --no-watch-filesystem version
.
Running under /usr/bin/time -v
shows Maximum resident set size (kbytes): 2640740
, and watching top
indeed shows resident memory of the Python process getting to 2.5G, and virtual memory getting to... 480G ❗broad-processor-92400
11/22/2022, 9:39 PM[GLOBAL]
pants_version = "2.14.0"
(plus the .pants.d
that pants creates)broad-processor-92400
11/22/2022, 11:00 PMwitty-crayon-22786
11/22/2022, 11:28 PM