[Zope-DB] Zope and PostgreSQL in windows

vaibhav uprety uprety_vaibhav at yahoo.co.in
Wed Sep 15 05:33:10 EDT 2004


Hi,

I want to facilitate connection between zope and
postgreSQL in windows.
I am using Zope-2.7.0 and have installed
Postgresql-8.0 
I have also installled "psycopg" database driver.
Then i copied "ZpsycopgDA" into the products directory
of Zope instance home.

But when i tried to start Zope it gave the following
error message
------------------------------------------------------
2004-09-15T14:53:33 ERROR(200) Zope Could not import
Products.ZPsycopgDA
Traceback (most recent call last):
  File "D:\Zope-2.7.0\lib\python\OFS\Application.py",
line 654, in import_produc
t
    product=__import__(pname, global_dict,
global_dict, silly)
  File
"d:\instance_home\Products\ZPsycopgDA\__init__.py",
line 92, in ?
    import DA
  File "d:\instance_home\Products\ZPsycopgDA\DA.py",
line 94, in ?
    from db import DB
  File "d:\instance_home\Products\ZPsycopgDA\db.py",
line 100, in ?
    from psycopg import NUMBER, STRING, INTEGER,
FLOAT, DATETIME
ImportError: cannot import name INTEGER
------------------------------------------------------

Please help me correct this problem.

REGARDS
VAIBHAV UPRETY

________________________________________________________________________
Yahoo! India Matrimony: Find your life partner online
Go to: http://yahoo.shaadi.com/india-matrimony


More information about the Zope-DB mailing list