https://pantsbuild.org/ logo
b

better-sunset-63499

02/27/2023, 4:49 PM
Does anyone else use
aws-cdk-lib
in pexes? After v2.50 it seems to be broken for me. They broke out
aws_cdk.asset*
from the main
aws_cdk
provided by
aws-cdk-lib
and now whenever I try to run the PEX, it's unable to find
aws_cdk.asset*
packages.
e

enough-analyst-54434

02/27/2023, 5:16 PM
Are you using
execution_mode="venv"
and
venv_site_packages_copies=True
on your
pex_binary
target?
b

better-sunset-63499

02/27/2023, 6:38 PM
I'm not, I was using the pex_binary default
I'll explicitly set those and try
Ha, magic! Yes, that works for me now, thanks for the tip
h

happy-kitchen-89482

02/27/2023, 7:04 PM
Another thing to add to the docs, I will make a note
e

enough-analyst-54434

02/27/2023, 7:15 PM
I'm not sure docs will help much, it's already documented in the fields / target dictionary. I think the issue is likely tailor. If you don't write a thing, there is nothing to look up.
Damned either way basically.
b

better-sunset-63499

02/27/2023, 7:37 PM
I also wasn't sure if it was a pex issue or a pants issue - I've never used pex outside of pants