pgdb

AttributeError: 'module' object has no attribute 'connect' in the pgdb module using python

AttributeError: 'module' object has no attribute 'connect' in the pgdb module using python Question: import pgdb myConnection = pgdb.connect( host=hostname, user=username, password=password, database=database ) doQuery( myConnection ) myConnection.close() I get the following error when i run the script. >>> AttributeError: ‘module’ object has no attribute ‘connect’. Please help me out Asked By: sham sar || …

Total answers: 2