Has anyone had success adding pants to a project t...
# general
m
Has anyone had success adding pants to a project that uses boto3? My dependencies are in a properly configure requirements.txt file. When I try to run the test goal on the project I get the error in the image. If I remove just the boto3 dependency from the requirements file, the test suite runs correctly (but obviously with failures). I’m using a windows machine with Ubuntu 20.04 on wsl2.
r
boto3 have some very restrictive transitive dependencies. You might have to figure out if there are other packages you are using have a common transitive dependencies
b
As a reference point (that's not very actionable, sorry!), we use boto3 extensively without particular problems, but only on macOS and Linux, not WSL. You might be able to get more insight by running pants with
--keep-sandboxes=on_failure
(https://www.pantsbuild.org/docs/reference-global#keep_sandboxes), and then cd-ing into the sandbox directory that is printed. It includes a
__run.sh
script that (mostly) simulates what's pants is running, and so can be a starting point to reproduce/diagnose the problem, e.g. adding more logging verbosity
e
Unless you try hard, WSL == Ubuntu {20.04,22.04}. The only Windows issues you can run into with Pants are trying to use Pants in a repo on a Windows drive. As long as the repo is in a WSL Linux vm (any path there except
/mnt/<Windows drive letter>)
It's just Linux Pants / Pex.