not sure if this is an issue to report, or in `pan...
# development
c
not sure if this is an issue to report, or in
pants
or
scie-pants
if so.. 🧵
while triaging an issue.. I’ve used both
pants
and
./pants
and wound up with this scenario:
Copy code
PANTS_SOURCE=../../kaos/pants pants -V
Bootstrapping pants_deps with requirements:
  /Users/andreas.stenius/src/github/kaos/pants/3rdparty/python/requirements.txt
/Users/andreas.stenius/src/github/kaos/pants/build-support/pants_venv: line 20: /Users/andreas.stenius/.cache/pants/pants_dev_deps/Darwin.arm64.arm.py39.venv/bin/python3.9: No such file or directory
/Users/andreas.stenius/src/github/kaos/pants/build-support/pants_venv: line 33: /Users/andreas.stenius/.cache/pants/pants_dev_deps/Darwin.arm64.arm.py39.venv/bin/python3.9: No such file or directory

Failed to create venv.
 zsh  ~/src/github/psontag/pexample    pants-reproduce-field-issue   14:49 
pyenv versions
  system
* 3.7.13 (set by /Users/andreas.stenius/.pyenv/version)
* 3.8.13 (set by /Users/andreas.stenius/.pyenv/version)
* 3.9.13 (set by /Users/andreas.stenius/.pyenv/version)
  3.11.1
 zsh  ~/src/github/psontag/pexample    pants-reproduce-field-issue   14:50 
deactivate
 zsh  ~/src/github/psontag/pexample    pants-reproduce-field-issue   14:50 
PANTS_SOURCE=../../kaos/pants pants -V
Bootstrapping pants_deps with requirements:
  /Users/andreas.stenius/src/github/kaos/pants/3rdparty/python/requirements.txt
Collecting wheel
i.e. seems like I got an venv active and that tripped things up
e
Pants. The algorithm is pretty simple - either use RUST_LOG=trace, or other output to determine if scie-pants is done. The log output here says scie-pants is done.
After all scie-pants does an execv - so its trace is fully replaced and the exec'd to process is all that remains.
c
ok, great. so, running pants with some venv active breaks stuff in non obvious ways..
e
/Users/andreas.stenius/.cache/pants/pants_dev_deps/Darwin.arm64.arm.py39.venv/bin/python3.9: No such file or directory
says broken link?
What is in that
bin/
dir when you inspect?
c
Copy code
zsh  ~/src/github/psontag/pexample    pants-reproduce-field-issue   14:54 
ll /Users/andreas.stenius/.cache/pants/pants_dev_deps/Darwin.arm64.arm.py39.venv/bin/python3.9
lrwxr-xr-x  1 andreas.stenius  staff    59B 14 Feb 14:50 /Users/andreas.stenius/.cache/pants/pants_dev_deps/Darwin.arm64.arm.py39.venv/bin/python3.9 -> /Users/andreas.stenius/.pyenv/versions/3.9.13/bin/python3.9
 zsh  ~/src/github/psontag/pexample    pants-reproduce-field-issue   14:57 
ll /Users/andreas.stenius/.pyenv/versions/3.9.13/bin/python3.9
-rwxr-xr-x  1 andreas.stenius  staff   3.5M  9 Sep 11:43 /Users/andreas.stenius/.pyenv/versions/3.9.13/bin/python3.9
Copy code
ls /Users/andreas.stenius/.cache/pants/pants_dev_deps/Darwin.arm64.arm.py39.venv/bin/
Activate.ps1  activate.csh  chevron       normalizer    pex-tools     pip           pip3.9        pygmentize    python        python3.9     uvicorn       wheel
activate      activate.fish dotenv        pex           pex3          pip3          py.test       pytest        python3       strawberry    watchgod
e
What about
/Users/andreas.stenius/.pyenv/versions/3.9.13/bin/python3.9
?
Is that a broken link? I.E. follow all the way and see if broken somewhere.
c
Copy code
ls /Users/andreas.stenius/.pyenv/versions/3.9.13/bin/
2to3                  docutils              idle3.9               normalizer            pip3.10               pydoc3                python3               rst2html4.py          rst2pseudoxml.py      twine
2to3-3.9              f2py                  ipython               pex                   pip3.9                pydoc3.9              python3-config        rst2html5.py          rst2s5.py             virtualenv
__pycache__           f2py3                 ipython3              pex-tools             pkginfo               pygmentize            python3.9             rst2latex.py          rst2xetex.py
celery                f2py3.9               jp.py                 pex3                  py-spy                pytest                python3.9-config      rst2man.py            rst2xml.py
cmark                 idle                  keyring               pip                   py.test               python                python3.9-gdb.py      rst2odt.py            rstpep2html.py
django-admin          idle3                 lockfile-diff         pip3                  pydoc                 python-config         rst2html.py           rst2odt_prepstyles.py sqlformat
sorry for my bad shell pastes..
I followed the links to the end above
e
Ok, that was the final missing piece of info. So /Users/andreas.stenius/.pyenv/versions/3.9.13/bin/python3.9 is a real file.
c
yes
Copy code
ll /Users/andreas.stenius/.pyenv/versions/3.9.13/bin/python3.9
-rwxr-xr-x  1 andreas.stenius  staff   3.5M  9 Sep 11:43 /Users/andreas.stenius/.pyenv/versions/3.9.13/bin/python3.9
e
Did you hack on /Users/andreas.stenius/src/github/kaos/pants/build-support/pants_venv line 20?
There are 2 possible missing files, python and the file it executes - find out which
You know all this though. Report back after you get stuck for real!
c
not hacked on any.. this is a clean checkout of https://github.com/psontag/pexample/tree/pants-reproduce-field-issue yea… sorry just jumped into answering your questions 😛
e
Ok, you should hack on that file to debug then
👍 1
Ah, ok your
ll
did show that the terminal file was a file and not a link. Your terminal bling is really hard to read for sure in a support context! Sorry about that.
✔️ 1
c
yea… should see what can be done to not include the bling when copying… even a screenshot could’ve been better in this case..
e
Yeah, I really don't like screen shots for support - can't copy paste, but better in this case.