phaplt / winpython

Automatically exported from code.google.com/p/winpython
0 stars 0 forks source link

Cannot use Psycopg #73

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download 
http://www.stickpeople.com/projects/python/win-psycopg/2.5.1/psycopg2-2.5.1.win-
amd64-py2.7-pg9.2.4-release.exe
2. Attempt installation from the winpython control panel

This generates a pop-up message declaring the module to be incompatible with 
winpython.

I have also tried this link: http://www.lfd.uci.edu/~gohlke/pythonlibs/#psycopg

It installs fine but the package import fails because of a .pyd module:

ImportError: DLL load failed: The specified module could not be found.

This in spite of the .pyd module being in the package directory as it should.

Is the issue with .pyd files?

I'm using winpython 2.7.5.1 on a Windows 7 64-bit machine.

Thanks!!

Original issue reported on code.google.com by jdmargul...@gmail.com on 18 Jul 2013 at 4:36

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Thank you very much for the answer. Can you clarify "libpq.dll in the PATH"? 
How would that overcome the fact that Python fails to import the _psycopg.pyd 
module?

Original comment by jdmargul...@gmail.com on 19 Jul 2013 at 4:06

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
OK, thanks. Which "PATH" do I add libpq.dll to?

Original comment by jdmargul...@gmail.com on 19 Jul 2013 at 5:39

GoogleCodeExporter commented 9 years ago
I've added the .dll to psycopg2's directory knowing nothing better and here is 
the error I now get:

    from psycopg2._psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID
ImportError: DLL load failed: %1 is not a valid Win32 application.

Any clue?

Original comment by jdmargul...@gmail.com on 19 Jul 2013 at 9:12