Problem in importing MySQLdb

Discussion in 'Python' started by Gurpreet Sachdeva, Jan 20, 2005.

  1. 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
     
    Gurpreet Sachdeva, Jan 20, 2005
    #1
    1. Advertising

  2. Gurpreet Sachdeva

    deelan Guest

    Gurpreet Sachdeva wrote:
    > 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:
    <http://sourceforge.net/project/shownotes.php?release_id=293608>


    > 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

    --
    @prefix foaf: <http://xmlns.com/foaf/0.1/> .
    <#me> a foaf:person ; foaf:nick "deelan" ;
    foaf:weblog <http://blog.deelan.com/> .
     
    deelan, Jan 20, 2005
    #2
    1. Advertising

  3. Gurpreet Sachdeva

    Andy Dustman Guest

    Gurpreet Sachdeva wrote:

    > 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...
     
    Andy Dustman, Jan 20, 2005
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Kiran B.
    Replies:
    0
    Views:
    305
    Kiran B.
    Nov 5, 2003
  2. Raaijmakers, Vincent (IndSys,GE Interlogix)

    RE: Importing MySQLdb module causes malformed header error.. plshelp!!!

    Raaijmakers, Vincent (IndSys,GE Interlogix), Nov 5, 2003, in forum: Python
    Replies:
    1
    Views:
    355
    Kiran B.
    Nov 6, 2003
  3. Replies:
    4
    Views:
    400
  4. 83nini

    Python not importing mysqldb

    83nini, Apr 24, 2009, in forum: Python
    Replies:
    5
    Views:
    890
    Ioannis Lalopoulos
    Apr 26, 2009
  5. David George

    Error Importing MySQLdb

    David George, Jan 8, 2012, in forum: Python
    Replies:
    6
    Views:
    748
    John Nagle
    Jan 9, 2012
Loading...

Share This Page