title: Sphinx Error: Can not import normalize while using command "make html"
body: <p>I was generating documents using sphinx python library, and I encounter the 
  <code>can not import normalize</code> error.</p>
  
  <p>I found a <a href="https://stackoverflow.com/questions/24877382/sphinx-cant-run-make-html">similar question</a> from 2014 but it does not solve my problem.</p>
  
  <p><strong>Test Code</strong>  </p>
  
  <pre><code># hello.py
  def myadd(a,b):
      """
  
  
          Parameters
      ----------
      a: first parameter
      b: second paramter
  
  
      Returns
      -------
      Return: Sum of two arguments
  
      """
      return a+b
  
  if __name__=="__main__":
       a = myadd(5,6) 
       print('\n')
       print(a)
  </code></pre>
  
  <p><strong>Sphinx and Locale Installation</strong></p>
  
  <pre><code>import sphinx
  from locale import normalize # I got no error here
  print(sphinx.__version__) # 1.6.2
  </code></pre>
  
  <p><strong>Sphinx commands</strong></p>
  
  <pre><code>sphinx-quickstart
  &gt; Project name: a
  &gt; Author name(s): a
  &gt; Create Makefile? (y/n) [y]: 
  &gt; Create Windows command file? (y/n) [y]: n
  this creates THREE files and THREE folders.
  Then,
  
  make html # this gives the error.
  </code></pre>
  
  <p>This procedure works in <a href="https://www.youtube.com/watch?v=LQ6pFgQXQ0Q" rel="nofollow noreferrer">this youtube video</a>.  </p>
  
  <p>However, If I repeat the same procedure, I got following error:  </p>
  
  <pre><code>File "/usr/lib/python2.7/gettext.py", line 440, in find
      for nelang in _expand_lang(lang):
    File "/usr/lib/python2.7/gettext.py", line 133, in _expand_lang
      from locale import normalize
  ImportError: cannot import name normalize
  Makefile:20: recipe for target 'html' failed
  make: *** [html] Error 1
  </code></pre>
  
  <p>Funny thing is when I import normalize from <strong>locale</strong> I get no error, and
  only sphinx gives this error. </p>
  
  <p><strong>Question</strong><br>
  How can we generate documentation using sphinx by avoiding import error?</p>
  
  <p>Help will be appreciated!!</p>
  
  <p><strong>Related Links</strong><br>
  <a href="http://www.sphinx-doc.org/en/stable/tutorial.html" rel="nofollow noreferrer">http://www.sphinx-doc.org/en/stable/tutorial.html</a>
  <a href="http://www.sphinx-doc.org/en/stable/ext/example_google.html" rel="nofollow noreferrer">http://www.sphinx-doc.org/en/stable/ext/example_google.html</a></p>
  
  <p><a href="https://thomas-cokelaer.info/tutorials/sphinx/docstring_python.html" rel="nofollow noreferrer">https://thomas-cokelaer.info/tutorials/sphinx/docstring_python.html</a><br>
  <a href="http://gisellezeno.com/tutorials/sphinx-for-python-documentation.html" rel="nofollow noreferrer">http://gisellezeno.com/tutorials/sphinx-for-python-documentation.html</a></p>