Once you've installed Trac, you need to create one (or more) project
with the trac-admin tool, such as with

trac-admin project_path initenv

the project_path here is not the path where you've installed Trac
itself (that is the "Trac engine" path in my previous email), but the
path of a Trac project

Then you want to specify

PythonOption TracEnv project_path

For exemple:
 trac-admin c:\tracprojects\myproject initenv
implies
 PythonOption TracEnv c:\tracprojects\myproject

if you create several Trac projects in c:\tracprojects (invoking as
many times trac-admin), you can replace  "TracEnv" with
"TracEnvParentDir" as follow

PythonOption TracEnvParentDir c:\tracprojects

Note that TracEnv and TracEnvParentDir are mutually exclusive

c:\trac is where you've installed Trac
c:\tracprojects is where you've created Trac projects with the trac-admin tool

You're free to use the paths you want, but if you've installed Trac in
c:\trac, you should not create your Trac projects in c:\trac. At
least, create a directory for all projects:

mkdir c:\trac\projects

then

PythonOption TracEnvParentDir c:\trac\projects

it would be an error to specify

PythonOption TracEnvParentDir c:\trac

as Trac considers that every single directory in TracEnvParentDir
(c:\trac) represents a Trac project, whereas many directories are Trac
engine files - not projects.

HTH,
Manu

On 8/7/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> I am so sorry and so suprised that your kind help came swiftly! ^_^
>
> I should describe what I followed and what I got just now.
>
> Windows XP, apache 2.0.55 (definitely intented for trac only, other
> applications are under apache 2.2)
> I configured apache this way:
>
> <Location /trac>
>     SetHandler mod_python
>     PythonHandler trac.web.modpython_frontend
>     PythonOption TracEnvParentDir c:/trac
> #    PythonOption TracUriRoot /trac
>     AuthType Basic
>     AuthName "test Proj"
>     AuthUserFile C:/xampp/xampp/apache/bin/passwd.lv
>     Require valid-user
> </Location>
>
> the error is like in the last posted, however, I tried
> C:\Python24\Scripts>..\python  tracd --port 8000 c:\trac
> 127.0.0.1 - - [07/Aug/2007 19:30:57] "GET /trac HTTP/1.1" 200 -
> 127.0.0.1 - - [07/Aug/2007 19:30:57] "GET /trac/chrome/common/css/
> trac.css HTTP/1.1" 200 -
> 127.0.0.1 - - [07/Aug/2007 19:30:57] "GET /trac/chrome/common/css/
> wiki.css HTTP/1.1" 200 -
> 127.0.0.1 - - [07/Aug/2007 19:30:57] "GET /trac/chrome/common/js/
> trac.js HTTP/1.1" 200 -
> .....
>
> it works well. Therefore the suspected point is the setting for
> apache.
>
> c:\trac is where the environment is. Is that "trac engine" in your
> reply?
>
> another setting, I put the port to 8001 under apache, that sould be
> OK, right?
>
>
> Thanks ......
>
>
>
> On 8月7日, 下午7时24分, "Emmanuel Blot" <[EMAIL PROTECTED]> wrote:
> > This error simply means that you misconfigured your trac installation.
> >
> > It seems that you've declared the parent directory of multiple trac
> > projects as "C:\trac" whereas c:\trac seems to be the top directory of
> > the Trac engine itself.
> >
> > In other words, you've specified the wrong 'environment' path to tracd.
> >
> > Cheers,
> > Manu
> >
> > On 8/7/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> >
> >
> >
> >
> > > I tried many times to re-install the trac with the single output in
> > > the browser:
> >
> > > Available Projects
> > > attachments: Error
> > > ([Errno 2] No such file or directory: 'c:\\trac\\attachments\
> > > \VERSION')
> > > conf: Error
> > > ([Errno 2] No such file or directory: 'c:\\trac\\conf\\VERSION')
> > > db: Error
> > > ([Errno 2] No such file or directory: 'c:\\trac\\db\\VERSION')
> > > htdocs: Error
> > > ([Errno 2] No such file or directory: 'c:\\trac\\htdocs\\VERSION')
> > > log: Error
> > > ([Errno 2] No such file or directory: 'c:\\trac\\log\\VERSION')
> > > plugins: Error
> > > ([Errno 2] No such file or directory: 'c:\\trac\\plugins\\VERSION')
> > > templates: Error
> > > ([Errno 2] No such file or directory: 'c:\\trac\\templates\\VERSION')
> > > wiki-macros: Error
> > > ([Errno 2] No such file or directory: 'c:\\trac\\wiki-macros\
> > > \VERSION')
> >
> > > I found the similar post without reply here, I encountered the same
> > > case, I think.
> > > When would these files be created?
> >
> > --
> > Manu- 隐藏被引用文字 -
> >
> > - 显示引用的文字 -
>
>
> >
>


-- 
Manu

--~--~---------~--~----~------------~-------~--~----~
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