How do you successfully invoke gsutil rsync from a python script?
问题 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...