Hey,<br>       I finally reverted all the changes and fixed it like you said editing the DA.py in ZPsycoDA. thought i let you know about it. through this <br><br>if psycopg2.__version__[:6] not in ALLOWED_PSYCOPG_VERSIONS:<br>
<br>and then<br><br> if psycopg2.__version__.split(&#39; &#39;)[0] not in ALLOWED_PSYCOPG_VERSIONS:<br><br>ps: in changelog it shows that changes have been done by the author on 2009-05-19. but doesn&#39;t say which version.<br>
<br><br>Thanks<br>Amir<br><br>Tlc2<br><br><div class="gmail_quote">On Wed, Jul 1, 2009 at 8:51 PM, Thomas OConnor <span dir="ltr">&lt;<a href="mailto:Thomas.OConnor@newcastle.edu.au">Thomas.OConnor@newcastle.edu.au</a>&gt;</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;">Hi,<br>
<br>
I also experienced the problem this morning when trying to use the product ZPsycopgDA version 2.0.11 on Zope.  The error reported by Plone/Zope is:<br>
<br>
Error Value: psycopg version mismatch (imported 2.0.11 (dt dec ext pq3))<br>
<br>
Due to the fact it is extracting the first 5 characters (2.0.1) and comparing it to the full version (2.0.11), thus failing.<br>
<br>
Instead of changing the index to 6 (which would then break 2.0.8 versions, etc.), you can explode the string by spaces, then extract the first part:<br>
<br>
so the only change would be to line 119 of DA.py, from:<br>
        if psycopg2.__version__[:5] not in ALLOWED_PSYCOPG_VERSIONS:<br>
<br>
to:<br>
        if psycopg2.__version__.split(&#39; &#39;)[0] not in ALLOWED_PSYCOPG_VERSIONS:<br>
<br>
No other changes to the versions definition would be required.<br>
<br>
This will be both backwards and forwards compatible with all versions from 0.0.0 to 999.999.999 (well, infinity really)!<br>
<br>
Keep up the good work.<br>
<br>
Cheers,<br>
<br>
Tom<br>
<br>
--<br>
Thomas O&#39;Connor<br>
Web developer<br>
<br>
(02) 498 54130<br>
<a href="mailto:Thomas.OConnor@newcastle.edu.au">Thomas.OConnor@newcastle.edu.au</a><br>
<br>
Office of IT Services<br>
Bar on the Hill Building<br>
UoN Services Limited<br>
University Drive<br>
Callaghan NSW 2308<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>