Simple ODBC error?

mike mcleod mike.mcleod at bt.com
Fri Apr 6 13:00:13 EDT 2001


I have pyhton 2.0 with win32all (138). My code (copy of help):

>>>import dbi, odbc
>>>s = odbc.odbc('DSN/UID/PASSWORD')
gives
Traceback (innermost last):
  File "<interactive input>", line 1, in ?
TypeError: call of non-function (type module)
>>>dir
shows that dbi and odbc are loaded.
What does this mean? And how do I fix it?

Thanks,
Mike McLeod.





More information about the Python-list mailing list