Thanks a lot for your prompt response! I was just coming back to post
what I did, but I appreciate the insight you've provided.

I'm on an ubuntu server (9.04 jaunty). The trac server is virtualized,
so I was able to do a lot of experimenting without fear of messing
anything up. My ultimate solution was to simply remove the trac from
ubuntu and install it using easy_install. I had to point /usr/bin/
python back to python2.6 before uninstalling trac, then ran

sudo easy_install http://svn.edgewall.org/repos/trac/tags/trac-0.11.4

After an apache restart, the trac web interface shows 0.11.4 and
attachments (and everything else) work.

Thanks again!

On May 8, 2:33 pm, Greg Troxel <[email protected]> wrote:
> > 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).
>
>  application_pgp-signature_part
> < 1KViewDownload
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to