On Mon, 15 Jan 2007, Fabio Tranchitella wrote:

severity 406941 serious

ACK.  I'm just a little bit careful when using severities.

According to the traceback, you have ZPsycopgDA:2 (from zope-psycopgda2)
installed in your instance but you do not have python-psycopg2 installed.

Yes, that made me curious and it was not the case.  I have python-psycopg
and python-psycopg2 installed (see below).

This is not possible for the package dependencies. Could you please send me
the output of:

$ dpkg -l | grep psycopg

$ dpkg -l | grep psycopg
ii  python-psycopg                      1.1.21-13                       Python 
module for PostgreSQL
ii  python-psycopg2                     2.0.5.1-5                       Python 
module for PostgreSQL
ii  zope-psycopgda                      1.1.21-13                       Zope 
database adapter based on python-psycopg

(When I tried the first time also zope-psycopgda2.  I just purged it to try
to avoid any conflict.)

$ dzhandle -z2.8 show-instance default

$ dzhandle -z2.8 show-instance default
default              2.8    addon-mode=all addon-technique=tree-linked 
userfile=inituser

Both zope-psycopgda2 and zope-psycopg provide the same zope product but
with two different version suffixes (ZPsycopgDA and ZPsycopgDA:2).

I'm a little bit unsure whether a Conflicts between both adapters
might be reasonable - at least deinstalling one or the other did not
help - I tried both.

This error occured when I had installed zope-psycopgda2 in parallel. I
purge zope-psycopgda2 because I expected a conflict because the module
tried to import psycopg2.pool.  Now the error message changed:

Import Traceback

Traceback (most recent call last):
  File "/usr/lib/zope2.8/lib/python/OFS/Application.py", line 695, in 
import_product
    product=__import__(pname, global_dict, global_dict, silly)
  File "/var/lib/zope2.8/instance/default/Products/ZPsycopgDA/__init__.py", 
line 92, in ?
    import DA
  File "/var/lib/zope2.8/instance/default/Products/ZPsycopgDA/DA.py", line 93, 
in ?
    from db import DB
  File "/var/lib/zope2.8/instance/default/Products/ZPsycopgDA/db.py", line 99, 
in ?
    import psycopg
ImportError: No module named psycopg

Now the zope product is right (the one from zope-psycopgda) but you do not
have installed python-psycopg.

No it is not - python-psycopg is always installed.  I definitely would not
deinstall it because it would break important applications.

Same as above, this can't happen for package dependencies.

... and it did not happen because of the dependencies.

If I just want to switch to zope-psycopgda2 I fail as well because
this product is not listed in the list of installed products at all.

Both packages (zope-psycopgda and zope-psycopgda2) provide the same zope
product but with different versions, so you can't install both in the same
instance. The right dzhandle commands for them are:

# dzhandle -z2.8 add-product default ZPsycopgDA

or either:

# dzhandle -z2.8 add-product default ZPsycopgDA:2

Ahh, so a conflict would make no sense because you can install them in
different instances.  Hmm, but anyhow both products seem do conflict in
my one and only default instance and we should try to find a way to
make sure that either only one of them will be installed in one
distance or that they provide different products.

Anyway, the behaviour you described is strange so I'd like to dig into it
to fix it before the etch release. For this reason, I'm upgrading the
severity of the bug report to serious.

Yea.  Just for the record - this happened after the upgrade last Friday
when I used your fixed zope-common package.

Kind regards

         Andreas.

--
http://fam-tille.de


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to