I'm trying to deploy a working python 3.6 notebook in Watson Studio (cloud). However I'm struggling to access files/assets. After uploading a .log file to my assets, I want to open and process it using
with open(project.get_file('messages.log'), 'r') as file:
the error message returns
TypeError: expected str, bytes, or os.PathLike object, not _io.BytesIO
Apart from telling me how to open/read the log-file, I'd also appreciate a short explanation on why project.get_file returns a BytesIo object.