This is a rather dumb question but i'am looking at a bizarre situation.
I am running fedora and have python 2.6.5 installed. The other day i installed MySQL-python using yum (because i do not have the setuptools module so i cannot build it from source).
Anyway yesterday i wrote my entire data access layer in python and it was running fine, i did test it.
Today however it gives me an ImportError: No module named MySQLdb
The only thing i ever changed was i installed eclipse and pyDev. Any ideas on what went wrong and how i fix it. I tried removing and re-installing MySql-python but that did not help.
I did the following
import sys
print sys.path
And it shows me all the paths which are basically pertaining to /usr/local/lib/python2.6
However i was trying to find where the MySQLdb module is installed and it seems that its installed in /usr/lib/python2.5/sitepackages
Now i have no idea why it got installed there and why it was working earlier and why it stopped working now. Any ideas on how i should fix it.
I did try copying the site-packages folder over to the python2.6 folder but that did not work
Help!!