Not sure what I might be doing wrong here but tryi...
# general
q
Not sure what I might be doing wrong here but trying to export env keeps failing. I am able to download the artifact via the browser or using simple pip install but not via pants export. Any idea how to investigate this?
Copy code
$ pants export --py-resolve-format=symlinked_immutable_virtualenv --resolve=python-default                            
16:38:28.82 [INFO] Initialization options changed: reinitializing scheduler...
16:38:36.42 [INFO] Scheduler initialized.
16:38:43.16 [INFO] Completed: Build pex for resolve `python-default`
16:38:43.16 [ERROR] 1 Exception encountered:

Engine traceback:
  in `export` goal

ProcessExecutionFailure: Process 'Build pex for resolve `python-default`' failed with exit code 1.
stdout:

stderr:
There was 1 error downloading required artifacts:
1. tomotopy 0.12.5 from <https://files.pythonhosted.org/packages/5c/b6/ed8bdb74156e6d966acf8a95bd47476f11962ce38901d00c4e3633470dbd/tomotopy-0.12.5.tar.gz>
    hint: See above for details.



Use `--keep-sandboxes=on_failure` to preserve the process chroot for inspection.
b
One good starting point for these sort of issues is to use the
--keep-sanboxes=on_failure
argument suggested there, then investigate. The
__run.sh
script in that directory can be re-run to reproduce the problem and edited to narrow it down
q
Thanks, issue resolved itself when I changed python interpreter from 3.8 to 3.9 - again not sure why because the package is also available for python 3.8. For future reference, where do I find the
__run.sh
file you mentioned?
b
When you use that sandboxes flag, pants prints out a temporary directory that contains the files (etc) that the command was run with, and it also contains a
__run.sh
file that contains the command it ran
👍 1