Hey,
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
if psycopg2.__version__[:6] not in ALLOWED_PSYCOPG_VERSIONS:
and then
if psycopg2.__version__.split(' ')[0] not in ALLOWED_PSYCOPG_VERSIONS:
Hi,
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:
Error Value: psycopg version mismatch (imported 2.0.11 (dt dec ext pq3))
Due to the fact it is extracting the first 5 characters (2.0.1) and
I had the same problem but found that if I just modified the list of
acceptable psycopg versions everything worked fine.
Rowan
Amir wrote:
Hey,
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
Things that i have noticed
1)running and importing psycopg2
gives this error
Traceback (most recent call last):
File stdin, line 1, in ?
File /usr/lib/python2.4/site-packages/psycopg2/__init__.py, line 60, in
?
from _psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID
ImportError:
Ok, look at the error message again. It says
raise ImportError(psycopg version mismatch (imported %s) %
ImportError: psycopg version mismatch (imported 2.0.11 (dt dec ext pq3))
so the version being reported back is '2.0.11 (dt dec ext pq3)' not '2.0.11'
Rowan
Amir wrote:
Things that i have
Hi,
I have (Zope 2.9.4-final, python 2.4.3, linux2) and I have used
psycopg2.0.11 adapter to connect Zope to Postgresql but I am getting this
error when I try to add the connection object the error is :-
Error Type: ImportError
Error Value: psycopg version mismatch (imported 2.0.11 (dt dec
Have you installed psycopg2 2.0.11, not the adapter but the library for
python? and is it in the python path for your Zope python?
I'm thinking you have psycopg not psycopg2 installed as your python library
and the psycopg2 adapter. There is no psycopg 2.0.11.
I am assuming this is still how