Re: trac on windows

62 views
Skip to first unread message

Craig A

unread,
Jun 19, 2012, 5:15:02 PM6/19/12
to trac-...@googlegroups.com
In the past I had a problem with 2 different versions of python installed for different applications and I was able to resolve it by setting up a special Windows user account for the Trac server process, and set that user's environment variables for PATH and PYTHONHOME to the version of Python that was needed by Trac. Once I did that everything worked as expected. If I was going to run trac-admin at the command line, I had to 'runas' the Trac user account to get the environment setup correctly.

Richard Page

unread,
Jun 20, 2012, 8:57:18 AM6/20/12
to trac-...@googlegroups.com
Thanks Craig, I have sought an easier option by backing out my installation and installing the bitnami-trac windows installer.
I have taken your advice and det up the local users environment variables which has cured the problem with the call to python.
 
Now I am gettingan error as follows when I run the following:
>>> trac-admin $ENV repository resync "CM_TEST"
                           ^
SyntaxError: invalid syntax
 
I think I am close but not quite there yet!

Richard Page

unread,
Jun 20, 2012, 11:18:10 AM6/20/12
to trac-...@googlegroups.com
I've got further:
using the Use BitNami Trac Stack just opens the command prompt in c:\Windows\system32
Entering D:\ (in my case) - changes 5o 5h3 place where the BitNami Trac Stack is installed.
When I then run the command below I now get further - but am now getting Error: IOError: <2, 'No such file or directory'>
 
Now I am wondering if I am pointing to my svn code repository controlled by SVN Edge correctly - so some pointers please.
 
I have indicated it as Name TEST_CM (the name of the SVN Repo), Type = default, and the Directory as d:\csvn\data\repositories\TEST_CM where the SVN Repositories is on this server (the same server as trac installation).
Now if I use Browse Source from trac and select the SVN Repo I get the Error: No such changeset and highlighted No changeset 250 in repository which would suggest that it is picked up!
 

On Tuesday, 19 June 2012 14:57:17 UTC+1, Richard Page wrote:
Trying to install trac on windows server with SVNEdge installed as well. Have installed Genshi and setup tools using the Genshi-0.6.win32.exe and setuptools-0.6c11.wind32-py2.7.exe. Then Trac-0.12.3.win32.exe.
These have all installed in the csvn\Python25 dir as follows: A new DLLs folder has been created in the Python25 directory, a Lib folder containing a lot of .py and other directories
My path only contains the top level Python25dir.
Should there be two installations for Python (one for the trac system and one for SVNEdge) Can anyone help unwrap this so I can start using Trac.
Guidance much appreciated.

On Tuesday, 19 June 2012 14:57:17 UTC+1, Richard Page wrote:
Trying to install trac on windows server with SVNEdge installed as well. Have installed Genshi and setup tools using the Genshi-0.6.win32.exe and setuptools-0.6c11.wind32-py2.7.exe. Then Trac-0.12.3.win32.exe.
These have all installed in the csvn\Python25 dir as follows: A new DLLs folder has been created in the Python25 directory, a Lib folder containing a lot of .py and other directories
My path only contains the top level Python25dir.
Should there be two installations for Python (one for the trac system and one for SVNEdge) Can anyone help unwrap this so I can start using Trac.
Guidance much appreciated.

victoria

unread,
Jun 22, 2012, 8:57:24 AM6/22/12
to trac-...@googlegroups.com
On Wed, Jun 20, 2012 at 5:18 PM, Richard Page <rpag...@gmail.com> wrote:
> I've got further:
> using the Use BitNami Trac Stack just opens the command prompt
> in c:\Windows\system32
> Entering D:\ (in my case) - changes 5o 5h3 place where the BitNami Trac
> Stack is installed.
> When I then run the command below I now get further - but am now getting
> Error: IOError: <2, 'No such file or directory'>
>
> Now I am wondering if I am pointing to my svn code repository controlled by
> SVN Edge correctly - so some pointers please.
>
> I have indicated it as Name TEST_CM (the name of the SVN Repo), Type =
> default, and the Directory as d:\csvn\data\repositories\TEST_CM where the
> SVN Repositories is on this server (the same server as trac installation).
> Now if I use Browse Source from trac and select the SVN Repo I get the
> Error: No such changeset and highlighted No changeset 250 in repository
> which would suggest that it is picked up!
>

Richard, I just thought I would copy what you shared in the BitNami
forums. Just in case other users are finding something similar I think
it would be useful.

"Cracked it! No longer a prob, $ENV needs to be explicitly defined in
windows as the Trac environment path! Would be good to have
documentation for windows, most examples are unix based"

Best regards,

Victoria.


>
> On Tuesday, 19 June 2012 14:57:17 UTC+1, Richard Page wrote:
>>
>> Trying to install trac on windows server with SVNEdge installed as well.
>> Have installed Genshi and setup tools using the Genshi-0.6.win32.exe and
>> setuptools-0.6c11.wind32-py2.7.exe. Then Trac-0.12.3.win32.exe.
>> These have all installed in the csvn\Python25 dir as follows: A new DLLs
>> folder has been created in the Python25 directory, a Lib folder containing a
>> lot of .py and other directories
>> My path only contains the top level Python25dir.
>> Should there be two installations for Python (one for the trac system and
>> one for SVNEdge) Can anyone help unwrap this so I can start using Trac.
>> Guidance much appreciated.
>
>
> On Tuesday, 19 June 2012 14:57:17 UTC+1, Richard Page wrote:
>>
>> Trying to install trac on windows server with SVNEdge installed as well.
>> Have installed Genshi and setup tools using the Genshi-0.6.win32.exe and
>> setuptools-0.6c11.wind32-py2.7.exe. Then Trac-0.12.3.win32.exe.
>> These have all installed in the csvn\Python25 dir as follows: A new DLLs
>> folder has been created in the Python25 directory, a Lib folder containing a
>> lot of .py and other directories
>> My path only contains the top level Python25dir.
>> Should there be two installations for Python (one for the trac system and
>> one for SVNEdge) Can anyone help unwrap this so I can start using Trac.
>> Guidance much appreciated.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Trac Users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/trac-users/-/Hm4wR4aI6A0J.
>
> To post to this group, send email to trac-...@googlegroups.com.
> To unsubscribe from this group, send email to
> trac-users+...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/trac-users?hl=en.
Reply all
Reply to author
Forward
0 new messages