Roy,

This is what my conf file looks like

<Location /Worldview/>
  Satisfy all
  SetHandler mod_python
  PythonInterpreter main_interpreter
  PythonHandler trac.web.modpython_frontend
  PythonOption TracEnv "C:/Program Files/Apache Software 
Foundation/Apache2.2/htdocs/Worldview"
  PythonOption TracUriRoot /Worldview
</Location>

This is the error I am getting

MOD_PYTHON ERROR

ProcessId:      7100
Interpreter:    'main_interpreter'

ServerName:     '192.168.0.42'
DocumentRoot:   'C:/Program Files/Apache Software Foundation/Apache2.2/htdocs'

URI:            '/Worldview/'
Location:       '/Worldview/'
Directory:      None
Filename:       'C:/Program Files/Apache Software 
Foundation/Apache2.2/htdocs/Worldview/'
PathInfo:       ''

Phase:          'PythonHandler'
Handler:        'trac.web.modpython_frontend'

Traceback (most recent call last):

  File "C:\Python25\Lib\site-packages\mod_python\importer.py", line 1537, in 
HandlerDispatch
    default=default_handler, arg=req, silent=hlist.silent)

  File "C:\Python25\Lib\site-packages\mod_python\importer.py", line 1202, in 
_process_target
    module = import_module(module_name, path=path)

  File "C:\Python25\Lib\site-packages\mod_python\importer.py", line 304, in 
import_module
    return __import__(module_name, {}, {}, ['*'])

ImportError: No module named trac.web.modpython_frontend

How do I solve this ImportError at the bottom or test that it has been 
solved ?

Cheers
Chris


Roy..Menezes.. wrote:
> Chris,
>
> I had this same problem and wasted MANY hours on it.
>
> The problem is probably with the /var/trac/myproject path.  Here is what 
> my httpd.conf has:
>
> <Location /projects/myproject>
>    SetHandler mod_python
>    PythonInterpreter main_interpreter
>    PythonHandler trac.web.modpython_frontend
>    PythonOption TracEnv "C:/Python24/Scripts/trac/my-project"
>    PythonOption TracUriRoot /projects/myproject  
>    Authtype Basic
>    AuthName "Trac"
>    AuthUserFile passwd
>    Require valid-user
>    Order deny,allow
> </Location>
>
> The  Location /projects/myproject refers to the virtual URL where you 
> can access your project.  For example, 
> http://my-ip-addr/projects/myproject will lead Apache to associate this 
> URL with the abovementioned Location directive.  The Location directive 
> only associates a URL with the contents of a particular Location 
> directive.  By contrast, a Directory directive specifies an absolute 
> path and specifies the characteristics of that folder (i.e. permissions, 
> etc.).
>
> What worked for me with the TracEnv line is to substitue 
> /var/trac/myproject with an absolute directory name where
> the Trac environment for my project resides (i.e. the folder that 
> contains the following files/folders: attachments,
> conf, db, htdocs, log, plugins, templates, wiki-macros, README, VERSION).
>
> Hope this helps.
> roy.
>
> Chris Howell wrote:
>
>   
>> Hi Folks,
>>
>> So I have, Apache installed and configured running mod_python. I've 
>> tested this setup and all works well. I am now trying to get Trac to 
>> work with apache. I have also installed Trac and have that working 
>> well, I have tested this using the stand alone server and a test 
>> environment and everything functions as you would expect it to.
>>
>> So here is the problem and I am sure it's a configuration issue on my 
>> part I am just not clear as to where it is because the wiki 
>> instructions themselves are not very clear.
>>
>> The Trac instructions say to edit my httpd.conf file and place these 
>> lines in it.
>>
>> <Location /projects/myproject>
>>   SetHandler mod_python
>>   PythonInterpreter main_interpreter
>>   PythonHandler trac.web.modpython_frontend 
>>   PythonOption TracEnv /var/trac/myproject
>>   PythonOption TracUriRoot /projects/myproject
>> </Location>
>>  
>>
>> The location //projects/myproject /Does this refer to the location of 
>> a project anywhere ? Doest he project when I set it up have to exist 
>> in the htdocs subdirectory under apache? Or can it exist anywhere on 
>> the system ?
>>
>> The //var/trac/myproject/ path, is this a sub directory or path of the 
>> location ?
>>
>> When does the /PythonHandler trac.web.modpython_frontend /get loaded 
>> and how can I ensure that the trac.web.modpython_frontend is installed 
>> and functioning properly.
>>
>> I am very confused, so any light someone could shed to help me out of 
>> this dark hole would be much appreciated.
>>
>> Cheers
>> Chris Howell
>> Software Engineer
>> [EMAIL PROTECTED]
>> the PYXIS innovation /- Common Ground for Digital Earth/
>> www.pyxisinnovation.com
>>
>>     
>
> >
>
>
>   


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to