Gregory (Grisha) Trubetskoy
grisha at modpython.org
Tue Apr 8 13:15:46 EST 2003
I think the problem is somewhere else, because the lines you commented out would at works produce "Not Found", but not "Internal Server Error". When you get "Internal Server Error", check what's in the error log, there may be a clue there. Grisha On 8 Apr 2003, Manuel [ISO-8859-1] DurАn Aguete wrote: > Hello, > I'm implementing a XMLRPC dispatcher with mod_python, it's almost done, > but after a few petitions the script crashed with internal server error. > The problem it's in apache.py in method import_module. > > # if not file or (path and not os.path.dirname(file) in path): > # raise SERVER_RETURN, HTTP_NOT_FOUND > > if I comment these lines it seems to work ok. Printing the variables in > if I get: > [Tue Apr 8 16:03:53 2003] [notice] mod_python: Going to import cosa > from ['/home/manuel/public_html/python/']: <module 'cosa' from > '/home/manuel/public_html/python/cosa.py'> > mod_python: File is /home/manuel/public_html/python/cosa.py Path is > ['/home/manuel/public_html/python/'] Dirname: > /home/manuel/public_html/python > > I'm usign mod_python 2.7.8 with python 2.1.3 under Debian Gnu/Linux with > apache 1.3.26 > > Any idea what's happening ? > > Regards. > -- > Manuel DurАn Aguete <manuel at aguete.org> >
|