severity 406941 serious
thanks

Hi Andreas,

* 2007-01-15 08:32, Andreas Tille wrote:
> Package: zope-psycopgda
> Version: 1.1.21-13
> Severity: important
> 
> 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 23, in ?
>     import DA
>   File "/var/lib/zope2.8/instance/default/Products/ZPsycopgDA/DA.py", line 
> 25, in ?
>     import db
>   File "/var/lib/zope2.8/instance/default/Products/ZPsycopgDA/db.py", line 
> 26, in ?
>     import pool
>   File "/var/lib/zope2.8/instance/default/Products/ZPsycopgDA/pool.py", line 
> 24, in ?
>     import psycopg2.pool
> ImportError: No module named psycopg2.pool

According to the traceback, you have ZPsycopgDA:2 (from zope-psycopgda2)
installed in your instance but you do not have python-psycopg2 installed.
This is not possible for the package dependencies. Could you please send me
the output of:

$ dpkg -l | grep psycopg
$ dzhandle -z2.8 show-instance default

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

> 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. Same as above, this can't happen for package
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

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.

Thanks,

-- 
Fabio Tranchitella                         http://www.kobold.it
Free Software Developer and Consultant     http://www.tranchitella.it
_____________________________________________________________________
1024D/7F961564, fpr 5465 6E69 E559 6466 BF3D 9F01 2BF8 EE2B 7F96 1564

Attachment: signature.asc
Description: Digital signature

Reply via email to