Hi, I am trying to upgrade an old 2.10 instance to 2.13, and I appear to be having trouble with the Psycopg connection and ZSQL methods. First of all, it took some work to uncover that I had to download the source code for Psycopg in order to get the ZPsycopgDA zope product (easy_install psycopg2 didn't give it to me). Second, it took some more work to uncover that I had to separately install the ZSQLMethods product. I think it would be helpful if these facts would be mentioned at http://docs.zope.org/zope2/zope2book/RelationalDatabases.html which just says "PostgreSQL: The newest and prefered DA is ZPsycopgDA included in psycopg." However, I've gotten past that stage, and I can create database connections and ZSQL methods which seem to work. However, the existing ZSQL methods and/or database connection in my (copied over) old Data.fs are still causing problems. Whenever I try to view a page which calls one of those methods, or even try to navigate in the ZMI to the folder *containing* them, I get the error TypeError: ('argument list must be a tuple', <class 'Shared.DC.ZRDB.DA.SQL'>, None) The only help I've been able to find online is this brief exchange: http://comments.gmane.org/gmane.comp.web.zope.general/63079 which might be helpful to me if I knew what "_p_changed = 1 or some such" meant. Can anyone help? Thanks! Mike
On 09/02/2011 11:12 PM, Michael Shulman wrote:
Second, it took some more work to uncover that I had to separately install the ZSQLMethods product. Michael, I can't help you with your issue but I got stuck in the upgrade since I didn't manage to install the ZSQLMethods. Can you tell which procedure did you follow?
Regards, Fernando
I have my new Zope 2.13 installed in a virtualenv, as the docs suggest, and inside of that I said bin/easy_install Products.ZSQLMethods which seemed to work (at least, it changed the error message I was getting). Mike On Fri, Sep 2, 2011 at 5:46 PM, Fernando Martins <fernando@cmartins.nl> wrote:
On 09/02/2011 11:12 PM, Michael Shulman wrote:
Second, it took some more work to uncover that I had to separately install the ZSQLMethods product. Michael, I can't help you with your issue but I got stuck in the upgrade since I didn't manage to install the ZSQLMethods. Can you tell which procedure did you follow?
Regards, Fernando _______________________________________________ Zope maillist - Zope@zope.org https://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - https://mail.zope.org/mailman/listinfo/zope-announce https://mail.zope.org/mailman/listinfo/zope-dev )
participants (2)
-
Fernando Martins -
Michael Shulman