https://pantsbuild.org/ logo
l

limited-insurance-37393

05/18/2022, 3:19 PM
I think I've run into this before and gotten an answer, but it seems to have been lost to the amnesia of Slack. In any case, I'm trying to run Pants inside a virtualenv that is linked to a Python binary managed with pyenv and getting an error related to the symlink
Copy code
⇉ ./pants tailor
11:16:35.25 [INFO] Initializing scheduler...
11:16:35.36 [INFO] Scheduler initialized.
11:16:35.42 [ERROR] 1 Exception encountered:

  Exception: Failed to read link "/home/tmacey/code/mit/data/ol-data-platform/.venv/bin/python": Absolute symlink: "/home/tmacey/.pyenv/versions/3.9.9/bin/python"
@hundreds-father-404 or @witty-crayon-22786 any thoughts on this?
w

witty-crayon-22786

05/18/2022, 5:12 PM
ah, so unfortunately, pants only uses the
.gitignore
at the root of your repository currently: you’ll want to ignore that
venv
directory most likely
you can do that with the
[GLOBAL].pants_ignore
option
l

limited-insurance-37393

05/18/2022, 5:14 PM
Thanks, adding it to the .gitignore does seem to have given me a different bug to work through 🙂
w

witty-crayon-22786

05/18/2022, 5:14 PM
…by adding something like
Copy code
[GLOBAL]
pants_ignore.add = [
  '.venv/'
]
or
.gitignore
, yea.
l

limited-insurance-37393

05/18/2022, 5:15 PM
Thanks, I'm unblocked now 🙂
4 Views