title: Python ConfigParser.NoSectionError: No section:
body: <p>I keep getting the ConfigParser.NoSectionError: No section:'file' error</p>
  
  <p>My config file looks like:</p>
  
  <pre><code>[file]
  api_access_id = 123445567
  api_default_org = NAME
  api_secret_key = kjvhkd28unfkjs
  api_base_url = www.fakeurl.com/api
  </code></pre>
  
  <p>My code looks like:</p>
  
  <pre><code>config = ConfigParser.RawConfigParser()
  configFilePath = 'E:\Python\configfile\test.txt'
  config.read(configFilePath)
  
  try:
      api_access_id = config.get('file', 'api_access_id')
      api_secret_key = config.get('file', 'api_secret_key')
      api_default_org = config.get('file', 'api_default_org')
      api_base_url = config.get('file', 'api_base_url')
  except ConfigParser.NoOptionError :
      print('could not read configuration file')
      sys.exit(1)  
  </code></pre>
  
  <p>The error is:</p>
  
  <pre><code>Traceback (most recent call last):
  File "E:/Python/Testapi.py", line 13, in &lt;module&gt;
  api_access_id = config.get('file', 'api_access_id')
  File "C:\Python27\lib\ConfigParser.py", line 330, in get
  raise NoSectionError(section)
  ConfigParser.NoSectionError: No section: 'file'
  
  Process finished with exit code 1
  </code></pre>
  
  <p>Does anyone know what could be causing this issue?</p>