I am trying to run a spider on a vps (using scrapyjs which uses python-gtk2). On running the spider I am getting the error
/root/myporj/venv/local/lib/python
Probably you run the application over ssh? Then, you need to run X server on local PC. If not, you should set DISPLAY environment variable correctly. Recently, sudo command on Ubuntu doesn't some transfer environment variable. If you run the application over sudo, make sure $DISPLAY is set or not.
Additional
It's a bug of pygtk. You app should be depend on gtk widget.
https://bugs.launchpad.net/ubuntu/+source/software-center/+bug/800574