ancient-france-42909
08/20/2022, 8:13 PM2.4.15
, which needs python 3.7 (which is what our repo is supposed to use). When I try to generate a lockfile it says:
ERROR: Could not find a version that satisfies the requirement pylint>=2.14.5
ERROR: No matching distribution found for pylint>=2.14.5
If I look in the logs, it says it’s using 3.7.4 to bootstrap the env, and if I check in the sandbox, the pex file is python 3.7.4. But if I run __run.sh
, it gets changed to 3.6.8 (this was a pyenv artifact). If I use the pex from the sandbox folder to get pylint, it works. If I run __run.sh
, it obviously stops working. There’s also nothing in the log file mentioned in the command line printed. How can I debug/fix this, except by uninstalling any <3.6
I have?flat-zoo-31952
08/21/2022, 4:16 PM./pants tailor
will take care of things for which the backends are installed, but I'm thinking of also requiring that even text files or json files or whatever be at least lumped into files()
targets so that nothing is really unknown to Pants. Could this backfire?rhythmic-glass-66959
08/22/2022, 1:09 PM[WARN] Failed to generate JUnit XML data for test/python/...tests.
Do you know how I can troubleshoot this problem in Pants? I tried to find some logs and use the flag --keep-sandboxes=always
, but without success... Note that the tests are successful. Thank you.ancient-rose-27306
08/22/2022, 3:43 PMpython_distribution()
target and for a Docker image it should be docker_image()
target. Throwing in gRPC and Protobufs in the mixture and there I know that python_distribution()
target type will resolve the proto dependency at the time of executing package
goal. Would the target type docker_image()
do the same? Is package
the right goal for my use case here as in to build a Docker image?bitter-ability-32190
08/22/2022, 4:59 PMBUILD
file formatters in fmt
, instead of having to invoke update-build-files
. They are supported by opt-in backends, and pluggable!
Hopefully, 2.14 will see us moving the fixing to a new fix
goal as well!
(Also, this adds buildifier
formatting, which is sort-of like black
but also does keyword arg sorting. Thanks Bazel 😛)flat-zoo-31952
08/22/2022, 6:49 PMpants.backend.$newname.$feature
in the switches to enable the backend. Using them as a prefix in goals/targets/options would be avoided as much as possible (although we may need to discuss the finer details of this in another thread).
Pants community, what's your opinion on a good name here? We can discuss here, narrow these down, and the we'll put it to a votehigh-yak-85899
08/22/2022, 8:38 PMincalculable-hydrogen-44003
08/22/2022, 9:18 PMancient-rose-27306
08/22/2022, 10:33 PMenough-analyst-54434
08/22/2022, 10:36 PMbored-glass-58755
08/22/2022, 10:40 PM./pants package
fails with following error:
15:55:08.93 [ERROR] 1 Exception encountered:
Exception: Error downloading file: error sending request for url (<https://github.com/pantsbuild/pex/releases/download/v2.1.90/pex>): error trying to connect: invalid peer certificate contents: invalid peer certificate: UnknownIssuer
Is there a proxy setting that can be configured in Pants?ancient-rose-27306
08/22/2022, 10:41 PMboundless-zebra-79556
08/22/2022, 11:49 PMpants_from_source
to test changes, is interpreter constraint ==3.9.*
somehow added? I've been building with ==3.10.*
and its been working fine on 2.13 rc, but running from source is failing because of conflicting constraintshappy-kitchen-89482
08/23/2022, 12:47 AMcold-sugar-54376
08/23/2022, 1:50 AMNo interpreter compatible with the requested constraints was found:
A distribution for lxml could not be resolved for /Users/ashu/.pyenv/versions/3.9.10/bin/python3.9.
Found 1 distribution for lxml that do not apply:
1.) The wheel tags for lxml 4.9.1 are cp39-cp39-macosx_12_0_arm64 which do not match the supported tags of /Users/ashu/.pyenv/versions/3.9.10/bin/python3.9:
cp39-cp39-macosx_10_16_arm64
... 724 more ...
cold-sugar-54376
08/23/2022, 1:51 AM./pants run
ancient-rose-27306
08/23/2022, 1:10 PMpex_binary()
target using package
goal but it fails with following error:
(pants) [root@9a5752857756 pants-training]# ./pants package src/client:greeter_client
13:07:32.60 [ERROR] 1 Exception encountered:
BinaryNotFoundError: Cannot find `unzip` on `['/bin', '/usr/bin', '/usr/local/bin']`. Please ensure that it is installed so that Pants can download the tools Pants needs to run.
(pants) [root@9a5752857756 pants-training]#
I have the unzip package in `/usr/bin/`:
(pants) [root@9a5752857756 pants-training]# ls -ltra /usr/bin/unzip
-rwxr-xr-x 2 root root 206728 Dec 16 2021 /usr/bin/unzip
(pants) [root@9a5752857756 pants-training]#
Could someone please help with this?bitter-ability-32190
08/23/2022, 1:14 PMStyleRequest
is used by fmt
, lint
, check
, and soon-to-be-fix
. Anyone wanna help me play the name game for a more appropriate name?
Really it's just an association of tool name to field set 🤔 RunToolOnTargetRequestBase
?average-balloon-31442
08/23/2022, 2:03 PMpants --changed-since={COMMIT} --changed-dependees=transitive roots
I realised that roots ignores --changed-since
and --changed-dependees
, because it prints all the projects.
But when you use:
pants --changed-since={COMMIT} --changed-dependees=transitive list
-> it shows all the targets.
Our solution is to cut the project names and filter the output from the list, but is it expected somehow in the future to support changed-since
and changed-dependees
for roots
command? Because I see it works for `lint`/`test` for example.ancient-rose-27306
08/23/2022, 2:10 PM(pants) [root@9a5752857756 pants-training]# ./pants package src/server:docker
09:52:28.41 [INFO] Completed: Building dockerfile_parser.pex from dockerfile-parser_default.lock
09:52:32.72 [INFO] Completed: Building docker image docker:latest
09:52:32.73 [WARN] Docker build failed for `docker_image` src/server:docker. The src/server/Dockerfile have `COPY` instructions where the source files may not have been found in the Docker build context.
The following files were not found in the Docker build context:
* ./3rdparty/requirements.txt
* ./src/server/
09:52:32.73 [ERROR] 1 Exception encountered:
ProcessExecutionFailure: Process 'Building docker image docker:latest' failed with exit code 1.
stdout:
stderr:
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
Use `--no-process-cleanup` to preserve process chroots for inspection.
(pants) [root@9a5752857756 pants-training]#
My source can be found here. It seems like I need to add some dependencies to the docker_image()
target which I already tried but it did not work. Could anyone please help me with that?ancient-rose-27306
08/23/2022, 4:35 PMpants.backend.experimental
signify? Does it mean the features provided by this backend are in “experimental” stage and may be removed in future?incalculable-hydrogen-44003
08/23/2022, 4:35 PMbored-glass-58755
08/23/2022, 6:56 PMpants.toml
?bitter-ability-32190
08/23/2022, 8:42 PM./pants run my_file.py
now runs the script in your workspace, should we elide add support for ./pants run my_script.sh
?ripe-cpu-85141
08/23/2022, 8:45 PMtest
goal (which is different from building the packages because they don't exist on dist/
).
I was also wondering about the publish
goal. That seems to be more to push artifacts on repositories like artifactory. Would it be a good practice to use publish
to also deploy stuff on the cloud using CloudFormation or Terraform or Pants is not the right tool for that?bored-glass-58755
08/23/2022, 9:12 PMbitter-ability-32190
08/23/2022, 9:13 PM...
"/home/firstnamelastname/.cache/pants/named_caches/pex_root/unzipped_pexes/00c6aeedd3e540664acb24335a35fdecfe180a56/.bootstrap/pex/hashing.py", line 180, in file_hash
with open(path, "rb") as fp:
FileNotFoundError: [Errno 2] No such file or directory: '/home/firstnamelastname/.cache/pants/named_caches/pex_root/venvs/00c6aeedd3e540664acb24335a35fdecfe180a56/b989780bc0156be1e5370338299e165b5396324b.b1aea9bdeda6439194d975734b2f252e/bin/spark-class'
broad-processor-92400
08/23/2022, 11:47 PMError 1016 Ray ID: 73f7b98a07ed5527 • 2022-08-23 23:45:56 UTC
Origin DNS error
A random internet is-it-down detector seems to agree that it's not working.handsome-sunset-98068
08/24/2022, 5:01 AMstderr:
ERROR: Could not find a version that satisfies the requirement Django<5.0.0,>=4.1
ERROR: No matching distribution found for Django<5.0.0,>=4.1
cool-yacht-37128
08/24/2022, 7:38 AM