I've got a Python script which I'm running as a CGI script under Apache. The script calls a module which successfully imports without errors normally, however when the script is run by Apache, it sometimes works fine and it sometimes results in an ImportError ("No module named MeCab"). I have no idea what could be causing this to fail intermittently. Any ideas?
(I'm running Python 2.7.3 and Apache 2.2.22 on Ubuntu 12.04)