The gdb package is only available inside gdb and cannot be installed externally through e.g. pip. Run the stubtest inside gdb.