title: python exception <type 'exceptions.ImportError'> No module named gdb:
body: <p>I've just compiled <code>gdb 7.8</code> from source in my home directory on a server machine running linux. I had previously been using <code>gdb 7.6</code>, and aside from stability issues with <code>gdb</code> itself (the reason for the upgrade) everything worked fine.</p>
  
  <p>Since the upgrade of <code>gdb</code>, when I run <code>cgdb 0.6.7</code> I immediately get the following message:</p>
  
  <blockquote>
  <pre><code>Python Exception &lt;type 'exceptions.ImportError'&gt; No module named gdb:
  
  warning:
  Could not load the Python gdb module from `/home/username/bin/gdb//python'.
  Limited Python support is available from the _gdb module.
  Suggest passing --data-directory=/path/to/gdb/data-directory.
  </code></pre>
  </blockquote>
  
  <p>When I built <code>gdb</code>, I used <code>./configure --with-python</code>.</p>
  
  <p>When I run <code>cgdb</code> and my program reaches a segfault, I type <code>backtrace</code> and get the following message:</p>
  
  <blockquote>
    <p>Python Exception  No module named gdb.frames:</p>
  </blockquote>
  
  <p>So it seems like I am effectively unable to use <code>gdb</code>/<code>cgdb</code> without python support. What can I do to resolve this?</p>
  
  <p>FWIW; I don't use <code>python</code>, I usually write <code>c++</code>.</p>