Diffuse is installed on my workstation and plays well with Mercurial so I often use it for diff'ing. However, I also am using a Python virtualenv to use some different modules in a more controlled setting (easier to ship off to other people). When I try to run Diffuse from within my virtualenv (here named sandbox
) it pukes:
(sandbox)nickt@aiguadassi:/home/codes/nickt/Tape-Worms/Code
$ diffuse bread.py # fail...
Traceback (most recent call last):
File "/usr/bin/diffuse", line 124, in <module>
import pygtk
ImportError: No module named pygtk
Outside it works just fine...
(sandbox)nickt@aiguadassi:/home/codes/nickt/Tape-Worms/Code
$ deactivate
nickt@aiguadassi:/home/codes/nickt/Tape-Worms/Code
$ diffuse bread.py # works fine.
I assume Diffuse is a Python app and is relying on finding modules in the environment; is there a way to have it use the 'global' environment (e.g. via an alias)? I'm not sure what the program is doing with respect to the environment...is it searching through PATH for modules, trying to use whatever which python
turns up...