MissingSectionHeaderError: File contains no section headers
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.
The configuration file consists of sections, led by a [section] header and followed by name: value entries.
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.