Q:

Trouble printing Eigen types in gdb using python extension

I'd like to print Eigen matrices and vectors in gdb, and so I added the extension to do so found here: https://bitbucket.org/eigen/eigen/src/12a658962d4e/debug/gdb/printers.py
When I try to call print on some Eigen type in ddd, however, I get the following error:
Python Exception <class 'TypeError'> 'map' object is not subscriptable: 
Python Exception <class 'TypeError'> 'map' object is not subscriptable: 
Python Exception <class 'TypeError'> 'map' object is not subscriptable:

Based on this post I checked that my gcc version is 4.8.2 and my gdb version is 7.7.1, so neither of those are the problem. 
Any ideas on how I might be able to fix this?

A:

Can you make sure that 2.7.6 is the version that gdb uses by making the following check from it?

Start gdb.
Type:
import sys
print (sys.version)
End with CTRL+D

