I've been having problems on CentOS as well. Then again I tried to
upgrade to python 2.4, and the server is 64-bit. I was able to find
some RPMs (check 
http://rpm.pbone.net/index.php3/stat/3/srodzaj/1/search/MySQL-python)
-- although with that I had to install some dependencies manually.
Anyhow, turns out there's no RPM for 64 bit CentOS with python-2.4
(only 2.3). Also I wasn't able to compile from source, but that may
have had more to do with 64-bit than CentOS.

Well... good luck :)

On Mar 21, 7:58 pm, "Andy Dustman" <[EMAIL PROTECTED]> wrote:
> On 3/20/07, dbee <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > System: Linux 2.6.9-34.0.1.EL #1 Wed May 24 07:40:56 CDT 2006 i686
> > athlon i386 GNU/Linux
> > OS: CentOS
> > Python: 2.3.4
> > Mysql: 5.0
>
> > I'm having lots of issues trying to get my django server up. It seems
> > that mod_python won't work on my system.
>
> > When I yum install mysql-python, the package installs fine, but I get
> > this error whenever I need to import it into my python scope.
>
> > >>> import MySQLdb
> > ImportError: this is MySQLdb version (1, 2, 2, 'final', 0), but _mysql
> > is version (1, 0, 0, 'final', 1)
>
> You have conflicting pieces from different versions, or else this is
> due in part to your build failure, when upgrading.
>
> > When I try to build the source version of MySQLdb from sourceforge, it
> > just errors with this non-descript error...
>
> > error: command 'gcc' failed with exit status 1
>
> > I really wasn't expecting it to take so long to get mod_python +
> > MySQLdb working.
>
> > Help
>
> There is no way MySQLdb-1.0.0 is going to work with MySQL-5.0. The
> oldest version that would possibly work is 1.2.0.
>
> The gcc error you are getting indiciates... well not much, but my
> guess is you are missing essential development files. Check the README
> and make sure you have everything it says you need to have. You can
> also build an RPM package.
> --
> Patriotism means to stand by the country. It does
> not mean to stand by the president. -- T. Roosevelt
>
> This message has been scanned for memes and
> dangerous content by MindScanner, and is
> believed to be unclean.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to