[Trac] WG: Problems running trac-admin after installation of Trac
0.8 for WindowsXP
Stelling Carsten
Carsten.Stelling at goerlitz.com
Tue Jan 11 04:45:07 EST 2005
Can anybody help me installing Trac on WindowsXP Prof. SP1 or Suse Linux 9.2 ?
What are the latest versions of the components that are able to work together?
Regards, Carsten
> -----Ursprüngliche Nachricht-----
> Von: Stelling Carsten
> Gesendet: Mittwoch, 5. Januar 2005 10:18
> An: 'trac at lists.edgewall.com'
> Betreff: Problems running trac-admin after installation of Trac 0.8 for WindowsXP
>
> Hi!
>
> After giving up trying to install Trac on Suse Linux 9.2
> I'm now trying to install it under WindowsXP Prof. SP1.
>
> Trac looks very nice and it seems to be a candidate of
> choice for managing our work in R&D with 5 engineers.
>
> But installing it becomes a real challenge to me.
> I'm very hopelessly to get it installed and work for me :-((
>
> Can anybody HELP me?
> ====================
>
> Here's my configuration and what I've done so far.
> I followed the instructions from the 'Windows Installation
> Instructions for Subversion w/Trac 0.8'
>
> The installed versions are:
>
> Apache 2.5.52
> Python 2.3.4
> Subversion 1.1.1
> SQLite 3.0.8
> PySQLite 1.1.6
> Trac 0.8
> Docutils 0.3.7
> ClearSilver 0.9.12
>
> Installing Python, Apache, Subversion and Docutils on drive C: was very simple.
> I've tried the TortoiseSVN frontend and it all worked fine.
> My repository is located in c:\svn\projects\skalar.
>
> After installing the other Trac prerequisites and trying to create the
> Trac database I get the following traceback:
>
> Traceback (most recent call last):
> File "trac-admin", line 913, in ?
> main()
> File "trac-admin", line 905, in main
> tracadm.run()
> File "trac-admin", line 74, in run
> self.cmdloop()
> File "C:\Python23\lib\cmd.py", line 133, in cmdloop
> stop = self.onecmd(line)
> File "C:\Python23\lib\cmd.py", line 210, in onecmd
> return func(arg)
> File "trac-admin", line 403, in do_initdb
> self.do_initenv(line)
> File "trac-admin", line 453, in do_initenv
> dt = trac.siteconfig.__default_templates_dir__
> AttributeError: 'module' object has no attribute '__default_templates_dir__'
>
> I've checked the PYTHONPATH variable and didn't find any mistake. I've tried
> forward and backward slashes, but without success.
>
> PYTHONPATH=C:/python23/share/trac/templates;C:/python23/lib/site-packages/svn;
> C:/python23/lib/site-packages/libsvn;C:/python23/lib/site-packages/trac
>
> In c:/python23/lib/site-packages/trac there is a file siteconfig.py
> that seems to be OK and contains the existing pathes to other stuff.
>
> # PLEASE DO NOT EDIT THIS FILE!
> # This file was autogenerated when installing Trac 0.8.
> #
> __default_templates_dir__ = 'C:\\Python23\\share\\trac\\templates'
> __default_htdocs_dir__ = 'C:\\Python23\\share\\trac\\htdocs'
> __default_wiki_dir__ = 'C:\\Python23\\share\\trac\\wiki-default'
>
> Here is what I get in the command-shell!
>
> C:\>path
> PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Programme\Subver
> sion\bin;C:\Python23
>
> C:\>set
> ALLUSERSPROFILE=C:\Dokumente und Einstellungen\All Users
> APPDATA=C:\Dokumente und Einstellungen\Administrator.TEST-PC\Anwendungsdaten
> APR_ICONV_PATH=C:\Programme\Subversion\iconv
> CommonProgramFiles=C:\Programme\Gemeinsame Dateien
> COMPUTERNAME=TEST-PC
> ComSpec=C:\WINDOWS\system32\cmd.exe
> HOMEDRIVE=C:
> HOMEPATH=\Dokumente und Einstellungen\Administrator.TEST-PC
> LOGONSERVER=\\TEST-PC
> NUMBER_OF_PROCESSORS=1
> OS=Windows_NT
> Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Programme\Subver
> sion\bin;C:\Python23
> PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
> PROCESSOR_ARCHITECTURE=x86
> PROCESSOR_IDENTIFIER=x86 Family 15 Model 2 Stepping 9, GenuineIntel
> PROCESSOR_LEVEL=15
> PROCESSOR_REVISION=0209
> ProgramFiles=C:\Programme
> PROMPT=$P$G
> PYTHONPATH=C:/python23/share/trac/templates;C:/python23/lib/site-packages/svn;C:
> /python23/lib/site-packages/libsvn;C:/python23/lib/site-packages/trac>
> SESSIONNAME=Console
> SystemDrive=C:
> SystemRoot=C:\WINDOWS
> TEMP=C:\DOKUME~1\ADMINI~1.TES\LOKALE~1\Temp
> TMP=C:\DOKUME~1\ADMINI~1.TES\LOKALE~1\Temp
> USERDOMAIN=TEST-PC
> USERNAME=Administrator
> USERPROFILE=C:\Dokumente und Einstellungen\Administrator.TEST-PC
> windir=C:\WINDOWS
>
> C:\>cd python23
>
> C:\Python23>cd scripts
>
> C:\Python23\Scripts>python trac-admin c:/svn/projects/trac.db
> Welcome to trac-admin 0.7.1
> Interactive Trac adminstration console.
> Copyright (c) 2004 Edgewall Software
>
> Type: '?' or 'help' for help on commands.
>
> Trac [c:/svn/projects/trac.db]> initdb
> Creating a new Trac environment at c:/svn/projects/trac.db
>
> Trac will first ask a few questions about your environment
> in order to initalize and prepare the project database.
>
> Please enter the name of your project.
> This name will be used in page titles and descriptions.
>
> Project Name [My Project]> Skalar
>
> Please specify the absolute path to the project Subversion repository.
> Repository must be local, and trac-admin requires read+write
> permission to initialize the Trac database.
>
> Path to repository [/var/svn/test]> c:\svn\projects\skalar
>
> Please enter location of Trac page templates.
> Default is the location of the site-wide templatesinstalled with Trac.
>
> Traceback (most recent call last):
> File "trac-admin", line 913, in ?
> main()
> File "trac-admin", line 905, in main
> tracadm.run()
> File "trac-admin", line 74, in run
> self.cmdloop()
> File "C:\Python23\lib\cmd.py", line 133, in cmdloop
> stop = self.onecmd(line)
> File "C:\Python23\lib\cmd.py", line 210, in onecmd
> return func(arg)
> File "trac-admin", line 403, in do_initdb
> self.do_initenv(line)
> File "trac-admin", line 453, in do_initenv
> dt = trac.siteconfig.__default_templates_dir__
> AttributeError: 'module' object has no attribute '__default_templates_dir__'
>
> C:\Python23\Scripts>
>
> What is wrong? Please HELP!
>
> Thanks, Carsten
More information about the Trac
mailing list