/usr/lib/python2.3/site-packages/_mysql.so: undefined symbol

Discussion in 'Python' started by francescomoi@usa.com, Sep 15, 2005.

  1. Guest

    Hello.

    Python 2.3.4 (#1, Feb 2 2005, 12:11:53)
    [GCC 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)] on linux2
    MySQL-python-1.2.0

    I'm trying to execute this script:
    ----------------------
    #!/usr/bin/python
    import MySQLdb
    conn = MySQLdb.connect (host = "localhost", user = "root", passwd =
    "xxxx", db = "test")
    cursor = conn.cursor ()
    cursor.execute ("SELECT VERSION()")
    row = cursor.fetchone ()
    print "server version:", row0
    cursor.close ()
    conn.close ()
    ------------------

    But I get this error message:
    --------------------
    [ ]# python test.py
    Traceback (most recent call last):
    File "test.py", line 2, in ?
    import MySQLdb
    File "/usr/lib/python2.3/site-packages/MySQLdb/__init__.py", line 27,
    in ?
    import _mysql
    ImportError: /usr/lib/python2.3/site-packages/_mysql.so: undefined
    symbol: mysql_rollback
    --------------------

    What am I doing wrong?
    , Sep 15, 2005
    #1
    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. Marco Herrn
    Replies:
    1
    Views:
    424
    Erwin S. Andreasen
    Jan 13, 2004
  2. thomas Armstrong
    Replies:
    0
    Views:
    300
    thomas Armstrong
    Sep 16, 2005
  3. thomas Armstrong
    Replies:
    0
    Views:
    400
    thomas Armstrong
    Sep 21, 2005
  4. TsanChung
    Replies:
    4
    Views:
    1,228
    TsanChung
    Sep 21, 2008
  5. anne001
    Replies:
    1
    Views:
    442
Loading...

Share This Page