This forum is no longer active. Please post your questions to our new community site

Forums Trac

how to globally install plugins

Subscribe to how to globally install plugins 5 post(s), 3 voice(s)

 
Avatar ulysess444 3 post(s)

Finally I have figured out how to do this.

When install egg with easy_install or direct execute setup.py to install something, even I confirmed the success, the trac can’t find it. But if I put the egg into a individual trac project’s plugins folder then all work well. After a half of day I finally found There’s a copy of Python\Lib laying under apache2\bin, and trac only use this one instead of real one of Python’s, and of course easy_install or setup.py doesn’t update this fake one. So manual update this folder will make the thing done.

Why? I have used trac before and be sure it’s not trac’s fault.

 
Avatar ulysess444 3 post(s)

And there’s also a python25.dll in apache2\bin. So the stack make a whole Python Env into Apache folder. What’s the matter?

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Hi,

Have you try to install the egg from the “Start→BitNami Trac Stack→ Use trac” console?

 
Avatar ulysess444 3 post(s)

That’s only a batch file help you set some PATHs. Nothing special.

 
Avatar victoria Administrator 134 post(s)

Hi,

You need to copy the the Python\Lib forder into apache2\bin so mod_python can find these libraries and you can use trac with mod_python. I know that it seems a bit weird, but the reason you need to do it is that BitNami Stacks don’t modify the user environment what allows to have several instance of the same stack running in the same machine. In a standard Trac installation you don’t need to do this because when installing Python on windows some environment variables and entries in the registry are created and can be read by mod_python.

Forums Trac