MissingSectionHeaderError: File contains no section headers.(configparser)
<p>I'm using configparser in order to read and modify automatically a file conf named 'streamer.conf'. 
I'm doing this :</p>

<pre><code>import configparser

config = configparser.ConfigParser()
config.read('C:/Users/../Desktop/streamer.conf')
</code></pre>

<p>And then it breaks apart with this Error message :</p>

<pre><code>MissingSectionHeaderError: File contains no section headers.
file: 'C:/Users/../Desktop/streamer.conf', line: 1
u'input{\n'
</code></pre>

<p>What might be wrong? Any help appreciated.</p>

<p>You didn't include <code>streamer.conf</code>, but from the error message, it's not in the right format.  <code>configparser</code> is used for parsing "INI" files:</p>

<pre><code>[section1]
setting1 = value
setting2 = value

[section2]
setting3 = value
setting1 = value
</code></pre>

<p>etc.</p>

python python-2.7 configuration configuration-files configparser