title: Searching docx Files in python
body: <p>I am trying to use the python-docx module to search docx files for specific strings:</p>
  
  <p><a href="https://github.com/python-openxml/python-docx" rel="nofollow">https://github.com/python-openxml/python-docx</a></p>
  
  <p>But for some reason none of the functions I try to use within the module seem to be working (opendocx, search, etc). I have installed the module and have imported it in my script so I can't figure out what's going wrong. For example though when I try to use opendocx() I get an error saying the module has no attribute 'opendocx'</p>
  
  <p>Other people seem to be able to use this module fine, am I missing something obvious?</p>
  
  <p>EDIT:</p>
  
  <p>Here is the code where I am trying to use the doc:</p>
  
  <pre><code>def parseFile2(filename):
      document = opendocx(filename)
      for key in SEARCH_STRINGS:
          if search(document, key):
              return True
  </code></pre>
  
  <p>The filename is passed in from another function with a full path and again the error I am getting is that the module has no attribute opendocx</p>