ImportError: No module named zgettext

Klaus Alexander Seistrup klaus at seistrup.dk
Tue May 3 18:53:26 UTC 2005


Package: zope-localizer
Version: 1.0.1-8ubuntu1
Severity: grave
Justification: renders package unusable


After installation of zope-localizer ZMI :: Control_Panel :: Products shows a broken Localizer product.  Clicking on the "broken" icon yields an ImportError exception:

#v+

Import Traceback

Traceback (most recent call last):
  File "/usr/lib/zope/lib/python/OFS/Application.py", line 523, in import_product
    product=__import__(pname, global_dict, global_dict, silly)
      File "/usr/lib/zope/lib/python/Products/Localizer/__init__.py", line 285, in ?
    import Localizer, LocalContent, MessageCatalog, LocalFolder
      File "/usr/lib/zope/lib/python/Products/Localizer/Localizer.py", line 36, in ?
    from MessageCatalog import MessageCatalog
      File "/usr/lib/zope/lib/python/Products/Localizer/MessageCatalog.py", line 39, in ?
    from zgettext import parse_po_file
ImportError: No module named zgettext

#v-

But:

#v+

klaus at home:~ $ ls -l /usr/share/zope/Products/Localizer/ | tail -1
lrwxrwxrwx  1 root root    13 2005-05-03 20:20 zgettext.py -> /bin/zgettext
klaus at home:~ $ 

#v-

The symlink points to /bin/zgettext but should have pointed to /usr/bin/zgettext.  Please correct.

-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.10-5-k7
Locale: LANG=en_DK, LC_CTYPE=en_DK (charmap=ISO-8859-1)

Versions of packages zope-localizer depends on:
ii  zope                    2.6.4-1.6ubuntu1 Open Source Web Application Server
ii  zope-common             0.5              common settings and scripts for zo

-- no debconf information




More information about the ubuntu-users mailing list