[Tutor] Access PostGreSQL 8.3 by python 2.5

Mahasen Dehideniya mahasen_d at yahoo.com
Wed Oct 28 06:44:40 CET 2009


Hi ,
I'm try to access PostGreSQL 8.3 by python 2.5. I'm working on winXP. 
I use pg module. 
At the first time i get error that no found dll. when i add C:\Program Files\PostgreSQL\8.3\bin to  the path variable i able to fixed it. 
After that  i get following error. 
 
>>> import pg
Traceback (most recent call last):
  File "<pyshell#3>", line 1, in <module>
    import pg
  File "C:\Python25\Lib\site-packages\pg.py", line 21, in <module>
    from _pg import *
ImportError: DLL load failed with error code 182
 
Can any one tell me how I fixed this error?
 
Thank in advance.
 
Mahasen


      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20091027/bc044e15/attachment.htm>


More information about the Tutor mailing list