Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Zope: DB

Getting ZPsycopg 2 working

 

 

Zope db RSS feed   Index | Next | Previous | View Threaded


jgentry at jimmy

Oct 30, 2007, 1:11 PM

Post #1 of 2 (573 views)
Permalink
Getting ZPsycopg 2 working

Hi there ...

I recently was looking at trying to transition to using psycopg2 from
psycopg, and installed that in a Zope instance (2.9.4-final, I realized
that's old). The problem is that it doesn't seem to like my connection
strings (well, that might not be the problem as I get the same error even
with leaving that blank). This is using psycopg2-2.0.6b2. A traceback:

2007-10-30T14:19:33 ERROR Zope.SiteErrorLog
http://sgdi:25001/manage_addProduct/ZPsycopgDA/manage_addZPsycopgConnection
Traceback (innermost last):
Module ZPublisher.Publish, line 115, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 41, in call_object
Module Products.ZPsycopgDA.DA, line 66, in manage_addZPsycopgConnection
Module Products.ZPsycopgDA.DA, line 86, in __init__
Module Products.ZPsycopgDA.DA, line 101, in edit
AttributeError: set_type_casts

I should note that going in via the python shell works. I was able to
create a connection and extract data from a table that way.

Any ideas? Is 2.9.4 too old for this version of psycopg? I don't see any
note of this (except a mention in the psycopg2 FAQ which indicates that it
should work fine, but I know those sorts of things don't always stay up to
date).

Thanks
-J

_______________________________________________
Zope-DB mailing list
Zope-DB[at]zope.org
http://mail.zope.org/mailman/listinfo/zope-db


jgentry at jimmy

Oct 31, 2007, 8:48 AM

Post #2 of 2 (524 views)
Permalink
Re: Getting ZPsycopg 2 working [In reply to]

Sorry all - realized that the "b" in 2.0.6b2 stood for 'beta' and went to
2.0.5, which works fine.


_______________________________________________
Zope-DB mailing list
Zope-DB[at]zope.org
http://mail.zope.org/mailman/listinfo/zope-db

Zope db RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.