views:

853

answers:

2
>>> import psycopg2
Traceback (most recent call last):
  File "", line 1, in 
  File "C:\Python26\lib\site-packages\psycopg2\__init__.py", line 60, in 
    from _psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID
ImportError: DLL load failed: The application has failed to start because its si
de-by-side configuration is incorrect. Please see the application event log for
more detail.

I get this error when trying to import psycopg2.. I've searched for days, and found no solutions. I've tried installing the Visual C++ 2008 Package, but I still get the same error.

+3  A: 

According to this thread you need to install an earlier version since there were problems with the latest build.

Simply install an earlier version, (2.0.10 works great), even with PostgreSQL 8.4.x series.

pkit
thanks! this solved it.
john2x
libpq is not up to date with psycopg2 package. PG6000 is the solution!
iElectric
A: 

pkit you are a star. I spent the last three ours trying to figure out how to fix "DLL load failed" and the answer was simply 'install an earlier version!'

dariober