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