If, following those instructions, I change, in .htaccess
PythonHandler web2py_modpython

to

PythonHandler modpythonhandler

The error is AttributeError: module '/home/[username]/public_html/
modpythonhandler.py' contains no 'handler'


On Oct 6, 7:57 pm, whiskeyjuvenile <whiskeyjuven...@gmail.com> wrote:
> from mod_python import apache
> import modpythonhandler
>
> def handler(req):
>         req.subprocess_env['PATH_INFO'] = req.subprocess_env['SCRIPT_URL']
>         return modpythonhandler.handler(req)
>
> I'm following the instructions 
> fromhttp://groups.google.com/group/web2py/browse_thread/thread/bc354fb111...
>
> On Oct 6, 7:48 pm, Graham Dumpleton <graham.dumple...@gmail.com>
> wrote:
>
> > On Oct 7, 10:35 am, whiskeyjuvenile <whiskeyjuven...@gmail.com> wrote:
>
> > > Here's the specific apache log error:
>
> > > [Tue Oct 06 18:30:54 2009] [error] [client MY IP] AttributeError:
> > > module '/home/[username]/public_html/web2py_modpython.py' contains no
> > > 'handler'
>
> > Presumably you created:
>
> >   web2py_modpython.py
>
> > That file isn't part of web2py.
>
> > The error means that whatever you stuck in that file is wrong. Post
> > the contents of that file.
>
> > Graham
>
> > > [Tue Oct 06 18:30:54 2009] [error] [client MY IP] Filename: '/home/
> > > [username]/public_html/500.shtml'
> > > [Tue Oct 06 18:30:54 2009] [error] [client MY IP] Directory: '/home/
> > > [username]/public_html/'
> > > [Tue Oct 06 18:30:54 2009] [error] [client MY IP] DocumentRoot: '/home/
> > > [username]/public_html'
> > > [Tue Oct 06 18:30:54 2009] [error] [client MY IP]   File "/home/
> > > [username]/public_html/gluon/utils.py", line 10, in ?\n    import
> > > hashlib
> > > [Tue Oct 06 18:30:54 2009] [error] [client MY IP]   File "/home/
> > > [username]/public_html/gluon/validators.py", line 25, in ?\n    from
> > > utils import hash, get_digest
> > > [Tue Oct 06 18:30:54 2009] [error] [client MY IP]   File "/home/
> > > [username]/public_html/gluon/html.py", line 25, in ?\n    from
> > > validators import *
> > > [Tue Oct 06 18:30:54 2009] [error] [client MY IP]   File "/home/
> > > [username]/public_html/gluon/restricted.py", line 24, in ?\n    from
> > > html import BEAUTIFY
> > > [Tue Oct 06 18:30:54 2009] [error] [client MY IP]   File "/home/
> > > [username]/public_html/gluon/main.py", line 38, in ?\n    from
> > > restricted import RestrictedError
> > > [Tue Oct 06 18:30:54 2009] [error] [client MY IP]   File "/home/
> > > [username]/public_html/modpythonhandler.py", line 36, in ?\n    import
> > > gluon.main
> > > [Tue Oct 06 18:30:54 2009] [error] [client MY IP]   File "/home/
> > > [username]/public_html/web2py_modpython.py", line 2, in ?\n    import
> > > modpythonhandler
> > > [Tue Oct 06 18:30:54 2009] [error] [client MY IP] Filename: '/home/
> > > [username]/public_html/'
> > > [Tue Oct 06 18:30:54 2009] [error] [client MY IP] Directory: '/home/
> > > [username]/public_html/'
> > > [Tue Oct 06 18:30:54 2009] [error] [client MY IP] DocumentRoot: '/home/
> > > [username]/public_html'
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to