Problem in importing MySQLdb

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Gurpreet Sachdeva

    #1

    Problem in importing MySQLdb

    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.[color=blue][color=green][color=darkred]
    >>> import MySQLdb[/color][/color][/color]
    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
  • deelan

    #2
    Re: Problem in importing MySQLdb

    Gurpreet Sachdeva wrote:[color=blue]
    > I am using Mysql version 5.0.2-alpha on RedHat 9.0 (python2.2)
    >
    > When I try to import MySQldb[/color]

    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:
    <http://sourceforge.net/project/shownotes.php?r elease_id=29360 8>

    [color=blue]
    > 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[/color]

    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

    --
    @prefix foaf: <http://xmlns.com/foaf/0.1/> .
    <#me> a foaf:Person ; foaf:nick "deelan" ;
    foaf:weblog <http://blog.deelan.com/> .

    Comment

    • Andy Dustman

      #3
      Re: Problem in importing MySQLdb

      Gurpreet Sachdeva wrote:
      [color=blue]
      > 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[/color]

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

      Comment

      Working...