Jag försöker få mod_python att fungera på min ubuntu maskin. Men det går inte, får något fel som jag inte förstår varför jag får.
Kod: Markera allt
MOD_PYTHON ERROR
ProcessId: 7338
Interpreter: 'test'
ServerName: 'test'
DocumentRoot: '/home/fredrik/public_html/test'
URI: '/hello.py'
Location: None
Directory: None
Filename: '/home/fredrik/public_html/test/hello.py'
PathInfo: None
Phase: 'PythonHandler'
Handler: 'mod_python.publisher'
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 1537, in HandlerDispatch
default=default_handler, arg=req, silent=hlist.silent)
File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 1229, in _process_target
result = _execute_target(config, req, object, arg)
File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 1128, in _execute_target
result = object(arg)
File "/usr/lib/python2.5/site-packages/mod_python/publisher.py", line 204, in handler
module = page_cache[req]
File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 1059, in __getitem__
return import_module(req.filename)
File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 296, in import_module
log, import_path)
File "/usr/lib/python2.5/site-packages/mod_python/importer.py", line 680, in import_module
execfile(file, module.__dict__)
File "/home/fredrik/public_html/test/hello.py", line 2
return "Hello World!";
^
IndentationError: expected an indented block
MODULE CACHE DETAILS
Accessed: Tue Dec 9 15:49:23 2008
Generation: 0
_mp_d8ef1bbd1940f50ac93b331f52027e5a {
FileName: '/home/fredrik/public_html/test/hello.py'
Instance: 1 [IMPORT]
Generation: 0 [ERROR]
Modified: Tue Dec 9 15:49:20 2008
}