title: ModuleNotFoundError: No module named 'urllib3.packages.six'
body: <p>I'm not able to run my airflow image. It builds successfully, but when I use docker-compose up and bring up the image, it throws the following error and exits.</p>
  <pre><code>Unable to load the config, contains a configuration error.
  Traceback (most recent call last):
    File &quot;/usr/lib64/python3.6/logging/config.py&quot;, line 390, in resolve
      found = getattr(found, frag)
  AttributeError: module 'airflow.utils.log' has no attribute 'file_task_handler'
  
  During handling of the above exception, another exception occurred:
  
  Traceback (most recent call last):
    File &quot;/usr/lib64/python3.6/logging/config.py&quot;, line 392, in resolve
      self.importer(used)
    File &quot;/usr/local/lib/python3.6/site-packages/airflow/utils/log/file_task_handler.py&quot;, line 24, in &lt;module&gt;
      import requests
    File &quot;/usr/lib/python3.6/site-packages/requests/__init__.py&quot;, line 43, in &lt;module&gt;
      import urllib3
    File &quot;/usr/lib/python3.6/site-packages/urllib3/__init__.py&quot;, line 8, in &lt;module&gt;
      from .connectionpool import (
    File &quot;/usr/lib/python3.6/site-packages/urllib3/connectionpool.py&quot;, line 11, in &lt;module&gt;
      from .exceptions import (
    File &quot;/usr/lib/python3.6/site-packages/urllib3/exceptions.py&quot;, line 2, in &lt;module&gt;
      from .packages.six.moves.http_client import (
  ModuleNotFoundError: No module named 'urllib3.packages.six'
  </code></pre>
  <p>Of course I have googled around and found nothing that fixed it. I've tried fixing any possible errors with my dockerfile, restarting docker, rebuilding the image.</p>
  <p>Here's a portion of my dockerfile.</p>
  <pre><code>RUN pip3 install  pytz --cert root.pem \
      &amp;&amp; pip3 install pyOpenSSL --cert root.pem \
      &amp;&amp; pip3 install ndg-httpsclient --cert root.pem \
      &amp;&amp; pip3 install pyasn1 --cert root.pem \
      &amp;&amp; pip3 install teradatasql --cert root.pem \
      &amp;&amp; pip3 install --trusted-host=files.pythonhosted.org  --trusted-host=pypi.org apache-airflow[crypto,celery,postgres,hive,jdbc,kubernetes,mysql,mssql,ssh,ldap]==${AIRFLOW_VERSION} --cert root.pem \
      &amp;&amp; pip3 install 'redis==3.2' --cert root.pem \
      &amp;&amp; pip3 install Cython --cert root.pem \
      &amp;&amp; pip3 install xmlrunner --cert root.pem \
      &amp;&amp; pip3 install unittest-xml-reporting --cert root.pem \
      &amp;&amp; pip3 install pyodbc --cert root.pem \
      &amp;&amp; pip3 install flask-bcrypt --cert root.pem \
      &amp;&amp; pip3 install python-ldap --cert root.pem \
      &amp;&amp; pip3 install ldap3 --cert root.pem \
      &amp;&amp; pip3 install emoji --cert root.pem \
      &amp;&amp; pip3 install urllib3 --cert root.pem 
  </code></pre>