silly-queen-7197
03/07/2023, 9:35 PM_pickle.PicklingError: Can't pickle <class 'pex.enum.Enum'>: it's not the same object as pex.enum.Enum
when running something as a pex? It works fine running as a moduleenough-analyst-54434
03/07/2023, 9:51 PMunzip -qc your.pex PEX-INFO | jq .
I am not aware of any pickling Pex does. Does your app try to use Pex as a library?silly-queen-7197
03/07/2023, 10:00 PMsilly-queen-7197
03/07/2023, 10:04 PM"pex_version": "2.1.108"
silly-queen-7197
03/07/2023, 10:09 PMenough-analyst-54434
03/08/2023, 12:28 AMsilly-queen-7197
03/08/2023, 12:35 AMpex_binary(
name="dataflow-main",
entry_point="dataflow.dataflow",
)
works but
pex_binary(
name="dataflow-main",
entry_point="dataflow.dataflow:run_pipeline",
)
does not.silly-queen-7197
03/08/2023, 12:35 AMrun_pipeline
takes an argument argv
. Did pex
pass itself to the function as argument 0?
This is not the case, they removed the argument.enough-analyst-54434
03/08/2023, 12:38 AMsilly-queen-7197
03/08/2023, 12:50 AMexecution_mode="venv"
fixed itsilly-queen-7197
03/08/2023, 12:51 AMsilly-queen-7197
03/08/2023, 12:51 AMenough-analyst-54434
03/08/2023, 1:15 AMsilly-queen-7197
03/08/2023, 1:21 AM