I am trying to execute the following line
gsutil -m rsync s3://input gs://output
in python. When running this line in the shell terminal it works fine. However, I am trying to run this in a python script by using the following line.
subprocess.Popen(["gsutil", "-m", "rsync", "s3://input", "gs://output"])
However it just hangs forever. It outputs the following:
Building synchronization state...
Starting synchronization...
The bash command successfully prints:
Building synchronization state...
Starting synchronization...
Copying s3://input/0000
[0/1 files][ 1.0 MiB/ 5.1 MiB] (number here)% Done
and the file shows in my gs bucket