I try to run a DataFlow pipeline remotely which will use a pickle file. Locally, I can use the code below to invoke the file.
with open (known_args.file_path
open() is the standard Python library function that does not understand Google Cloud Storage paths. You need to use the Beam FileSystems API instead, which is aware of it and of other filesystems supported by Beam.
open()