mxODBC and MySQL

Joachim Schmitz perry at ac-copy.net
Tue Jun 8 02:44:25 EDT 1999


I ugraded to 1.5.2 now I get:

Python 1.5.2 (#1, Jun  8 1999, 07:26:20)  [GCC egcs-2.91.66 19990314
(egcs-1.1.2  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: SQLTables

regards


Joachim Schmitz


On Mon, 7 Jun 1999, M.-A. Lemburg wrote:

> 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.
> 

------------------------------------------------------------------------------
 P R O F I . N E T  A G    *    Joachim Schmitz   * Senior Network Consultant
------------------------------------------------------------------------------
  profi.net                |    Aindlinger Str. 7   | Voice  +49 821 27062-0
  Hassler & Mair AG        |    86167 Augsburg      | Fax    +49 821 27062-99
                           |    Germany             | Email  js at profi.net  





More information about the Python-list mailing list