AttributeError: 'NoneType' object has no attribute 'Connect'
Alejandro Michelin Salomon ( Adinet <alejmsg <at> adinet.com.uy>
2006-04-29 13:32:31 GMT
Hi
:
I am tring
tu use adodb for python.
Y install
the extension psycopg.
Then i run
the install script, to install adodb.
This
installs ok.
I make a
test probram coping from the manual
This code
:
import
adodb;
conn =
adodb.NewADOConnection('postgres')
conn.Connect('localhost','probrax','pepe','probrax')
--> Error is here.
cursor =
conn.Execute('select * from users')
while
not cursor.EOF:
print cursor.fields
cursor.MoveNext()
cursor.Close()
conn.Close()
When i try
tu execute, program says error.
Message
:
Traceback
(most recent call last):
File "D:\projetos\todolist\todolist.py", line
9, in ?
conn.Connect('localhost','probrax','pepe','probrax')
AttributeError:
'NoneType' object has no attribute 'Connect'
Can you help
me ?
What is
hapening ?
Thanks in
advance.
Alejandro
Michelin Salomon
Porto
Alegre
Brasil.
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.5.1/326 - Release Date: 27/4/2006
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.5.1/326 - Release Date: 27/4/2006