List:General Discussion« Previous MessageNext Message »
From:Erik Stewart Date:August 27 1999 4:03pm
Subject:importError with Python MySQLmodule.so
View as plain text  
I compiled MySQLmodule as shown in the readme:

gcc -shared -I/usr/include/python1.5 \
-I/usr/local/include/mysql \
MySQLmodule.c -L/usr/local/lib/mysql\
-lmysqlclient -L/usr/lib/python1.5/config -lpython1.5 \
-o MySQLmodule.so

It gave me the following warning message, which I'm guessing is okay:

MySQLmodule.c: In function `pythonify_row':
MySQLmodule.c:238: warning: assignment from incompatible pointer type

However, when trying to import MySQLmodule.so to python, I got the
following error:

>>> import MySQLmodule 
Traceback (innermost last):
  File "<stdin>", line 1, in ?
ImportError: ./MySQLmodule.so: undefined symbol: mysql_fetch_row

What causes this is beyond me.  Could someone please help!?
Thread
importError with Python MySQLmodule.soErik Stewart27 Aug
  • INNER JOIN doesn't work correctly..Michael Widenius28 Nov
  • Re: INNER JOIN doesn't work correctly..Sinisa Milivojevic28 Nov