File type error
geoip2.database.Reader()
This function accepts IO data type as it is mentioned in it's constructor but when I'm passing GeoLite-Country.mmdb file it is giving error like below :
ERROR:root:Failed to initialize GeoIP reader: expected str, bytes or os.PathLike object, not BytesIO
Are you using MODE_FD as directed in the constructor docs?
Are you using
MODE_FDas directed in the constructor docs?
I'm not using any mode it will be by default, do I need to pass specific type?
Also is mounting necessary to read file from GCS.
I may be misunderstanding what you are trying to do. MODE_FD is required when you are passing a file object to the reader. This is what the IO typing on the constructor argument is for. It sounds like you may be trying to pass some other IO type, which would likely not work currently.