Bug#406941: zope-psycopgda: Broken product ZPsycopgDA
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 signature.asc Description: Digital signature
Bug#406941: zope-psycopgda: Broken product ZPsycopgDA
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.8addon-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]
Bug#406941: zope-psycopgda: Broken product ZPsycopgDA
Hi Andreas, * 2007-01-15 10:15, Andreas Tille wrote: $ dzhandle -z2.8 show-instance default default 2.8addon-mode=all addon-technique=tree-linked userfile=inituser If the instance is in addon-mode all, then every zope-* package which is installed will be added to the instance. I suppose your first installed package was zope-psycopgda2 (and this is the reason why the first traceback talks about ZPsycopgDA2), then you purged it and installed zope-psycopgda (and this is the reason why the second traceback is related to ZPsycopgDA). At this point, everything is more clear to me: you are running a zope 2.8 instance which uses python2.3 but both python-psycopg and python-psycopg2 do not support python2.3 anymore. The reason for this choice is related to the python policy (we'll support only python2.3 in etch) and obviously there is no zope2.8 package in etch at the moment so the problem is triggered by your old zope package. Could you please confirm me the diagnosis? :) I think the only reasonable thing to do is to drop support for zope2.7 and zope2.8 from zope-psycopgda and zope-psycopgda2. In this way, it won't be possible to install them in zope2.[78] instances (which is the right thing according to the etch python policy). 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 signature.asc Description: Digital signature
Bug#406941: zope-psycopgda: Broken product ZPsycopgDA
On Mon, 15 Jan 2007, Fabio Tranchitella wrote: At this point, everything is more clear to me: you are running a zope 2.8 instance which uses python2.3 but both python-psycopg and python-psycopg2 do not support python2.3 anymore. Sounds like a very reasonable explanation. The reason for this choice is related to the python policy (we'll support only python2.3 in etch) and obviously I guess you meant: s/2.3/2.4/ there is no zope2.8 package in etch at the moment so the problem is triggered by your old zope package. Well, even if I wanted to stik to this verison this is my personal problem. If we do not support 2.8 than I have to cope with this. Could you please confirm me the diagnosis? :) Perfect. I think the only reasonable thing to do is to drop support for zope2.7 and zope2.8 from zope-psycopgda and zope-psycopgda2. In this way, it won't be possible to install them in zope2.[78] instances (which is the right thing according to the etch python policy). Yes. This would fix the bug. This would definitely notify people who want to stick to older versions to grab for backports (or even snapshot.net). Kind regard and thanks for your quick response Andreas. -- http://fam-tille.de -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#406941: zope-psycopgda: Broken product ZPsycopgDA
* 2007-01-15 11:34, Andreas Tille wrote: The reason for this choice is related to the python policy (we'll support only python2.3 in etch) and obviously I guess you meant: s/2.3/2.4/ Sure, sorry. I think the only reasonable thing to do is to drop support for zope2.7 and zope2.8 from zope-psycopgda and zope-psycopgda2. In this way, it won't be possible to install them in zope2.[78] instances (which is the right thing according to the etch python policy). Yes. This would fix the bug. This would definitely notify people who want to stick to older versions to grab for backports (or even snapshot.net). Kind regard and thanks for your quick response Thanks for your real-time feedback, I'm uploading the fix. 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 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#406941: zope-psycopgda: Broken product ZPsycopgDA
Package: zope-psycopgda Version: 1.1.21-13 Severity: important Hi, after upgrading zope-psycopgda Zope ZMI showed in /Control_Panel/Products/ZPsycopgDA : 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 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 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. Kind regards Andreas. -- System Information: Debian Release: 4.0 APT prefers testing APT policy: (501, 'testing'), (50, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.17-1-686 Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15) Versions of packages zope-psycopgda depends on: ii python-psycopg1.1.21-13 Python module for PostgreSQL ii zope-common 0.5.30 common settings and scripts for zo ii zope2.8 2.8.8-2Open Source Web Application Server zope-psycopgda recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]