I think I've run into this before and gotten an an...
# general
l
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
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
Thanks, adding it to the .gitignore does seem to have given me a different bug to work through 🙂
w
…by adding something like
Copy code
[GLOBAL]
pants_ignore.add = [
  '.venv/'
]
or
.gitignore
, yea.
l
Thanks, I'm unblocked now 🙂