Hi Guys,
I am pretty new to python and was trying to execute my first python script
which the same old hello world.
I am running fedora core 8, apache 2.2.8 and python 3.1.

MOD_PYTHON ERROR

ProcessId:      9571
Interpreter:    'localhost.localdomain'

ServerName:     'localhost.localdomain'
DocumentRoot:   '/var/www/html'

URI:            '/mptest.py'
Location:       None
Directory:      '/var/www/html/'
Filename:       '/var/www/html/mptest.py'
PathInfo:       ''

Phase:          'PythonHandler'
Handler:        'test'

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
1202, in _process_target
    module = import_module(module_name, path=path)

  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 "/var/www/html/test.py", line 3

    def handler(req):

   ^

IndentationError: unexpected indent


MODULE CACHE DETAILS

Accessed:       Wed May 28 12:13:56 2008
Generation:     0

_mp_a0c997aa0dc877af47e755b6b2a27f16 {
  FileName:     '/var/www/html/test.py'
  Instance:     1 [IMPORT]
  Generation:   0 [ERROR]
  Modified:     Wed May 28 11:58:12 2008
}

Any help would be great.

Cheers,
Arindam MAjumdar

-- 
I would have changed myself, but God didn't release the source code.
_______________________________________________
BangPypers mailing list
BangPypers@python.org
http://mail.python.org/mailman/listinfo/bangpypers

Reply via email to