title: getting error while using docker-compose build: __init__() got an unexpected keyword argument 'interpolate'
body: <p>I am new to docker and while running <code>docker-compose build</code> command i am getting this error.</p>
  <pre class="lang-sh prettyprint-override"><code>Traceback (most recent call last):                                                                   
    File &quot;/home/ghostface/playground/bootcamp/venv/bin/docker-compose&quot;, line 11, in &lt;module&gt;
      sys.exit(main())                                                                                      
    File &quot;/home/ghostface/playground/bootcamp/venv/lib/python3.6/site-packages/compose/cli/main.py&quot;, line 72, in main
      command()
    File &quot;/home/ghostface/playground/bootcamp/venv/lib/python3.6/site-packages/compose/cli/main.py&quot;, line 125, in perform_command
      project = project_from_options('.', options)
    File &quot;/home/ghostface/playground/bootcamp/venv/lib/python3.6/site-packages/compose/cli/command.py&quot;, line 76, in project_from_options
      environment_file=environment_file
    File &quot;/home/ghostface/playground/bootcamp/venv/lib/python3.6/site-packages/compose/cli/command.py&quot;, line 135, in get_project
      config_data = config.load(config_details, compatibility, interpolate)
    File &quot;/home/ghostface/playground/bootcamp/venv/lib/python3.6/site-packages/compose/config/config.py&quot;, line 411, in load
      service_dicts = load_services(config_details, main_file, compatibility, interpolate=interpolate)
    File &quot;/home/ghostface/playground/bootcamp/venv/lib/python3.6/site-packages/compose/config/config.py&quot;, line 510, in load_services
      return build_services(service_config)
    File &quot;/home/ghostface/playground/bootcamp/venv/lib/python3.6/site-packages/compose/config/config.py&quot;, line 491, in build_services
      for name, service_dict in service_config.items()
    File &quot;/home/ghostface/playground/bootcamp/venv/lib/python3.6/site-packages/compose/config/config.py&quot;, line 491, in &lt;listcomp&gt;
      for name, service_dict in service_config.items()
    File &quot;/home/ghostface/playground/bootcamp/venv/lib/python3.6/site-packages/compose/config/config.py&quot;, line 483, in build_service
      interpolate
    File &quot;/home/ghostface/playground/bootcamp/venv/lib/python3.6/site-packages/compose/config/config.py&quot;, line 888, in finalize_service
      service_dict['environment'] = resolve_environment(service_dict, environment, interpolate)
    File &quot;/home/ghostface/playground/bootcamp/venv/lib/python3.6/site-packages/compose/config/config.py&quot;, line 687, in resolve_environment
      env.update(env_vars_from_file(env_file, interpolate))
    File &quot;/home/ghostface/playground/bootcamp/venv/lib/python3.6/site-packages/compose/config/environment.py&quot;, line 42, in env_vars_from_file
      env = dotenv.dotenv_values(dotenv_path=filename, encoding='utf-8-sig', interpolate=interpolate)
    File &quot;/home/ghostface/playground/bootcamp/venv/lib/python3.6/site-packages/dotenv/main.py&quot;, line 283, in dotenv_values
      return DotEnv(f, verbose=verbose, **kwargs).dict()
  TypeError: __init__() got an unexpected keyword argument 'interpolate' 
  </code></pre>
  <p>Result of <code>docker-compose version</code></p>
  <p>docker-compose version 1.26.0, build unknown<br />
  docker-py version: 4.2.1<br />
  CPython version: 3.6.8<br />
  OpenSSL version: OpenSSL 1.1.1c  28 May 2019</p>
  <p>Requirement.txt file:</p>
  <pre><code>Flask==1.1.1          
  Flask-Login==0.4.1             
  Flask-Mail==0.9.1                
  Flask-Migrate==2.5.2                   
  Flask-Moment==0.9.0                
  Flask-SQLAlchemy==2.4.0                 
  Flask-WTF==0.14.2            
  pusher==2.1.4            
  PyJWT==1.7.1           
  pylint==2.3.1               
  python-dotenv==0.10.3                
  Werkzeug==0.16.1                       
  gunicorn       
  docker-compose             
  </code></pre>