title: Python Pywin & OneNote COM: OneNote.Application.15 'cannot automate the makepy process'
body: <p>I'm interacting with OneNote's COM interop using Python on Win32.</p>
  
  <p>Here's the most basic code to pull out notebook hierarchy:</p>
  
  <pre><code>import win32com.client
  onObj = win32com.client.gencache.EnsureDispatch('OneNote.Application.12')
  result = onObj.GetHierarchy("",win32com.client.constants.hsNotebooks)
  print(result)
  </code></pre>
  
  <p>Note the <code>OneNote.Application.12</code>, this works as I'd expect.</p>
  
  <p>The thing is that when I run Makepy I'm actually selecting the v15 type library:</p>
  
  <p><img src="https://i.stack.imgur.com/6kGea.gif" alt="enter image description here"></p>
  
  <p>If I change the code to be either <code>OneNote.Application.15</code> or just <code>OneNote.Application</code> then I get an error:</p>
  
  <pre><code>TypeError: This COM object can not automate the makepy process - please run makepy manually for this object
  </code></pre>
  
  <p>Why is this please? I'm running:</p>
  
  <ul>
  <li>Python 3.3.1 (64bit)</li>
  <li>Pywin build 218 (AMD64)</li>
  <li>Win 8 x64</li>
  <li>Office 2013 x64</li>
  </ul>