Thanks Manu,
I was missing the subversion-python bindings and that fixed most of the problems I had.

"C:\Python23>python scripts/tracd --port 8000 C:\path\to\projectenv", I get
a blank page with 2 words "Available projects".

Not sure to understand what you meant with C:\path\to\projectenv
This path should be identical to the one you've used to build your
Trac environment with the trac-admin tool. The "initenv" stage should
complete successfully before you can run tracd.

Doing "C:\Python23>python scripts/tracd --port 8000 C:\path\to\trac_env",
brings up a page with the name of the project I entered while creating the
environment.

What is "trac_env", how did you create it?

I was following the FAQ on http://projects.edgewall.com/trac/wiki/TracOnWindowsStandalone
Therefore, I did
- C:\> svnadmin create C:\path\to\svn_project
- C:\Python23\Scripts> python trac-admin C:\path\to\trac_env initenv
- C:\Python23\Scripts> python tracd --port 8000 C:\path\to\projectenv

Typo in the FAQ?

Hi Christian,
> - Login gives me a "page cannot be displayed" error

You should use the authentication option -a, see
http://projects.edgewall.com/trac/wiki/TracStandalone#UsingAuthentication

Unfortunately, I don't have Apache installed and I would rather not install it. I was also unable to find 'htdigest.exe' for download off the web (assuming it can be run by itself without any dependencies). I tried the script for "Generating Passwords Without Apache" on the link provided above and using 'admin' as username and password, I got the following output: "admin:trac:71ea86385b35d5e2575b0baec1904ded" which I entered into a text document called 'users.htdigest' and saved that in "c:\path\to\".

I then tried to launch the server using:
"C:\Python23>python scripts/tracd --auth project,c:/path/to/users.htdigest,trac c:/path/to/trac_env" where 'project' is the name of my project and I used 'trac' as the realm since that was what the python script returned :P

The server started but I got the following exception when I clicked on the "login" link:
----------------------------------------
Exception happened during processing of request from ('127.0.0.1', 1181)
Traceback (most recent call last):
File "c:\python23\lib\SocketServer.py", line 463, in process_request_thread
   self.finish_request(request, client_address)
 File "c:\python23\lib\SocketServer.py", line 254, in finish_request
   self.RequestHandlerClass(request, client_address, self)
 File "c:\python23\lib\SocketServer.py", line 521, in __init__
   self.handle()
 File "c:\python23\lib\BaseHTTPServer.py", line 324, in handle
   self.handle_one_request()
 File "c:\python23\lib\BaseHTTPServer.py", line 318, in handle_one_request
   method()
File "C:\Python23\Lib\site-packages\trac\web\standalone.py", line 259, in do_G
ET
   self._do_trac_req()
File "C:\Python23\Lib\site-packages\trac\web\standalone.py", line 295, in _do_
trac_req
   raise util.TracError('Authentication not enabled. '
TracError: Authentication not enabled. Please use the tracd --auth option.
----------------------------------------

I get the same error if I launched the server without authentication. I believe my 'users.htdigest' is faulty but I have not yet found any info on the apache site on how to create that file without using htdigest.

~nian

_______________________________________________
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac

Reply via email to