[DB-SIG] Solid and mxODBC?

Petr Snajdr snajdr@firma.seznam.cz
Tue, 25 May 1999 15:39:37 +0200 (CEST)


On Tue, 25 May 1999, M.-A. Lemburg wrote:

> > ./mxODBC.c: In function `mxODBCursor_Execute':
> > ./mxODBC.c:3091: `SQL_TYPE_NULL' undeclared (first use this function)
> > make: *** [mxODBC.o] Error 1

> #ifndef SQL_TYPE_NULL
> # define SQL_TYPE_NULL	0
> #endif

Thanks. 
but step 5 fails
(http://starship.python.net/~lemburg/mxODBC.html#Installation)

4) make ...

OK

5) Get your database running, and try to connect with the new module.

/usr/local/bin/python1.5 
Python 1.5.2 (#1, May 25 1999, 11:33:07)  [GCC 2.7.2.3] on linux2
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import mxODBC
Traceback (innermost last):
  File "<stdin>", line 1, in ?
ImportError: initialization of module mxODBC failed
(exceptions.ImportError:No module named DateTime)

Oops

/usr/local/bin/python1.5 /root/ODBC/test.py
Traceback (innermost last):
  File "/root/ODBC/test.py", line 23, in ?
    import DateTime,mxODBC
ImportError: No module named DateTime

$ emacs /root/ODBC/test.py (replace string DateTime -> mxDateTime)


/usr/local/bin/python1.5 /root/ODBC/test.py 
========================================================================
mxODBC Test Suite
------------------------------------------------------------------------

Subpackage Name [MySQL]: Solid

Import of ODBC.'Solid' failed: No module named ODBC.Solid


DateTime == mxDateTime?


Thanks
--

S pozdravem
   Petr Snajdr

Seznam Ceskeho Internetu: http://www.seznam.cz/
Magazin pro kazdeho: http://www.novinky.cz/
Seznam Dnes: http://dnes.seznam.cz/
Navody, recenze, technika: 
http://www.novinky.cz/Index/TechDesk/