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

Forums Trac

Aggh-please fix easy_install

Subscribe to Aggh-please fix easy_install 9 post(s), 4 voice(s)

 
Avatar Ashley Raiteri 4 post(s)

Trac is such a BITCH to install unless you are installing it for EVERYONE. also, I guess this is mistly Python’s fault. But anyway, using a STACK is great, but so much of Trac-add ins require easy_install to work right. Any help?

 
Avatar antonio 621 post(s)

Hi,

I’ll look into it

Cheers

 
Avatar antonio 621 post(s)

Ok, there’s a problem with the shebang line in easy_install file. The easiest way to avoid it is by launching easy_install as

./python easy_install

from python/bin folder

Another workaround is to change in easy_install the first line, which is something like

#!/home/antonio/trac-0.10.4-5/python/bin/python

to

#!/usr/bin/env /home/antonio/trac-0.10.4-5/python/bin/python

I will fix it for the next release. Thanks for pointing this out, this doesn’t happen on my machine (I use zsh as shell) so I hadn’t noticed it.

 
Avatar Ashley Raiteri 4 post(s)

Thanks. I did have to actually set my path to include the /opt/trac/python/bin dir (in the first) in order to use the 2nd hack mentioned above, but that seems to have worked. Thanks for looking into it.

 
Avatar Ashley Raiteri 4 post(s)

Aggh!
I forgot, it wasn’t really easy_install that was giving me the problem it was trac-admin. This is the one that fails with the bitnami install.
/opt/trac/python/bin/.python.bin: error while loading shared libraries: libpython2.5.so.1.0: cannot open shared object file: No such file or directory

I have set my path to include the local trac-admin utility and the local python lib but something isn’t quite working out. echo $PATH
/opt/trac/python/lib:/opt/trac/trac/bin:/opt/trac/python/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11

and here is the result of ls -l on /opt/trac/python/lib/libpython*
-r-xr-xr-x 1 root root 4359234 Feb 13 12:35 /opt/trac/python/lib/libpython2.5.so.1.0

So I now its there, but how to tell trac-admin to change LIB search paths?

 
Avatar Ashley Raiteri 4 post(s)

This seems to have worked, so in case anyone else is wondering.

/opt/trac/python/bin# ./python2.5 /opt/trac/trac/bin/trac-admin resync

Basically run python2.5 from the python bin dir and execute trac-admin from there.

 
Avatar antonio 621 post(s)

Yes, the idea of the BitNami stacks is to be completely independent so that they don’t interfere with your system. That’s the reason why INSTALLDIR/python/bin/python loads the needed variables which define the libraries path. You don’t have to set the PATH environment variable at all.

Cheers

 
Avatar yinglingmd1 1 post

The VM version of Trac + SubVersion also has a similar bug in easy_install. The shebang line has /bitnami/tracstack-linux/output/python/bin/python instead of /opt/bitnami/python/bin/python

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

Thanks for letting us know.

Forums Trac