I'm tying run python script using this helper: http://svn.pythonpaste.org/Paste/trunk/paste/modpython.py
my .htaccess:
when i run script mytest.py i got an error:
I think that PythonOption isn't passed to the script (request?)
because modpython.py in lines:
results in that the value of 'option' is None, but should be a dict.
It's first cgi scripts that i'm trying to run so maybe i'm doing some stupid mistakes, but i dont know how to resolve this problem.
my .htaccess:
| Code: |
| Options -Indexes
AddHandler python-program .py PythonHandler wsgiref.modpython PythonOption wsgi.application mytest::main PythonDebug On |
when i run script mytest.py i got an error:
| Code: |
| Mod_python error: "PythonHandler wsgiref.modpython"
Traceback (most recent call last): File "/usr/lib/python2.2/site-packages/mod_python/apache.py", line 193, in Dispatch result = object(req) File "/home/fofoo/domains/fofoo.frih.net/public_html/cgi-bin/wsgiref/modpython.py", line 211, in handler if 'wsgi.startup' in options and not startup: TypeError: iterable argument required |
I think that PythonOption isn't passed to the script (request?)
because modpython.py in lines:
| Code: |
| def handler(req):
options = req.get_options() ......... |
results in that the value of 'option' is None, but should be a dict.
It's first cgi scripts that i'm trying to run so maybe i'm doing some stupid mistakes, but i dont know how to resolve this problem.
