quaint-forest-873506/07/2022, 9:24 PM
in a pex file, and the following command succeeds:
However, when attempting to run it with
pex --interpreter-constraint CPython==3.9.12 -r requirements.txt -o test.pex
I encounter the following error:
I'm able to produce smaller pex files and run them without a problem (ie.
/Library/Frameworks/Python.framework/Versions/3.9/bin/python3.9: can't find '__main__' module in '/path/to/test.pex'
), but am encountering this error any time I attempt to include the full requirements. I have confirmed after unzipping
pex --interpreter-constraint CPython==3.9.12 numpy pandas -o test.pex
exists. The pex file is ~700M currently. I came across this issue: https://github.com/pantsbuild/pex/issues/958 and was wondering if this might be related
witty-crayon-2278606/07/2022, 9:27 PM
as mentioned there?
quaint-forest-873506/07/2022, 9:30 PM
witty-crayon-2278606/07/2022, 9:55 PM
This succeeds, though it appears to produce a directory instead of a standalone file?correct.
Does this function identically to a standalone file from the perspective of the pants jupyter plugin etc?it should?… having a
should be picked up by any interpreter
quaint-forest-873506/07/2022, 9:56 PM
witty-crayon-2278606/07/2022, 9:56 PM
quaint-forest-873506/07/2022, 9:57 PM
since I realized that the existing
in my directory was also being included in the pex file (along w/ other extraneous stuff like bazel build directories etc) -- down to a much saner ~25M