> >>>import mx.ODBC.iODBC
> Traceback (innermost last):
>   File "<interactive input>", line 1, in ?
> ImportError: No module named iODBC
> 
> How can this be!? Also, is there any other way to do 
> Postgres in ActiveState
> Python?
> 
> LB
I assume you have a correctly installed ODBC data source
for the database and have tested it with something
other than Python.

When you install ODBC, it creates a directory called
'ODBC' under your Python installation.  And you should
always use "ODBC.Windows":
  import ODBC.Windows
  conn = ODBC.Windows.connect(datasource, user, password)

The other directories (iODBC, Sybase etc.) are to let you
use mxODBC on Unix machines by linking against the native
C libraries of each vendor.  On Windows, it's all compiled
and handled by ODBC itself so you don't need these.

- Andy Robinson



_______________________________________________
ActivePython mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activepython

Reply via email to