[mod_python] Reload and Publisher Handler

Clark C . Evans cce at clarkevans.com
Sat Jun 2 20:53:20 EST 2001


Hello.  I'm using the publisher handler, and
this works great on the first and subsequent 
runs.  However, if a change is made to the 
source file (for instance the simple test.py
with the say method), then the file is not
reloaded... here is the trace back:

Mod_python error: "PythonHandler mod_python.publisher"

Traceback (most recent call last):

  File "/usr/local/lib/python2.1/site-packages/mod_python/apache.py",
  line 189, in Dispatch
    result = object(self.req)

  File
  "/usr/local/lib/python2.1/site-packages/mod_python/publisher.py",
  line 128, in handler
    module = apache.import_module(module_name, _req, [path])

  File "/usr/local/lib/python2.1/site-packages/mod_python/apache.py",
  line 358, in import_module
    if os.path.exists(filepath[:-1]) :

  File "/usr/local/lib/python2.1/posixpath.py", line 171, in exists
    st = os.stat(path)

OSError: [Errno 2] No such file or directory:
'/sites/clarkevans.com/http/phtest/test.p'


...

It seems to be snipping the "y" at the end of 
the file name....  I'm using apache 1.3.9 with
python ver 1.2 and mod python 2.7.3

Clark




More information about the Mod_python mailing list