bitter-ability-32190
06/14/2022, 3:49 PMrun_pex_binary
with the _runner
aspect of pytest
in my plugin (so essentially "run this PEX in an environment containing the user's reqs, but in-repo")
I'm using pex_path
on the _runner
PEX and setting it to [my_tool.pex, requirements.pex]
, but when the pex is executed I'm getting FileNotFoundError: [Errno 2] No such file or directory: 'my_tool.pex/PEX-INFO'
. I assume this is due to not executing with cwd being the sandbox.
How can I help PEX here?bitter-ability-32190
06/14/2022, 4:15 PMrepl
goal for ipython
is a golden templatecurved-television-6568
06/14/2022, 4:36 PMbitter-ability-32190
06/14/2022, 4:36 PMcurved-television-6568
06/14/2022, 4:39 PMbitter-ability-32190
06/14/2022, 4:40 PMVenvPex
might solve it, but I'm no PEX wizard 😕curved-television-6568
06/14/2022, 4:41 PMbitter-ability-32190
06/14/2022, 4:48 PMVenvPex
fails with /home/joshuacannon/work/techlabs/.pants.d/tmp7nklehrd/./.cache/pex_root/venvs/6be5332cff30d122c4ff9b149062819751a8ade8/ddab8011daaee380698ac2fb9701af18c90c03f6/pex: No such file or directory
However running the shim myself works 🤔
I think we're closebitter-ability-32190
06/14/2022, 5:18 PMVenvPex
I'm passing --venv prepend
as additional argvs and it worksbitter-ability-32190
06/14/2022, 5:19 PMno module named modulename
. At least the kernel works 😛bitter-ability-32190
06/14/2022, 6:26 PMbitter-ability-32190
06/14/2022, 6:36 PMsys.path
, but Jupyter launches the server by looking at PYTHONPATH
and not sys,path
it seems