I was trying to install gps on Ubuntu 14.04. Yet, an import error of rospkg popped out when I was compiling the gps package.
This link is useful, for users who do not understand the system very well, it is useful to solve problem. For me, all I need to do is to add the
vim ~/.bashrc export PYTHONPATH=$PYTHONPATH:/usr/lib/python2.7/dist-packages source ~/.bashrc
The root cause of this error is that Python packages in /usr path do not exist in PYTHONPATH variable.