jolly-oyster-17014
10/18/2022, 6:57 PMtorch-geometric
into my monorepo, and I've come across an interesting problem. Installing this depends on torch-scatter
and torch-sparse
(docs here), but the issues arises here with M1 macbooks. There are no official arm64 wheels available on the index. This is usually fine - i can install from source, but setup.py
on these packages have a hard dependency on torch
(link), so trying to do this would lead to module not found: torch
. I followed the docs for undeclared dependencies, https://www.pantsbuild.org/docs/python-third-party-dependencies#requirements-with-undeclared-dependencies, but this still generates an issue with python setup.py egg_info
, stack trace:
WARNING: Discarding git+<https://github.com/rusty1s/pytorch_scatter@62a958f467bf80c3f566083b4949ec21e2be57d0>. Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
WARNING: Discarding git+<https://github.com/rusty1s/pytorch_sparse@6143af2112cd404adca42111daf14397a45f2d7e>. Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement torch-scatter (unavailable)
ERROR: No matching distribution found for torch-scatter (unavailable)
Pinning a single page link source is also problematic since it should build for setups with cuda & without cuda on cpu - there are single page source for each of these cases for the wheels https://data.pyg.org/whl/torch-1.11.0+cpu.html and https://data.pyg.org/whl/torch-1.11.0+cu113.html
Any tips/ideas on how to get around this issue?
(This usually is no problem in conda because of the package metadata, but there's no way to incorporate conda into pants right?)brash-student-40401
10/18/2022, 8:20 PMBUILD
directory (or subdirectories)? I'm using Voila to run a notebook, and it is expecting files to be in specific places on the file system. I tried using files
and relocated_files
targets, but you can't throw an absolute path as a destination.loud-laptop-17949
10/18/2022, 9:08 PMdependees
goal supposed to respect the --filter-target-types
option? It does not seem like it does to me.brash-student-40401
10/18/2022, 9:41 PMBuilding N requirements for Y.pex
), is there a way to interrogate what requirement is jamming it up? It seems like it'll happily "build" forever without making any progress.curved-television-6568
10/18/2022, 9:43 PMps ax | grep pants
which will show you running processes and one of them likely has a tmp path with interesting log files to tail during a run… 😉curved-television-6568
10/18/2022, 9:44 PMpex
tools invocation of pip
has a pip log file arg on the command line worth digging up 🙂witty-crayon-22786
10/18/2022, 9:44 PM--pex-verbosity=3 -ldebug
or higher to get some more info on where time was being spent, i think?brash-student-40401
10/18/2022, 9:45 PMhigh-yak-85899
10/18/2022, 10:04 PMswift-dawn-80732
10/18/2022, 11:30 PM./pants package
on a docker_image
target:
#3 [internal] load metadata for <http://docker.io/library/python:3.9.10|docker.io/library/python:3.9.10>
#3 sha256:46aa02c10fee7f9ebc6cc466be0c44172ff37ff4dd662dc045c92c93ba51e3fe
#3 ERROR: rpc error: code = Unknown desc = error getting credentials - err: exit status 1, out: `One or more parameters passed to a function were not valid.`
has anyone ran into this issue?swift-dawn-80732
10/18/2022, 11:32 PMOne or more parameters passed to a function were not valid
looks like it has something to do with ssl certificates in macsswift-dawn-80732
10/18/2022, 11:33 PMcurved-television-6568
10/18/2022, 11:33 PMcurved-television-6568
10/18/2022, 11:34 PMswift-dawn-80732
10/18/2022, 11:38 PMswift-dawn-80732
10/18/2022, 11:38 PM[docker]
env_vars = ["DOCKER_CONFIG=%(homedir)s/.docker"]
to pants.toml
solved the issueswift-dawn-80732
10/18/2022, 11:39 PMcurved-television-6568
10/18/2022, 11:55 PMcurved-television-6568
10/18/2022, 11:55 PMfast-nail-55400
10/19/2022, 12:04 AMXDG_CONFIG_HOME
nor HOME
is not set in the execution sandbox, docker would not know where to find config file. https://github.com/moby/moby/blob/2400bc66ef6955760a331a2bff767d4fec244844/pkg/homedir/homedir_linux.go#L84-L93few-airline-50721
10/19/2022, 12:21 AMnice-florist-55958
10/19/2022, 12:30 AMrough-vase-83553
10/19/2022, 2:43 AMpython_requirement
and python_requirements
is, in case there's some misuse going on that's messing things up.rhythmic-morning-87313
10/19/2022, 5:58 AMagreeable-microphone-98219
10/19/2022, 10:42 AMuse_coverage = true
in pants.toml
it complains: [pytest].extra_requirements is missing pytest-cov, which is needed to collect coverage data.
2. Since pytest-cov
is a new extra_requirement
for pytest
, I have to run ./pants generate-lockfiles --resolve=pytest
. Otherwise, it complains with InvalidLockfileError
.
3. However, when I run ./pants generate-lockfiles --resolve=pytest
, pants does not generate hashes for some dependencies.
4. So when I run ./pants test ::
it starts to complain:
ProcessExecutionFailure: Process 'Building pytest.pex from src/python/tests/lockfile_pytest.txt' failed with exit code 1.
stdout:
stderr:
ERROR: Hashes are required in --require-hashes mode, but they are missing from some requirements. Here is a list of those requirements along with the hashes their downloaded archives actually had. Add lines like these to your requirements files to prevent tampering. (If you did not enable --require-hashes manually, note that it turns on automatically when any package has a hash.)
any ideas?refined-addition-53644
10/19/2022, 10:54 AMbitter-ability-32190
10/19/2022, 10:59 AMhappy-kitchen-89482
10/19/2022, 2:00 PMhappy-kitchen-89482
10/19/2022, 2:06 PM