MissingSectionHeaderError: File contains no section headers
For me, I've seen this error because I mistakenly assume the API of .read_file()
accepts a file path, but it only accepts a file handle.
i think im late for answer but it happened for me when i saved Config file as UTF-8
Try saving the file as ANSI
.
There is no section header in the configuration file.
Essentially, the file consists of sections, each of which contains keys with values.
Docs ConfigParser python module