TypeError: cannot parse from ‘list’

This is because os.listdir(path) returns a list of all files in your data folder, even if there is only one file. As such, you need to get the filename you want in this list before parsing it.

Leave a Comment