[kforge-user] kforge-0.13 installation issues

Tristan Rivoallan trivoallan at clever-age.com
Mon Aug 20 12:14:54 UTC 2007


hi,

On 8/20/07, Rufus Pollock <rufus.pollock at okfn.org> wrote:

> >>>  * Problem when authenticating against newly created service :
> >>>   PythonAuthenHandler kforge.handlers.projecthost::authenhandler:
> >>> ImportError: No module named kforge
> >> OK, that's weird because it implies mod-python couldn't import
> >> kforge.
> >> Does importing kforge from a python shell work i.e.:
> >>
> >> $ python
> >>  >>> import kforge
> >
> > yes it does.
> > And i can even use kforge web frontend. Service creation, user
> > management, etc all work well. Except for the authentication handler.
>
> OK, that is strange. What version of Apache, mod_python and python are
> you using?


Apache 2.2.3
Python 2.4.4
mod_python 3.2.10

i also attached the apache conf generated by kforge.

regards,

tristan
-------------- next part --------------

       Alias /media /usr/share/kforge/media

       ## *********************************************************
       ## STARTING Kforge 'Django' section
       ## *********************************************************

       # Use LocationMatch rather than just <Location />
       # because o/w modpython handler will handle all requests
       # (Even where you have Alias /...
       <LocationMatch "^/$|^/person($|/.*)|^/project($|/.*)|^/admin/model($|/.*)|^/login($|/.*)|^/logout($|/.*)" >

           # Set environment
           # Need to set DJANGO as used in both project (auth) and admin
           SetEnv DJANGO_SETTINGS_MODULE kforge.django.settings.main
           SetEnv KFORGE_SETTINGS /etc/kforge/kforge.conf
           SetEnv PYTHONPATH :/root/cleverbox-0.2/

           SetHandler python-program
           PythonInterpreter kforge_interpreter
           PythonPath "':/root/cleverbox-0.2/'.split(':') + sys.path"
           PythonHandler django.core.handlers.modpython
           PythonDebug Off
       </LocationMatch>

       ## *********************************************************
       ## ENDING Kforge 'Django' section
       ## *********************************************************

       ## *********************************************************
       ## STARTING Kforge Project Services section ...
       ## *********************************************************

           # Set environment
           # Need to set DJANGO as used in both project (auth) and admin
           SetEnv DJANGO_SETTINGS_MODULE kforge.django.settings.main
           SetEnv KFORGE_SETTINGS /etc/kforge/kforge.conf
           SetEnv PYTHONPATH :/root/cleverbox-0.2/


       Alias /trac /usr/share/trac/htdocs


       <Location /cleverbox/svn>
         <IfModule mod_dav.c>
           DAV svn
           SVNPath /var/lib/kforge/project_data/cleverbox/svn/2

           # Need to set DJANGO as used in both project (auth) and admin
           # Set as PYTHONOPTION as SetEnv does not seem to work in here
           PYTHONOPTION DJANGO_SETTINGS_MODULE kforge.django.settings.main
           PYTHONOPTION KFORGE_SETTINGS /etc/kforge/kforge.conf
           PythonPath "':/root/cleverbox-0.2/'.split(':') + sys.path"
           PythonDebug Off

           # For details see comments in kforge.handlers.projecthost.py
           Satisfy any
           PythonAccessHandler kforge.handlers.projecthost::accesshandler
           PythonAuthenHandler kforge.handlers.projecthost::authenhandler
           AuthType basic
           AuthUserFile /dev/null
           AuthName "KForge Restricted Area"
           Require valid-user
           # Only available in mod_auth_basic available in apache >= 2.1
           <IfModule mod_auth_basic.c>
               AuthBasicAuthoritative Off
           </IfModule>

         </IfModule>
       </Location>
Redirect /cleverbox/trac/logout http://kforge.projects.clever-age.net/logout
       <Location /cleverbox/trac>
         <IfModule mod_python.c>
           SetHandler mod_python
           PythonHandler trac.web.modpython_frontend
           PythonInterpreter main_interpreter
           PythonOption TracEnv /var/lib/kforge/project_data/cleverbox/trac/3
           PythonOption TracUriRoot /cleverbox/trac


           # Need to set DJANGO as used in both project (auth) and admin
           # Set as PYTHONOPTION as SetEnv does not seem to work in here
           PYTHONOPTION DJANGO_SETTINGS_MODULE kforge.django.settings.main
           PYTHONOPTION KFORGE_SETTINGS /etc/kforge/kforge.conf
           PythonPath "':/root/cleverbox-0.2/'.split(':') + sys.path"
           PythonDebug Off

           # For details see comments in kforge.handlers.projecthost.py
           Satisfy any
           PythonAccessHandler kforge.handlers.projecthost::accesshandler
           PythonAuthenHandler kforge.handlers.projecthost::authenhandler
           AuthType basic
           AuthUserFile /dev/null
           AuthName "KForge Restricted Area"
           Require valid-user
           # Only available in mod_auth_basic available in apache >= 2.1
           <IfModule mod_auth_basic.c>
               AuthBasicAuthoritative Off
           </IfModule>

         </IfModule>
       </Location>
       ## *********************************************************
       ## ENDING KForge Project Services section ...
       ## *********************************************************


More information about the kforge-user mailing list