Hi all. Is it normal to running requirement's "sc...
# general
m
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
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
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).
I created an issue (https://github.com/pantsbuild/pants/issues/15293) for this. I hope I did not make a mistake.