Edgewall Software
Modify

Opened 20 years ago

Closed 20 years ago

#1100 closed defect (worksforme)

Problem with trac-admin after installing Trac 0.8 on Windows

Reported by: carsten.stelling@… Owned by: daniel
Priority: highest Milestone:
Component: admin/console Version: 0.8
Severity: blocker Keywords: trac-admin traceback
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

I followed the Windows Installation Instructions for Subversion w/Trac 0.8 (on WinXP Professional SP1). When running trac-admin (step 25. ff. from installation guide) I receive a traceback:

C:\Python23\Scripts>path PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Programme\Subver sion\bin;C:\Python23

C:\Python23\Scripts>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:\Python23\Scripts>python trac-admin c:/svn/trac.db Welcome to trac-admin 0.7.1 Interactive Trac adminstration console. Copyright © 2004 Edgewall Software

Type: '?' or 'help' for help on commands.

Trac [c:/svn/trac.db]> initdb Creating a new Trac environment at c:/svn/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>

Attachments (0)

Change History (5)

comment:1 by anonymous, 20 years ago

Resolution: fixed
Status: newclosed

Failure caused by wrong setting of PYTHONPATH variable. Problem solved.

comment:2 by Christopher Lenz, 20 years ago

Resolution: fixed
Status: closedreopened

This should have been closed as invalid.

comment:3 by Christopher Lenz, 20 years ago

Resolution: invalid
Status: reopenedclosed

comment:4 by rclauss@…, 20 years ago

Resolution: invalid
Status: closedreopened
Version: 0.7.10.8

How does one go about fixing this problem?

    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'


My python path is set as follows:

PYTHONPATH=C:/python23/lib/sitepackages

comment:5 by rclauss@…, 20 years ago

Resolution: worksforme
Status: reopenedclosed

I started over from scratch and now Trac works properly,

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain daniel.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from daniel to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.