user
09/10/2021, 6:53 PMuser
09/10/2021, 6:54 PMbrainy-photographer-16204
09/10/2021, 9:04 PMTo set up Pants in your repo, we recommend installing our self-containedbash script in the root (i.e. the "build root") of your repo:pants
curl -L -O https://pantsbuild.github.io/setup/pants && chmod +x pants
To verify that Pants bootstraps correctly, run:
./pants --versionThat first command installs pants v2 - and then
./pants --version
yells at me because I don't have a pants.toml
file with the version in it.brainy-photographer-16204
09/10/2021, 9:05 PMprintf "[GLOBAL]\npants_version = \"$(./pants --version)\"\n" > pants.toml
brainy-photographer-16204
09/10/2021, 9:06 PMpowerful-florist-1807
09/11/2021, 12:17 AMambitious-student-81104
09/12/2021, 6:54 PMpip install -r constraints.txt
works fine, but pants resolving constraint hit this error:
pants.engine.process.ProcessExecutionFailure: Process 'Resolving constraints.txt' failed with exit code 1.
...
ERROR: Failed building wheel for fastparquet
...
FileExistsError: [Errno 17] File exists: '/private/var/folders/sp/r6qw31k954q4r3ytv2psppr80000gp/T/process-execution0CgoPz/.tmp/pip-req-build-phat6ajh/.eggs/numpy-1.21.2-py3.7-macosx-10.16-x86_64.egg'
...
ERROR: Failed cleaning build dir for fastparquet
ERROR: Failed to build one or more wheels
This is when building on Mac OS. And only one of our teammates hit this error, the rest (also using mac OS) built successfully. Any clue?hundreds-father-404
09/12/2021, 7:53 PMhappy-kitchen-89482
09/13/2021, 1:44 AMhappy-kitchen-89482
09/13/2021, 1:55 AMdazzling-diamond-4749
09/13/2021, 3:12 AMenough-analyst-54434
09/13/2021, 3:18 AM-ldebug --pex-verbosity=9
included. It's probably best to dump this all in an issue to anchor the debugging effort.adorable-engine-71736
09/13/2021, 9:27 AMastonishing-london-2419
09/13/2021, 1:57 PMlib
folder, so for example the common library would be placed in lib/common/namespace/common
(with the build file for each library as lib/common/BUILD
). To include dependencies, I am adding things like dependencies=["lib/common"]
to the library configuraiton, but I am not sure if:
1. I need to add them in module_mapping
, eg, "lib/common": ["namespace.common"]
2. If they re being picked up correctly, because I don’t know how to properly read ./pants dependencies
and they don’t show up in ./pants dependencies --type=3rdparty
Can anybody give me a hint to see if what I’m doing makes sense? Thanks!hundreds-father-404
09/13/2021, 5:13 PMenough-analyst-54434
09/13/2021, 5:46 PMhappy-kitchen-89482
09/13/2021, 6:31 PMmodern-wolf-36228
09/13/2021, 6:32 PMflat-zoo-31952
09/13/2021, 6:41 PMFailed to launch child `/home/.../.cache/bootstrap-Linux-x86_64/2.6.1rc3_py39/bin/pants`: Os { code: 13, kind: PermissionDenied, message: "Permission denied" }
Even going to the resolved bin directory in my shell and running ./pants
fails with the same error. Any idea what might be going on? What's it trying to launch internally there?dazzling-diamond-4749
09/13/2021, 8:26 PMambitious-student-81104
09/13/2021, 8:27 PMenough-analyst-54434
09/13/2021, 10:28 PMdazzling-diamond-4749
09/13/2021, 10:29 PMenough-analyst-54434
09/13/2021, 10:30 PMenough-analyst-54434
09/13/2021, 10:38 PMambitious-student-81104
09/14/2021, 1:02 AM%pex_load tmp/ml_training_env.pex
fails. I put the code and output in the thread.astonishing-london-2419
09/14/2021, 1:16 PMhappy-kitchen-89482
09/14/2021, 1:53 PMnutritious-hair-72580
09/14/2021, 2:19 PM# bv.py
from BitVector import BitVector
bv = BitVector(size=0)
# test_bv.py
from .bv import bv
def test_it():
assert bv == 2
# BUILD file
python_library(
# Works if added manually
# dependencies=["//:BitVector"]
)
python_tests(
name="tests"
)
# Error
E ModuleNotFoundError: No module named 'BitVector'
user
09/14/2021, 4:27 PM