KeyError: 'zope' repeated many times one every execution of python
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zope.app.pagetemplate (Ubuntu) |
Fix Released
|
High
|
Gediminas Paulauskas |
Bug Description
If any python-zope.app.* package is installed, I start to get lots of errors in the terminal when starting any python program:
Selecting previously deselected package python-zope.error.
Unpacking python-zope.error (from .../python-
Selecting previously deselected package python-
Unpacking python-
Processing triggers for man-db ...
Setting up python-central (0.6.17) ...
Setting up python-setuptools (0.6.16-1) ...
Error processing line 2 of /usr/lib/
Traceback (most recent call last):
File "/usr/lib/
exec line
File "<string>", line 1, in <module>
KeyError: 'zope'
Remainder of file ignored
Error processing line 2 of /usr/lib/
Traceback (most recent call last):
File "/usr/lib/
exec line
File "<string>", line 1, in <module>
KeyError: 'zope'
Remainder of file ignored
Setting up python-transaction (1.1.1-0ubuntu2) ...
This is because zope.interface installs a zope/__init__.py file, and this breaks the .pth files.
dh_python2 now has a namespace feature, that solves this problem UNLESS a package installs it's own namespace __init__.py file.
But the new dh_python2 in oneiric solves the problem of namespace __init__.py files, and we do not need this hack any more.