I've upgraded Python from 2.5 to 2.7, but the upgrade broke Django. My Django tests and shell report they can't find the modules.

I tried putting the site-packages with Django on my PYTHONPATH in .bashrc, but this failed to to find MySQLdb.

Do I have to reinstall Django?

link|improve this question
feedback

1 Answer

up vote 1 down vote accepted

Yes. And MySQLdb.

python2.7 setup.py install

(well, not Django, but why take a chance when it's so easy to do?)

link|improve this answer
Well, I'm trying to install MySQLdb, but the setup wants setuptools, whose setup wants zlib, and apparently my installation of Python didn't create the zlib module properly. – chernevik Feb 20 '11 at 22:24
Fixed zlib by installing zlib1g-dev, then reinstalling python. That gave me setuptools. MySQLdb installation then wanted mysql_conf, which I got by installing libmysqlclient15-dev. Then I could install MySQLdb, and Django worked. God bless the various packagers -- seriously, they make incredible things possible -- but this installation was more google-fu than I've needed in a long time. – chernevik Feb 20 '11 at 23:05
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.