I've been able to adapt some pre-existing plugin code (e.g., editing the reqhandler.py file of the Eventlog plugin) to create my own plugins. I'd like to compile/test code on the command line for debugging purposes before having to run it through the IndigoWebServer but am having problems finding the modules that it wants to import.
(from the .../Indigo 4/IndigoWebServer directory)
python plugins/Router/reqhandler.py
Traceback (most recent call last):
File "plugins/Router/reqhandler.py", line 22, in <module>
import cherrypy
ImportError: No module named cherrypy
I assume this is a matter of setting the paths right when running python from the command line (with bug-free code, everything runs fine through IWS). Any advice? FYI, I'm running OSX 10.6 and when I 'which python' get /opt/local/bin/python. I have the same problem if I specify /usr/bin/python.