[Trac] PYTHONPATH issue when setting up project environment
Matthew Good
trac at matt-good.net
Sun Mar 6 22:15:17 EST 2005
This seems to be an issue with using the Windows .exe installer. It's
not actually the PYTHONPATH that is the problem, it's the file
siteconfig.py (which should be in d:\python23\lib\site-packages\trac).
Edit this file to fix the paths.
This file is normally generated by distutils when you install Trac to
store the paths of the Trac resources. Unfortunately there seems to be
a problem with this in the new Windows .exe installer.
On Sun, 2005-03-06 at 16:26 -0600, Justin Palmer wrote:
> Hi,
> I've run into a problem setting up a project environment using the
> trac-admin.
> I have set my PYTHONPATH to D:/Python23/Libs --the location of
> Python on my Windows machine, but trac-admin
> uses F:\PYTHON23 and totally ignores this setting.
> Have I missed something here, is there other places I need to set
> the Python path for trac?
>
>
> My Specs:
> -Python 2.3
> -Trac 0.8.1
> -Windows XP Home
> - Apache/2.0.50 (Win32) SVN/1.1.3
>
>
> A log of what i'm doing below:
> C:\Documents and Settings\Caged>python D:\Python23\Scripts
> \trac-admin D:\svn\mod
> Gen.db
> Welcome to trac-admin 0.8.1
> Interactive Trac adminstration console.
> Copyright (c) 2004 Edgewall Software
>
> Type: '?' or 'help' for help on commands.
>
> Trac [D:\svn\modGen.db]> initdb
> Creating a new Trac environment at D:\svn\modGen.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]> modGen
>
> 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]> D:\svn\modGen2
>
> Please enter location of Trac page templates.
> Default is the location of the site-wide templates installed with
> Trac.
>
> Templates directory [F:\PYTHON23\share\trac\templates]> D:\Python23
> \share\trac\t
> emplates
> Creating and Initializing Project
> Inserting default data
> Configuring Project
> trac.repository_dir
> trac.templates_dir
> project.name
> Installing wiki pages
> Failed to initialize database. [Errno 3] The system cannot find the
> path specifi
> ed: 'F:\\PYTHON23\\share\\trac\\wiki-default/*.*'
>
> C:\Documents and Settings\Caged>
>
>
> Thanks, -Justin
>
> _______________________________________________
> Trac mailing list
> Trac at lists.edgewall.com
> http://lists.edgewall.com/mailman/listinfo/trac
More information about the Trac
mailing list