I\'ve reïnstalled my ssh server, so I also need to reïnstall my Python packages.
I did that, but I still get the error:
ImportError: No module named PyQt
I was having the same error - ImportError: No module named PyQt4.QtGui. Instead of running your python file (which uses PyQt) on the terminal as -
ImportError: No module named PyQt4.QtGui
python file_name.py
Run it with sudo privileges -
sudo python file_name.py
This worked for me!