Re: Help me in error of importing psycopg2 in python
"Massa, Harald Armin" <[email protected]>
| Newsgroups | gmane.comp.python.db.psycopg.devel |
|---|---|
| Message-ID | <[email protected]> |
Vu, you should try using the psycopg2 win32 binaries from http://www.stickpeople.com/projects/python/win-psycopg/ a rough guess is: you did not choose to statically bind all dependencies within your built psycopg2-module, and a referenced .dll is missing. Just take the binaries and enjoy, best wishes, Harald On Thu, Aug 27, 2009 at 4:59 PM, Vu Hong Thuan <[email protected]> wrote: > Here is my error, anyone help me > > Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit > (Intel)] on > win32 > Type "help", "copyright", "credits" or "license" for more information. > >>> import psycopg2 > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "C:\Python26\lib\site-packages\psycopg2\__init__.py", line 60, in > <module > > > from _psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID > ImportError: DLL load failed: The specified procedure could not be found. > >>> import psycopg2 > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "C:\Python26\lib\site-packages\psycopg2\__init__.py", line 55, in > <module > > > from psycopg2 import tz > ImportError: cannot import name tz > > > > 2009/8/27 Vu Hong Thuan <[email protected]> > >> I've test in postgres 8.3, 8.2, I get the same error, >> >> 2009/8/27 Vu Hong Thuan <[email protected]> >> >> Yes, Postgres 8.4, >>> Have you ever get this error when using psycopg2 ? >>> >>> 2009/8/27 Karsten Hilbert <[email protected]> >>> >>> On Thu, Aug 27, 2009 at 04:47:31PM +0700, Vu Hong Thuan wrote: >>>> >>>> > I've installed python 2.6.2 on windows and Postgres 4.0 >>>> >>>> Certainly not. 8.4, perhaps ? >>>> >>>> Karsten >>>> -- >>>> GPG key ID E4071346 @ wwwkeys.pgp.net >>>> E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346 >>>> _______________________________________________ >>>> Psycopg mailing list >>>> Psycopg-IAPFreCvJWPBWskQ1e/[email protected] >>>> http://lists.initd.org/mailman/listinfo/psycopg >>>> >>> >>> >> > > _______________________________________________ > Psycopg mailing list > Psycopg-IAPFreCvJWPBWskQ1e/[email protected] > http://lists.initd.org/mailman/listinfo/psycopg > > -- GHUM Harald Massa persuadere et programmare Harald Armin Massa Spielberger Straße 49 70435 Stuttgart 0173/9409607 no fx, no carrier pigeon - LASIK good, steroids bad? _______________________________________________ Psycopg mailing list Psycopg-IAPFreCvJWPBWskQ1e/[email protected] http://lists.initd.org/mailman/listinfo/psycopg