Problem in importing MySQLdb

Gurpreet Sachdeva gurpreet.sachdeva at gmail.com
Thu Jan 20 08:23:06 EST 2005


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.
>>> import MySQLdb
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



More information about the Python-list mailing list