title: Python 2.7: Error importing slate
body: <p>I am having a problem using slate for Python. When I try to import the slate library, I receive this error:</p>
  
  <p><code>ÌmportError: cannot import name PDFDocument</code></p>
  
  <p>I installed slate using pip (Ubuntu 17 terminal), the exact command I used was: </p>
  
  <p><code>pip install slate</code></p>
  
  <p>Here are some things that I have tried to resolve the issue:</p>
  
  <ol>
  <li>Installed PDFMiner, which slate depends on.</li>
  <li><p>Imported all of pdfminer before attempting to import slate</p></li>
  <li><p>I tried this command in the terminal:
  <code>pip install --upgrade --
  ignoreinstalled slate==0.3 pdfminer==20110515</code> but received an error that version 0.3 for slate was invalid. </p></li>
  </ol>
  
  <p>I am just trying to test this simple script:</p>
  
  <pre><code>import slate
  
  pdf = 'test.pdf'
  
  with open(pdf) as f:
      doc = slate.PDF(f)
  
  for page in doc[:2]:
      print page
  </code></pre>