[ZCM] [ZC] 1735/ 2 Resolve "UnicodeError masks other startup errors"

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin at zope.org
Thu May 5 06:43:06 EDT 2005


Issue #1735 Update (Resolve) "UnicodeError masks other startup errors"
 Status Resolved, Zope/bug medium
To followup, visit:
  http://www.zope.org/Collectors/Zope/1735

==============================================================
= Resolve - Entry #2 by ajung on May 5, 2005 6:43 am

 Status: Pending => Resolved

Fixed for 2.7.7, 2.8b2
________________________________________
= Request - Entry #1 by gagenellina on Mar 23, 2005 5:49 pm

In (Zope)\lib\python\ZConfig\loader.py, method  schemaComponentSource, there is an import:

        try:
            __import__(package)
        except ImportError, e:
            raise ZConfig.SchemaError("could not load package %s: %s"
                                      % (package, str(e)))

str(e) fails if the message (possibly coming from the OS) contains non-ascii characters, giving error:
 UnicodeDecodeError: 'ascii' codec can't decode byte 0xa0 in position 14: ordinal not in range(128)

and masking the original error (can't load package xxx).
==============================================================



More information about the Zope-Collector-Monitor mailing list