Newbee WinNT ODBC Question
wayne_strauss at mail.medscape.com
wayne_strauss at mail.medscape.com
Tue Nov 9 13:00:37 EST 1999
Aaaaaaaargh!
Thanks.
"Gordon McMillan" <gmcm at hypernet.com> on 11/09/99 10:46:47 AM
Please respond to gmcm at hypernet.com
To: wayne strauss/Medscape at Medscape, python-list at python.org
cc:
Subject: Re: Newbee WinNT ODBC Question
wayne_strauss writes:
> I've installed Python and Win32all.exe. When I run the following
> (only the first three lines shown):
>
> import dbi, odbc # ODBC modules
> import time # standard time module
>
> dbc = odbc.odbc('db/id/pw')
>
> I get:
>
> >>> Traceback (innermost last):
> File "d:\Program
> Files\Python\Pythonwin\pywin\framework\scriptutils.py", line 237,
> in RunScript
> exec codeObject in __main__.__dict__
> File "D:\dev\Python\ODBC\odbc.py", line 1, in ?
> import dbi, odbc # ODBC modules
> File "odbc.py", line 4, in ?
> dbc = odbc.odbc('db/id/pw')
> TypeError: call of non-function (type module)
>
> If the import worked then why does the actual function call fail?
You didn't by any chance name this script "odbc.py" did you?
import-Narcissus-ly y'rs
- Gordon
More information about the Python-list
mailing list