[Zope-DB] Zope and ZPsycopgDA almost working...
Tamir Halperin
tamir@brobus.net
Tue, 25 Mar 2003 12:32:47 -0500
I did as you instructed...
> -----Original Message-----
> From: Charlie Clark [mailto:charlie@begeistert.org]
> Sent: Tuesday, March 25, 2003 12:23 PM
> To: Tamir Halperin
> Cc: Zope Database Mailing List
> Subject: RE: [Zope-DB] Zope and ZPsycopgDA almost working...
>=20
> On 2003-03-25 at 18:11:39 [+0100], you wrote:
> > Sorry, Charlie (couldn't resist),
> >=20
> > I'm not that proficient in Python to simply "...check that you can=20
> > connect to the DB with psycopg in Python." A little step by step=20
> > intruction will go a long way here at this point.
> >=20
> > I've taken care of Zope part. The product appears unbroken in the=20
> > Products list.
> Sounds like you're missing psycopg
>=20
> > Furthermore, the fact that psycopg.OperationalError is=20
> properly raising=20
> > an error message that indicates the "target machine=20
> actively refused it"=20
> > strongly suggests, I think, that psycopg is behaving=20
> normally from within=20
> > Zope.
> >=20
> > All your help is valuable so please feel free to spoil me with it.
>=20
>=20
> What you need to is to start a python session in a DOS window
>=20
> ie. your_path_to_zope\bin\python
> then try=20
> import psycopg
The command prompt (>>>) came right back and I received no errors of any =
kind.
> Do you know how many Python installations you have on your machine?
As far as I know, Python was never installed on that system. Only Zope =
was installed. Here's what I get back when I search for py*.exe:
Microsoft(R) Windows DOS
(C)Copyright Microsoft Corp 1990-1999.
C:\>dir py*.exe /s
Volume in drive C has no label.
Volume Serial Number is 2491-80AE
Directory of C:\WINNT\system32\dllcache
12/07/1999 08:00a 3,442,432 pyime.exe
1 File(s) 3,442,432 bytes
Directory of C:\Program Files\Sandbox\bin
01/25/2002 01:42p 20,539 python.exe
01/25/2002 01:42p 20,540 pythonw.exe
2 File(s) 41,079 bytes
Directory of C:\Program Files\Sandbox\bin\lib\win32
06/22/2001 10:47a 28,734 PythonService.exe
1 File(s) 28,734 bytes
Total Files Listed:
4 File(s) 3,512,245 bytes
0 Dir(s) 517,283,840 bytes free