agiliq / snipe

A better screenshot tool
BSD 3-Clause "New" or "Revised" License
5 stars 4 forks source link

No module named PyQt4 #2

Open shabda opened 10 years ago

shabda commented 10 years ago

Followed the install instructions:

I see a

Traceback (most recent call last): ...sniped [heh] ... File "/home/shabda/repos/snipe/snipe/bin/snipe", line 5, in from PyQt4 import QtGui ImportError: No module named PyQt4

shabda commented 10 years ago

Also I have done sudo apt-get install pyqt4-dev-tools libqt4-dev step

(snipe)~/repos/snipe$ sudo apt-get install pyqt4-dev-tools libqt4-dev Reading package lists... Done Building dependency tree
Reading state information... Done pyqt4-dev-tools is already the newest version. libqt4-dev is already the newest version. The following package was automatically installed and is no longer required: libopenlibm-base Use 'apt-get autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.

shabda commented 10 years ago

I am probably hitting this:

http://stackoverflow.com/questions/1961997/is-it-possible-to-add-pyqt4-pyside-packages-on-a-virtualenv-sandbox

running it outside a virtualenv gets me the same error as @satyaakam

tuxcanfly commented 10 years ago

I think you'll need a virtualenv with access to system site packages to be able to import PyQt4 installed using apt-get. So you'll need to do something like:

virtualenv --system-site-packages snipe_env