Yeah, I've done that, removed python, reinstalled it etc. i was then having a problem with apache not recognising the WSGIScriptAlias directive in my httpd.conf file. I fixed that by manually creating two symlinks in the apache config, which seemed an iffy thing to do to me, but it worked (if progressing to a different error message can be called working).
The error message I'm now getting is "
ImportError: cannot import name MAXREPEAT
" in my var/log/apache2/error.log, of which the internet says (
http://stackoverflow.com/questions/17190845/mod-wsgi-python-2-7-5-import-error):
> There is still possibly something wrong with your setup. You should go through the checks in code.google.com/p/modwsgi/wiki/CheckingYourInstallation to verify which Python library mod_wsgi.so is linked against. Looks like you are mixing Python installations, which is bad.
So I still think i have issues with the wrong version of python.
What I am contemplating doing next is:
1. saving all my own files
2. wiping the VPS, setting it up to a claen ubuntu 12.04
3. updating all the packages
4. putting my files back on it
and seeing if that works.
Do people think that's a sensible way to proceed?
(On a wider note, how to avoid these sorts of problems in the future? Is docker the way to go? Heroku?)