Hi all.
Is it normal to running requirement's "scripts" or "entry_points/console_scripts" using "subprocess.run" or "os.system" or ... raises:
FileNotFoundError: [Errno 2] No such file or directory: '...'
However, running the code inside a normal virtual environment works successfully.
b
bitter-ability-32190
04/30/2022, 7:57 PM
You can use --no-process-cleanup when running a goal. It will log and leak the sandbox pants is using to run processes. From there you can see if what you expect/need has been copied
m
magnificent-hairdresser-5608
05/01/2022, 1:17 PM
I think the issue is very similar to https://github.com/pantsbuild/pants/issues/12651.
But, the property (execution_mode='venv') is added to the "pex_binary" target (not the intermediate pex files created for other targets and goals).