Problem in importing MySQLdb

G

Gurpreet Sachdeva

I am using Mysql version 5.0.2-alpha on RedHat 9.0 (python2.2)

When I try to import MySQldb

I get:
Python 2.2.2 (#1, Feb 24 2003, 19:13:11)
[GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib/python2.2/site-packages/MySQLdb/__init__.py", line 27, in ?
import _mysql
ImportError: /usr/lib/libmysqlclient.so.10: symbol errno, version
GLIBC_2.0 not defined in file libc.so.6 with link time reference

Is there any problem in library files?? Do I need to install anything
I have installed MySQL-shared-3.23.54a-1.i386.rpm,
MySQL-devel-5.0.2-0.i386.rpm, MySQL-client-5.0.2-0.i386.rpm,
MySQL-server-5.0.2-0.i386.rpm

Please help,
Garry
 
D

deelan

Gurpreet said:
I am using Mysql version 5.0.2-alpha on RedHat 9.0 (python2.2)

When I try to import MySQldb

i' not completely sure mysqldb works with mysql 5.0 and its
bundled client libraries.

to be more precise:

'' MySQL-5.0 and newer are not currently supported,
but might work.''

from:
Is there any problem in library files?? Do I need to install anything
I have installed MySQL-shared-3.23.54a-1.i386.rpm,
MySQL-devel-5.0.2-0.i386.rpm, MySQL-client-5.0.2-0.i386.rpm,
MySQL-server-5.0.2-0.i386.rpm

are u sure you have compiled mysqldb against 5.0
client libs?

you may want to post on the mysqldb forum of ask
for help there:

<http://sourceforge.net/forum/forum.php?forum_id=70461>

HTH,
deelan
 
A

Andy Dustman

Gurpreet said:
Is there any problem in library files?? Do I need to install anything
I have installed MySQL-shared-3.23.54a-1.i386.rpm,
MySQL-devel-5.0.2-0.i386.rpm, MySQL-client-5.0.2-0.i386.rpm,
MySQL-server-5.0.2-0.i386.rpm

You should recheck those version numbers carefully. One of these things
is not like the other...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top