Hey,<br> yes i have it installed at instance/Python-2.4.3/lib/python2.4/site-packages/psycopg2 and i had also moved the adapter to the<br>instance/client1/Products folder, but still it is giving me the version mismatch error. Also i checked the psycopg* in my system but <br>
over there also i can see that it is correct version that has been installed /usr/lib/python2.4/site-packages/psycopg2 . <br><br>Regards,<br>Amir<br><br>tlc2<br><br><div class="gmail_quote">On Tue, Jun 23, 2009 at 3:41 PM, Thomas Bennett <span dir="ltr"><<a href="mailto:bennetttm@appstate.edu">bennetttm@appstate.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Have you installed psycopg2 2.0.11, not the adapter but the library for<br>
python? and is it in the python path for your Zope python?<br>
<br>
I'm thinking you have psycopg not psycopg2 installed as your python library<br>
and the psycopg2 adapter. There is no psycopg 2.0.11.<br>
<br>
I am assuming this is still how psycopg is installed, the library and the DA<br>
product.<br>
<br>
<a href="http://initd.org/pub/software/psycopg/" target="_blank">http://initd.org/pub/software/psycopg/</a><br>
<br>
<br>
Thomas<br>
<div><div></div><div class="h5"><br>
<br>
<br>
On Tuesday 23 June 2009 16:06:03 Amir wrote:<br>
> Hi,<br>
> I have (Zope 2.9.4-final, python 2.4.3, linux2) and I have used<br>
> psycopg2.0.11 adapter to connect Zope to Postgresql but I am getting this<br>
> error when I try to add the connection object the error is :-<br>
><br>
> Error Type: ImportError<br>
><br>
> Error Value: psycopg version mismatch (imported 2.0.11 (dt dec ext pq3))<br>
><br>
> while the event log traceback shows that :-<br>
><br>
> 2009-06-23T10:55:49 ERROR Shared.DC.ZRDB.Connection Error connecting to<br>
> relational database.<br>
> Traceback (most recent call last):<br>
> File "/opt/Plone-2.5/lib/python/Shared/DC/ZRDB/Connection.py", line 71,<br>
> in __setstate__<br>
> try: self.connect(self.connection_string)<br>
> File "/opt/Plone-2.5/zeocluster/client1/Products/ZPsycopgDA/DA.py", line<br>
> 120, in connect<br>
> raise ImportError("psycopg version mismatch (imported %s)" %<br>
> ImportError: psycopg version mismatch (imported 2.0.11 (dt dec ext pq3))<br>
><br>
> I would appreciate for an answer asap.<br>
><br>
> Thanks<br>
> Amir<br>
><br>
> tlc2<br>
><br>
</div></div>> ***<br>
> *<br>
<br>
--<br>
Normally I'm against big things,<br>
I think the world is going to be saved by millions of small things.<br>
Too many things can go wrong when they get big.<br>
- Pete Seeger at his 90th birthday party Sunday May 3, 2009<br>
<br>
==========================================<br>
Thomas McMillan Grant Bennett Appalachian State University<br>
Operations & Systems Analyst P O Box 32026<br>
University Library Boone, North Carolina 28608<br>
(828) 262 6587<br>
<br>
Library Systems Help Desk: <a href="https://www.library.appstate.edu/help/" target="_blank">https://www.library.appstate.edu/help/</a><br>
==========================================<br>
_______________________________________________<br>
Zope maillist - <a href="mailto:Zope@zope.org">Zope@zope.org</a><br>
<a href="http://mail.zope.org/mailman/listinfo/zope" target="_blank">http://mail.zope.org/mailman/listinfo/zope</a><br>
** No cross posts or HTML encoding! **<br>
(Related lists -<br>
<a href="http://mail.zope.org/mailman/listinfo/zope-announce" target="_blank">http://mail.zope.org/mailman/listinfo/zope-announce</a><br>
<a href="http://mail.zope.org/mailman/listinfo/zope-dev" target="_blank">http://mail.zope.org/mailman/listinfo/zope-dev</a> )<br>
</blockquote></div><br>