mxODBC and MySQL
M.-A. Lemburg
mal at lemburg.com
Mon Jun 7 17:12:00 EDT 1999
Joachim Schmitz wrote:
>
> Hi,
>
> I compiled and installed mxODBC for MySQL on SuSE 6.1 without problems.
> I get this:
> Python 1.5.2b2 (#6, Feb 28 1999, 21:41:19) [GCC egcs-2.91.60 19981201
> (egcs-1.1
> .1 on linux2
> Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
> >>> import ODBC.MySQL
> Traceback (innermost last):
> File "<stdin>", line 1, in ?
> File "/usr/local/lib/python1.5/ODBC/MySQL/__init__.py", line 7, in ?
> from mxODBC import *
> ImportError: /usr/local/lib/python1.5/ODBC/MySQL/mxODBC.so: undefined
> symbol: PyBuffer_Type
> >>
You can either upgrade to 1.5.2 final or turn off the buffer
type code in mxODBC.c manually (enclosed in HAVE_PYTHON_BUFFEROBJECTS
#defines). I guess you stumbled into test code that I forgot to remove
for the distribution; sorry.
--
Marc-Andre Lemburg
______________________________________________________________________
Y2000: 207 days left
Business: http://www.lemburg.com/
Python Pages: http://www.lemburg.com/python/
More information about the Python-list
mailing list