Forums Trac

Trac-Windows Python problems

Subscribe to Trac-Windows Python problems 7 post(s), 2 voice(s)

 
Avatar Guhan 7 post(s)

Downloaded and tried installing the Trac stack for Windows.

First it had a conflict with the python in OpenOffice and wouldnt progress after a point (created port, admin, folder, test project) and then stalled with an error message. I uninstalled OpenOffice completely and then started the Trac install. At teh same point, it failed, with a different error message.

Since I couldn’t attach the screenshot on this forum post, I have copied the text from the message below – pl forgive typos.

I was hoping if you could guide me in fixing it. Really looking forward to using Trac!! :)

Thanks
Guhan

START OF ERROR MESSAGE

There has been an error.

Error running C:\Progr..\python\python.exe ’”C:\....\pythonPackages\setuptools\ez_setup.py”’:
Tracekback(most recent call last): File “c:\...pythonPackages\setuptools\ez_setup.py”,line 267, in ? main(sys.argv[1:]) File “c:\...pythonPackages\setuptools\ez_setup.py”,line 198, in main egg =download_setuptools(version, delay=0) File “c:\...pythonPackages\setuptools\ez_setup.py”,line 146, in download_setuptools src=urllib2.urlopen(url) File “c:\...\python\lib\urllib2.py”,line 130, in urlopen return _opener.open(req,data) File “c:\...\python\lib\urllib2.py”,line 358, in download_setuptools src=urllib2.urlopen(url) File “c:\...\python\lib\urllib2.py”,line 376, in _open ‘_open’,req) File “c:\...\python\lib\urllib2.py”,line 337, in _call_chain result = func( __args) File “c:\...\python\lib\urllib2.py”,line 1021, in http_open return self.do_open(httplib.HTTPConnection,req) File “c:\...\python\lib\urllib2.py”,line 996, in do_open raise URLError(err) urllib2.URLError:<urlopen error>END OF ERROR MESSAGE*

 
Avatar antonio Administrator 485 post(s)

Hi,

I’m looking into it

Cheers

 
Avatar antonio Administrator 485 post(s)

New version released, I hope it works for you now

 
Avatar Guhan 7 post(s)

Antonio,
Thank you for such a prompt response. My server is having some problems – I will check and keep you posted. Once again, thanks for the prompt response

Update: The installation works fine. Thank you so much.

I am able to view the application and login as a user. From the filename for the stack, I infer that you are using Build 0.10.4, which doesnt have the Webadmin module pre-packaged; 0.11 onwards does – or so it says here – http://trac.edgewall.org/wiki/WebAdmin.
Would I be right, if I went ahead and installed web-admin from here? Pl let me know.

Once again, Antonio, thank you so much for your prompt help and support.

Cheers
Guhan

 
Avatar Guhan 7 post(s)

I looked over the Trac website for installing the WedAdmin module.

Looked for version relevant to 0.10.x, it says 0.10.x latest from source:sandbox/webadmin. I need to build from SVN and thats where I’m LOST!

Am planning to try the instructions for 0.11, that has webAdmin built in – from the instructions, it looks like I will wind up with a command prompt that will keep running all the time for the server to be alive… Not quite as elegant as the Bitnami Stack, I must say. So, I was shamelessly wondering, if a requesting a windows stack on 0.11 would be appropriate?

Or if you could offer directions on how I can setup webadmin on this stack, that would be most appreciated too.

Thanks

 
Avatar antonio Administrator 485 post(s)

Hi,

In Start Menu, select Run and type

cmd

In the command line console, change directory to the one in which you installed Trac

cd “C:\Program Files\BitNami Trac Stack”

would be the default one. Then, you have to load the environment variables by typing

scripts\setenv.bat

and change directory once again to

cd python\Scripts

Install now the plugin with

easy_install.exe http://svn.edgewall.com/repos/trac/sandbox/webadmin

Now it comes the tricky part. You will have to stop the BitNami Trac Services (there’s a shortcut in the Start Menu folder) and copy the folders ‘Lib’ and ‘DLLs’ from C:\Program Files\BitNami Trac Stack\python to C:\Program Files\BitNami Trac Stack\apache2\bin

To enable the plugin for Trac, you have to find the trac.ini file which should be somewhere in your project folder or subfolders (likely to be C:\Program Files\BitNami Trac Stack\projects\Project) and add the following

[components]
webadmin.* = enabled

Restart the services and everything should be working by now.

Cheers.

PS: All this has been from what I recall from having installed it in the past. Maybe the steps are not 100% accurate, but I don’t usually use Windows and I won’t have access to any machine running it until next Monday.

 
Avatar Guhan 7 post(s)

Antonio,
Works like a dream! Thanks a ton You rock!

Cheers!!

Forums Trac