If you’ve recently done an upgrade or dist-upgrade (as I did) on your Ubuntu server and it broke Trac with 500 errors, then this might be the solution for you…
If you’re seeing something like this in your Apache error.log:
No module named trac.web.modpython_frontend
Then what has probably happened is Python was upgraded to a more recent version. I install Trac in python 2.4, therefore the Trac egg was in the /usr/lib/python2.4/site-packages directory. After the upgrade to python 2.6, the location would’ve changed. Thankfully, a very quick and simple solution fixed it for me:
sudo easy_install TracIt worked like a charm for me, but if you have to install manually then I expect you’ll have to follow the TracInstall instructions over again…