fierce-fall-70380
01/29/2025, 6:31 PMpants dependents
๐งตfierce-fall-70380
01/29/2025, 6:33 PMpants.core.util_rules.unowned_dependency_behavior.UnownedDependencyError: Pants cannot infer owners for the following imports in the target ...:
* pydantic.v1.ValidationError (line: 28)
In my third-party/_pants/BUILD
file I have:
python_requirement(
name="pydantic",
requirements=["pydantic==2.4.2"]
)
And I have a wheel for it:
ACAM-M-RWLH: acam$ ls third-party/_pants/wheels/pydantic*
third-party/_pants/wheels/pydantic-2.4.2-py3-none-any.whl
third-party/_pants/wheels/pydantic_core-2.10.1-cp311-cp311-macosx_11_0_arm64.whl
ACAM-M-RWLH: acam$
Note: This is the folder my pants config points to:
[python-repos]
find_links = [
"file:///%(buildroot)s/third-party/_pants/wheels"
]
indexes = []
fierce-fall-70380
01/29/2025, 6:33 PMdependents
goal use a sandbox? I haven't been able to get --keep-sandboxes
to work to debug this (it doesn't even print or log the name of the folder it's using).fierce-fall-70380
01/29/2025, 6:53 PMfierce-fall-70380
01/29/2025, 6:57 PMcareful-address-89803
01/29/2025, 10:30 PMpydantic
.
My first guess would be that Pants doesn't know that something provides pydantic. Do you have a python_requirement
target that provides pydantic
? (try with pants list :: | grep pydantic
)fierce-fall-70380
01/31/2025, 8:10 PM