Please ignore this question.  I discovered that the problem was in my
trac.wsgi file and using the common back-slash for windows in my
folder references.  Changing them to forward-slashes fixed the
problem.  Apparently I need to learn Python a bit more.

Jamie

On Apr 18, 2:40 pm, "James Fellrath" <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I'm trying to configure our trac application with an Apache 2.2 web server,
> using mod_wsgi 2.0 as our WSGI adapter module.  We have Python 2.4 on our
> Windows 2003 Server box, and we've previously successfully run trac in test
> using tracd.py.  I've also got the Apache server working already.
>
> Our trac install is at *c:\projects\trac\ccc_solutions\*.  All the normal
> subdirectories (*attachments*, *conf*, *db*, etc.) follow underneath.  We
> are using only a single trac project.
>
> I've put *mod_wsgi.so* into the Apache 2.2 modules directory and properly
> loaded it in *httpd.conf* with a LoadModule wsgi_module
> modules/mod_wsgi.sostatement.  I've verified that I have the right
> version of
> *mod_wsgi.so* for our versions of Apache and Python.
>
> I've created a *trac.wsgi* script with the following code and placed it into
> *c:\projects\trac\ccc_solutions\apache\*:
>
> import os
>
> os.environ['TRAC_ENV'] = 'C:\projects\trac\ccc_solutions'
> os.environ['PYTHON_EGG_CACHE'] = 'C:\projects\trac\ccc_solutions\plugins'
>
> import trac.web.main
> application = trac.web.main.dispatch_request
>
> I've added the following code to my *httpd.conf* file as well:
>
> WSGIScriptAlias /ccc_solutions
> "C:\projects\trac\ccc_solutions\apache\trac.wsgi"
>
> <Directory "C:\projects\trac\ccc_solutions\apache">
> WSGIApplicationGroup %{GLOBAL}
> Order deny,allow
> Allow from all
> </Directory>
>
> When I try to hit the trac URL on our server at "*http://
> <servername:port#>/ccc_solutions*", I get the following message:
> Internal Server Error
>
> The server encountered an internal error or misconfiguration and was unable
> to complete your request.
>
> Please contact the server administrator, <email address> and inform them of
> the time the error occurred, and anything you might have done that may have
> caused the error.
>
> More information about this error may be available in the server error log.
>
> The error log reads as follows:
> [Fri Apr 18 14:09:49 2008] [error] [client <IP address>] mod_wsgi
> (pid=3056): Exception occurred processing WSGI script
> 'C:/projects/trac/ccc_solutions/apache/trac.wsgi'.
> [Fri Apr 18 14:09:49 2008] [error] [client <IP address>] Traceback (most
> recent call last):
> [Fri Apr 18 14:09:49 2008] [error] [client <IP address>]   File
> "C:\\Python24\\Lib\\site-packages\\trac\\web\\main.py", line 346, in
> dispatch_request
> [Fri Apr 18 14:09:49 2008] [error] [client <IP address>]     env =
> _open_environment(env_path, run_once=environ['wsgi.run_once'])
> [Fri Apr 18 14:09:49 2008] [error] [client <IP address>]   File
> "C:\\Python24\\Lib\\site-packages\\trac\\web\\main.py", line 57, in
> _open_environment
> [Fri Apr 18 14:09:49 2008] [error] [client <IP address>]
> env_cache[env_path] = open_environment(env_path)
> [Fri Apr 18 14:09:49 2008] [error] [client <IP address>]   File
> "C:\\Python24\\Lib\\site-packages\\trac\\env.py", line 433, in
> open_environment
> [Fri Apr 18 14:09:49 2008] [error] [client <IP address>]     env =
> Environment(env_path)
> [Fri Apr 18 14:09:49 2008] [error] [client <IP address>]   File
> "C:\\Python24\\Lib\\site-packages\\trac\\env.py", line 126, in __init__
> [Fri Apr 18 14:09:49 2008] [error] [client <IP address>]     self.verify()
> [Fri Apr 18 14:09:49 2008] [error] [client <IP address>]   File
> "C:\\Python24\\Lib\\site-packages\\trac\\env.py", line 174, in verify
> [Fri Apr 18 14:09:49 2008] [error] [client <IP address>]     fd =
> open(os.path.join(self.path, 'VERSION'), 'r')
> [Fri Apr 18 14:09:49 2008] [error] [client <IP address>] IOError: [Errno 2]
> No such file or directory:
> 'C:\\\\projects\\trac\\\\ccc_solutions\\\\VERSION'
>
> I'm a bit puzzled.  I don't have a "VERSION" directory set up in our
> environment, and it seems to me that this section of the Python code (though
> I'm not a Python developer) is asking for something that isn't necessarily
> going to be there across the board for all environments.
> Can anyone give me some advice on getting this running?
>
> Thanks,
> Jamie Fellrath
--~--~---------~--~----~------------~-------~--~----~
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