I am writing a dataflow job using Apache-Beam which requires to import data in BigQuery using the FTPS [from ftplib import FTP_TLS] server. But the moment I try to import FTPS Class [ftps = FTP_TLS('ftp.xxxxx.xxx')], I get the error as "TypeError: can't pickle SSLContext objects". I try to put the package in setup.py, to import ftplib package, but still the same error persists.
Does Apache-Beam not support data from FTPS server and if it supports then how to resolve the error?