title: configparser.NoSectionError: No section: 'myvars'
body: <p>I have a config file <code>/tools/inputs/masterinputs.txt</code> with this content:</p>
  
  <pre><code>[myvars]
  maplat: 32.636004
  maplon: -115.437702
  </code></pre>
  
  <p>I use <code>configparser</code> to read it:</p>
  
  <pre><code>import configparser
  
  config = configparser.ConfigParser()              
  config.read("/tools/inputs/masterinputs.txt")
  maplat = float(config.get("myvars", "maplat"))
  </code></pre>
  
  <p>But I get this error message:</p>
  
  <pre><code>root@Primerpi:/tools# python3 solarrobot7-core.py
  
  Traceback (most recent call last):
    File "/usr/lib/python3.2/configparser.py", line 1109, in _unify_values
      sectiondict = self._sections[section]
  KeyError: 'myvars'
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File "solarrobot7-core.py", line 33, in &lt;module&gt;
      maplat = float(config.get("myvars", "maplat"))
    File "/usr/lib/python3.2/configparser.py", line 771, in get
      d = self._unify_values(section, vars)
    File "/usr/lib/python3.2/configparser.py", line 1112, in _unify_values
      raise NoSectionError(section)
  configparser.NoSectionError: No section: 'myvars'
  </code></pre>
  
  <p>The file contains the section <code>[myvars]</code> and it it obviously reads the config file. So I'm at a loss as to what is causing this error.</p>