title: GDB pretty printing ImportError: No module named 'printers'
body: <p>I'm trying to add <a href="https://sourceware.org/gdb/wiki/STLSupport">pretty printing</a> for STL in my GDB on Ubuntu 14.04. Some details on the tools:</p>
  
  <p>OS: Ubuntu 14.04</p>
  
  <p>gdb version:  7.7</p>
  
  <p>python version: 2.7.6</p>
  
  <p>python3 version: 3.4.0</p>
  
  <p>But after I setup exactly as what the instruction said. I still get the following errors:</p>
  
  <pre><code>Traceback (most recent call last):
    File "&lt;string&gt;", line 3, in &lt;module&gt;
    File "/home/jerry/myLib/gdb_stl_support/python/libstdcxx/v6/__init__.py", line 19, in &lt;module&gt;
      from printers import register_libstdcxx_printers
  ImportError: No module named 'printers'
  /home/jerry/.gdbinit:6: Error in sourced command file:
  Error while executing Python code.
  Reading symbols from main...done.
  </code></pre>
  
  <p>Then I haved double checked my pretty printing installation directory. Under the directory <code>/home/jerry/myLib/gdb_stl_support/python/libstdcxx/v6/</code>, I can clearly see I have the printers.py file. And I also view the content of printers.py, I'm sure it also has the <code>register_libstdcxx_printers</code> class. Why the python interpreter is still complaining the <code>printers</code> module is missing? This seems really strange to me.</p>