Jim Podroskey <[email protected]> writes: > Would you mind giving some more information about how you switched > Trac to use python2.5? > > I've installed 2.5 and switched the /usr/bin/python link to point to > 2.5 instead of 2.6, but I'm not sure what I need to do to make apache > and mod_python or whatever acknowledge this. This is the only python > site I have running anywhere, so I'm a little unsure of what needs > done. > > Any advice?
I use pkgsrc, which explicitly does not provide a /usr/pkg/bin/python link. The problem is that python 2.6 looks in a different directory for extensions, so you need to have all your extensions rebuilt for 2.6 instead of 2.5. So in the pkgsrc world you'd delete all python stuff and then rebuild trac and ap2-wsgi or whatever you use for apache if any. Moving the symlink doesn't fix everything, which is the reason behind thinking using it is harmful and thus not providing it. I have no idea what system you are using, but my advice is that you try to answer the following: Why do I believe that the python bits I had installed before (both the trac dependencies, and how apache runs python) will be found by trac running under 2.6, and when found will be linked against the right python libraries? I think you'll find the answer is "Gee, I have no reasonable basis for expecting any of that to work" and hopefully that will point you in the right direction. In pkgsrc, one can install py24-genshi and py25-genshi at the same time, because it's a pure python module that installs wholly within /usr/pkg/lib/python2.5/site-packages. But ap22-py24-wsgi cannot be installed with ap22-py25-wsgi because: > pkg_info -L ap22-py25-wsgi Information for ap22-py25-wsgi-2.4: Files: /usr/pkg/lib/httpd/mod_wsgi.so it doesn't encode the python version in the module (or with ap2-py25-wsgi - I am running apache 2.2).
pgp1VWISXZNKS.pgp
Description: PGP signature
