Bug#812256: zope-mysqlda: failure to import zope-mysqlda, either from python interpretor or as a zope product
Fred Drueck
fdruec1 at uic.edu
Fri Jan 22 03:43:11 UTC 2016
Package: zope-mysqlda
Version: 3.1.1-1
Severity: normal
Dear Maintainer,
* What led up to the situation?
I've been trying to migrate an existing zope instance running using
zope-2.13 to a new server using the debian zope packages. The old
instance uses the ZMySQLDA product provide by the zope-mysqlda
package. So I've tried to install it. I cannot import it either into
the python interprettor or into a running zope instance.
The specific ImportErrors reported by ipython when I tried to import
the packages changed after installing packages. Here's my first
traceback:
In [1]: import zope
In [2]: import ZMySQLDA
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-2-84ece5859717> in <module>()
----> 1 import ZMySQLDA
/usr/share/zope/Products/ZMySQLDA/__init__.py in <module>()
88 __version__='$Revision: 542 $'[11:-2]
89
---> 90 import DA
91
92 misc_=DA.misc_
/usr/share/zope/Products/ZMySQLDA/DA.py in <module>()
90
91 import os, os.path
---> 92 from db import DBPool, DB
93 from thread import allocate_lock
94
/usr/share/zope/Products/ZMySQLDA/db.py in <module>()
106 from MySQLdb.converters import conversions
107 from MySQLdb.constants import FIELD_TYPE, CR, ER, CLIENT, FLAG
--> 108 from ZODB.POSException import ConflictError
109 from DateTime import DateTime
110
ImportError: No module named ZODB.POSException
After installing a few more python-zope* packages, I now recieve a
different traceback:
import zope
In [3]: import ZMySQLDA
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-3-84ece5859717> in <module>()
----> 1 import ZMySQLDA
/usr/share/zope/Products/ZMySQLDA/__init__.py in <module>()
88 __version__='$Revision: 542 $'[11:-2]
89
---> 90 import DA
91
92 misc_=DA.misc_
/usr/share/zope/Products/ZMySQLDA/DA.py in <module>()
90
91 import os, os.path
---> 92 from db import DBPool, DB
93 from thread import allocate_lock
94
/usr/share/zope/Products/ZMySQLDA/db.py in <module>()
107 from MySQLdb.constants import FIELD_TYPE, CR, ER, CLIENT, FLAG
108 from ZODB.POSException import ConflictError
--> 109 from DateTime import DateTime
110
111 from thread import get_ident, allocate_lock
ImportError: No module named DateTime
Below is my aptitude log, listing packages I installed between my 2
import attempts:
Aptitude 0.6.11: log report
Thu, Jan 21 2016 20:28:01 -0600
IMPORTANT: this log only lists intended actions; actions which fail due to
dpkg problems may not be completed.
Will install 1 packages, and remove 0 packages.
138 kB of disk space will be used
===============================================================================
[INSTALL] zope-replacesupport:amd64
===============================================================================
Log complete.
Aptitude 0.6.11: log report
Thu, Jan 21 2016 20:29:16 -0600
IMPORTANT: this log only lists intended actions; actions which fail due to
dpkg problems may not be completed.
Will install 0 packages, and remove 0 packages.
===============================================================================
===============================================================================
Log complete.
Aptitude 0.6.11: log report
Thu, Jan 21 2016 20:37:50 -0600
IMPORTANT: this log only lists intended actions; actions which fail due to
dpkg problems may not be completed.
Will install 1 packages, and remove 0 packages.
===============================================================================
[REINSTALL] zope-mysqlda:amd64
===============================================================================
Log complete.
Aptitude 0.6.11: log report
Thu, Jan 21 2016 20:56:46 -0600
IMPORTANT: this log only lists intended actions; actions which fail due to
dpkg problems may not be completed.
Will install 8 packages, and remove 0 packages.
5,626 kB of disk space will be used
===============================================================================
[INSTALL, DEPENDENCIES] python-persistent:amd64
[INSTALL, DEPENDENCIES] python-transaction:amd64
[INSTALL, DEPENDENCIES] python-zc.lockfile:amd64
[INSTALL, DEPENDENCIES] python-zconfig:amd64
[INSTALL, DEPENDENCIES] python-zdaemon:amd64
[INSTALL, DEPENDENCIES] python-zope.event:amd64
[INSTALL, DEPENDENCIES] python-zope.proxy:amd64
[INSTALL] python-zodb:amd64
===============================================================================
Log complete.
Aptitude 0.6.11: log report
Thu, Jan 21 2016 21:10:10 -0600
IMPORTANT: this log only lists intended actions; actions which fail due to
dpkg problems may not be completed.
Will install 2 packages, and remove 0 packages.
719 kB of disk space will be used
===============================================================================
[INSTALL, DEPENDENCIES] python-egenix-mxtools:amd64
[INSTALL] python-egenix-mxdatetime:amd64
===============================================================================
Log complete.
Aptitude 0.6.11: log report
Thu, Jan 21 2016 21:12:07 -0600
IMPORTANT: this log only lists intended actions; actions which fail due to
dpkg problems may not be completed.
Will install 1 packages, and remove 0 packages.
362 kB of disk space will be used
===============================================================================
[INSTALL] python-zope.schema:amd64
===============================================================================
Log complete.
Aptitude 0.6.11: log report
Thu, Jan 21 2016 21:12:29 -0600
IMPORTANT: this log only lists intended actions; actions which fail due to
dpkg problems may not be completed.
Will install 0 packages, and remove 0 packages.
===============================================================================
===============================================================================
(end aptitude.log excerpt)
The errors logged to my zope instance's event.log are also different,
though these appear to have remained the same after having installed
extra packages.
Here's the traceback in the zope event.log for my instance:
2016-01-21T20:38:04 ERROR Application Could not import Products.ZMySQLDA
Traceback (most recent call last):
File "/usr/lib/zope2.13/lib/python/Zope2-2.13.22.egg/OFS/Application.py", line 606, in import_product
product=__import__(pname, global_dict, global_dict, silly)
File "/var/lib/zope2.13/instance/mscs-instance/Products/ZMySQLDA/__init__.py", line 90, in <module>
import DA
File "/var/lib/zope2.13/instance/mscs-instance/Products/ZMySQLDA/DA.py", line 92, in <module>
from db import DBPool, DB
File "/var/lib/zope2.13/instance/mscs-instance/Products/ZMySQLDA/db.py", line 114, in <module>
from joinTM import joinTM
File "/var/lib/zope2.13/instance/mscs-instance/Products/ZMySQLDA/joinTM.py", line 3, in <module>
from Shared.DC.ZRDB.TM import TM
ImportError: No module named ZRDB.TM
------
2016-01-21T20:38:04 ERROR Application Couldn't install ZMySQLDA
Traceback (most recent call last):
File "/usr/lib/zope2.13/lib/python/Zope2-2.13.22.egg/OFS/Application.py", line 658, in install_product
global_dict, global_dict, silly)
File "/var/lib/zope2.13/instance/mscs-instance/Products/ZMySQLDA/__init__.py", line 90, in <module>
import DA
File "/var/lib/zope2.13/instance/mscs-instance/Products/ZMySQLDA/DA.py", line 92, in <module>
from db import DBPool, DB
File "/var/lib/zope2.13/instance/mscs-instance/Products/ZMySQLDA/db.py", line 114, in <module>
from joinTM import joinTM
File "/var/lib/zope2.13/instance/mscs-instance/Products/ZMySQLDA/joinTM.py", line 3, in <module>
from Shared.DC.ZRDB.TM import TM
ImportError: No module named ZRDB.TM
(end event.log excerpt)
I'm still investigating why this zope product does not seem to be
importable, but I my working theory is that there is probably a
missing dependancy I must track down.
here's the output of
# aptitude search zope |grep ^i
i A python-zope.event - Very basic event publishing system
i python-zope.interface - Interfaces for Python
i A python-zope.proxy - Generic transparent proxies for Python
i python-zope.schema - zope.interface extension for defining data
i A zope-common - common settings and scripts for Zope insta
i zope-mysqlda - database adapter for connecting Zope and M
i zope-replacesupport - Add search and replace functionality to TT
i zope2.13 - Open Source Web Application Server
-- System Information:
Debian Release: 8.2
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.16.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages zope-mysqlda depends on:
ii python-mysqldb 1.2.3-2.1
ii zope-common 0.5.54
ii zope2.13 2.13.22-1
zope-mysqlda recommends no packages.
zope-mysqlda suggests no packages.
-- no debconf information
More information about the pkg-zope-developers
mailing list