I get Python errors when I run cuda-gdb on my code. It is due to cuda-gdb picking up pretty-printers from my system gdb and there is a version mismatch. My versions are as follows:
$ dpkg -l | grep gdb
ii gdb 7.11.1-0ubuntu1~16.04 amd64 GNU Debugger
ii nvidia-cuda-gdb 7.5.18-0ubuntu1 amd64 NVIDIA CUDA Debugger (GDB)
cuda-gdb should install and use its own Python modules, instead of the system installed ones.
[Edit: reported as bug 1877414]