Hi;<br>I'm getting this error:<br><br>Mod_python error: "PythonHandler mod_python.publisher"<br><br>Traceback (most recent call last):<br><br> File "/usr/lib64/python2.4/site-packages/mod_python/apache.py", line 299, in HandlerDispatch<br>
result = object(req)<br><br> File "/usr/lib64/python2.4/site-packages/mod_python/publisher.py", line 204, in handler<br> module = page_cache[req]<br><br> File "/usr/lib64/python2.4/site-packages/mod_python/cache.py", line 82, in __getitem__<br>
return self._checkitem(name)[2]<br><br> File "/usr/lib64/python2.4/site-packages/mod_python/cache.py", line 124, in _checkitem<br> value = self.build(key, name, opened, entry)<br><br> File "/usr/lib64/python2.4/site-packages/mod_python/publisher.py", line 77, in build<br>
return ModuleCache.build(self, key, req, opened, entry)<br><br> File "/usr/lib64/python2.4/site-packages/mod_python/cache.py", line 371, in build<br> exec opened in module.__dict__<br><br> File "/var/www/html/<a href="http://angrynates.com/global_solutions/index.py">angrynates.com/global_solutions/index.py</a>", line 8, in ?<br>
from template import template<br><br>ImportError: No module named template<br><br><br>Here's the code:<br><br>#!/usr/bin/python<br><br>import string<br>import cgitb; cgitb.enable()<br>import cgi<br>import sys,os<br>
sys.path.append(os.getcwd())<br>from template import template<br><br>ourFile = string.split(__file__, "/")<br>page = ourFile[len(ourFile) - 1][:-3]<br><br>form = cgi.FieldStorage()<br>w = form.getfirst('w', '1024')<br>
<br>print page<br><br>template(page, w)<br><br><br>I can import this just fine from the python command prompt. So, what gives?<br>TIA,<br>Victor<br>