happy-kitchen-89482
08/24/2023, 6:20 PMbored-energy-25252
08/25/2023, 9:27 AMgorgeous-winter-99296
08/25/2023, 12:47 PMcheck
goal is suddenly not enabled in our repo so pants check ::
fails
⢠Dependency-inference is failing to pick up a package (torch
) if we only do from ...
imports (!)
⢠We have a few weird warnings about unowned dependencies in a pex_binary
with a parametrized resolve that don't exist in 2.16gorgeous-winter-99296
08/25/2023, 12:52 PM# decimate.py
from torch.utils.tensorboard import SummaryWriter
⦠⯠pants peek cmd/decimate.py@resolve=cpu
[
{
"address": "cmd/decimate.py@resolve=cpu",
"target_type": "python_source",
"dependencies": [
"//:cpu#coloredlogs",
"//:cpu#tensorboard",
"src/py/cliclasses/cliclasses/__init__.py@resolve=cpu"
],
...
But if I add a direct dependency...
# decimate.py
from torch.utils.tensorboard import SummaryWriter
import torch
⦠⯠pants peek cmd/decimate.py@resolve=cpu
14:50:14.20 [WARN] Pants cannot infer owners for the following imports in the target cmd/decimate.py@resolve=cpu:
* tensorboard.backend.event_processing.event_accumulator (line: 20)
* tensorboard.compat.proto.summary_pb2.HistogramProto (line: 22)
* tensorboard.compat.proto.summary_pb2.Summary (line: 22)
* tensorboard.compat.proto.types_pb2 (line: 21)
If you do not expect an import to be inferrable, add `# pants: no-infer-dep` to the import line. Otherwise, see <https://www.pantsbuild.org/v2.17/docs/troubleshooting#import-errors-and-missing-dependencies> for common problems.
[
{
"address": "cmd/decimate.py@resolve=cpu",
"target_type": "python_source",
"dependencies": [
"//:cpu#coloredlogs",
"//:cpu#tensorboard",
"//:torch-cpu",
"src/py/cliclasses/cliclasses/__init__.py@resolve=cpu"
],
I wonder if something with tensorboard
here is tripping up the dependency inference thinking the two packages are related...gorgeous-winter-99296
08/25/2023, 12:59 PMuse_rust_parser
.bitter-ability-32190
08/25/2023, 5:36 PMgorgeous-winter-99296
08/25/2023, 5:36 PMbitter-ability-32190
08/25/2023, 5:36 PMhappy-kitchen-89482
08/25/2023, 11:08 PMbitter-ability-32190
08/26/2023, 11:34 AMhappy-kitchen-89482
08/26/2023, 2:36 PMbitter-ability-32190
08/26/2023, 2:45 PMbitter-ability-32190
08/26/2023, 3:13 PMhappy-kitchen-89482
08/26/2023, 3:27 PMhappy-kitchen-89482
08/26/2023, 3:27 PMbitter-ability-32190
08/26/2023, 3:27 PMhappy-kitchen-89482
08/26/2023, 5:00 PMbitter-ability-32190
08/26/2023, 7:16 PMbitter-ability-32190
08/26/2023, 9:45 PM