[Zope3-dev] Zope3 sandbox with cygwin

Grégoire Weber gregoire.weber@switzerland.org
Thu, 28 Nov 2002 16:21:27 +0100


Sorry people,

not able to start z3.py on Win2k (built with cygwin, se below). 
I get the following messages (using principals.zcml.in as 
principals.zcml).

Pointers?

Greg

$ python z3.py
Traceback (most recent call last):
  File "z3.py", line 68, in ?
    run()
  File "z3.py", line 47, in run
    config('site.zcml')
  File "/cygdrive/e/user/greg/data/zope3-dev/Zope3/lib/python/Zope/App/_app.py", line 40, in config
    XMLConfig(file)()
  File "/cygdrive/e/user/greg/data/zope3-dev/Zope3/lib/python/Zope/Configuration/xmlconfig.py", line
 283, in __init__
    self._directives)
  File "/cygdrive/e/user/greg/data/zope3-dev/Zope3/lib/python/Zope/Configuration/xmlconfig.py", line
 231, in xmlconfig
    parser.parse(src)
  File "/tmp/python.3132/usr/lib/python2.2/xml/sax/expatreader.py", line 91, in parse
  File "/tmp/python.3132/usr/lib/python2.2/xml/sax/xmlreader.py", line 123, in parse
  File "/tmp/python.3132/usr/lib/python2.2/xml/sax/expatreader.py", line 144, in feed
  File "/tmp/python.3132/usr/lib/python2.2/xml/sax/expatreader.py", line 253, in start_element_ns
  File "/cygdrive/e/user/greg/data/zope3-dev/Zope3/lib/python/Zope/Configuration/xmlconfig.py", line
 112, in startElementNS
    stack.append(
  File "/cygdrive/e/user/greg/data/zope3-dev/Zope3/lib/python/Zope/Configuration/meta.py", line 207,
 in begin
    return _exe(callable, subs, _context, kw)
  File "/cygdrive/e/user/greg/data/zope3-dev/Zope3/lib/python/Zope/Configuration/meta.py", line 162,
 in _exe
    r = callable(context, **kw)
  File "/cygdrive/e/user/greg/data/zope3-dev/Zope3/lib/python/Zope/Configuration/xmlconfig.py", line
 313, in include
    self._directives)
  File "/cygdrive/e/user/greg/data/zope3-dev/Zope3/lib/python/Zope/Configuration/xmlconfig.py", line
 231, in xmlconfig
    parser.parse(src)
  File "/tmp/python.3132/usr/lib/python2.2/xml/sax/expatreader.py", line 91, in parse
  File "/tmp/python.3132/usr/lib/python2.2/xml/sax/xmlreader.py", line 123, in parse
  File "/tmp/python.3132/usr/lib/python2.2/xml/sax/expatreader.py", line 144, in feed
  File "/tmp/python.3132/usr/lib/python2.2/xml/sax/expatreader.py", line 253, in start_element_ns
  File "/cygdrive/e/user/greg/data/zope3-dev/Zope3/lib/python/Zope/Configuration/xmlconfig.py", line
 112, in startElementNS
    stack.append(
  File "/cygdrive/e/user/greg/data/zope3-dev/Zope3/lib/python/Zope/Configuration/meta.py", line 207,
 in begin
    return _exe(callable, subs, _context, kw)
  File "/cygdrive/e/user/greg/data/zope3-dev/Zope3/lib/python/Zope/Configuration/meta.py", line 162,
 in _exe
    r = callable(context, **kw)
  File "/cygdrive/e/user/greg/data/zope3-dev/Zope3/lib/python/Zope/Configuration/xmlconfig.py", line
 313, in include
    self._directives)
  File "/cygdrive/e/user/greg/data/zope3-dev/Zope3/lib/python/Zope/Configuration/xmlconfig.py", line
 231, in xmlconfig
    parser.parse(src)
  File "/tmp/python.3132/usr/lib/python2.2/xml/sax/expatreader.py", line 91, in parse
  File "/tmp/python.3132/usr/lib/python2.2/xml/sax/xmlreader.py", line 123, in parse
  File "/tmp/python.3132/usr/lib/python2.2/xml/sax/expatreader.py", line 144, in feed
  File "/tmp/python.3132/usr/lib/python2.2/xml/sax/expatreader.py", line 253, in start_element_ns
  File "/cygdrive/e/user/greg/data/zope3-dev/Zope3/lib/python/Zope/Configuration/xmlconfig.py", line
 112, in startElementNS
    stack.append(
  File "/cygdrive/e/user/greg/data/zope3-dev/Zope3/lib/python/Zope/Configuration/meta.py", line 207,
 in begin
    return _exe(callable, subs, _context, kw)
  File "/cygdrive/e/user/greg/data/zope3-dev/Zope3/lib/python/Zope/Configuration/meta.py", line 162,
 in _exe
    r = callable(context, **kw)
  File "/cygdrive/e/user/greg/data/zope3-dev/Zope3/lib/python/Zope/Configuration/xmlconfig.py", line
 313, in include
    self._directives)
  File "/cygdrive/e/user/greg/data/zope3-dev/Zope3/lib/python/Zope/Configuration/xmlconfig.py", line
 231, in xmlconfig
    parser.parse(src)
  File "/tmp/python.3132/usr/lib/python2.2/xml/sax/expatreader.py", line 91, in parse
  File "/tmp/python.3132/usr/lib/python2.2/xml/sax/xmlreader.py", line 123, in parse
  File "/tmp/python.3132/usr/lib/python2.2/xml/sax/expatreader.py", line 144, in feed
  File "/tmp/python.3132/usr/lib/python2.2/xml/sax/expatreader.py", line 253, in start_element_ns
  File "/cygdrive/e/user/greg/data/zope3-dev/Zope3/lib/python/Zope/Configuration/xmlconfig.py", line
 112, in startElementNS
    stack.append(
  File "/cygdrive/e/user/greg/data/zope3-dev/Zope3/lib/python/Zope/Configuration/meta.py", line 207,
 in begin
    return _exe(callable, subs, _context, kw)
  File "/cygdrive/e/user/greg/data/zope3-dev/Zope3/lib/python/Zope/Configuration/meta.py", line 162,
 in _exe
    r = callable(context, **kw)
  File "/cygdrive/e/user/greg/data/zope3-dev/Zope3/lib/python/Zope/Configuration/xmlconfig.py", line
 313, in include
    self._directives)
  File "/cygdrive/e/user/greg/data/zope3-dev/Zope3/lib/python/Zope/Configuration/xmlconfig.py", line
 231, in xmlconfig
    parser.parse(src)
  File "/tmp/python.3132/usr/lib/python2.2/xml/sax/expatreader.py", line 91, in parse
  File "/tmp/python.3132/usr/lib/python2.2/xml/sax/xmlreader.py", line 123, in parse
  File "/tmp/python.3132/usr/lib/python2.2/xml/sax/expatreader.py", line 144, in feed
  File "/tmp/python.3132/usr/lib/python2.2/xml/sax/expatreader.py", line 253, in start_element_ns
  File "/cygdrive/e/user/greg/data/zope3-dev/Zope3/lib/python/Zope/Configuration/xmlconfig.py", line
 112, in startElementNS
    stack.append(
  File "/cygdrive/e/user/greg/data/zope3-dev/Zope3/lib/python/Zope/Configuration/meta.py", line 207,
 in begin
    return _exe(callable, subs, _context, kw)
  File "/cygdrive/e/user/greg/data/zope3-dev/Zope3/lib/python/Zope/Configuration/meta.py", line 162,
 in _exe
    r = callable(context, **kw)
  File "/cygdrive/e/user/greg/data/zope3-dev/Zope3/lib/python/Zope/I18n/metaConfigure.py", line 40,
in registerTranslations
    domain_path)
  File "/cygdrive/e/user/greg/data/zope3-dev/Zope3/lib/python/Zope/I18n/GettextMessageCatalog.py", l
ine 35, in __init__
    self._prepareTranslations()
  File "/cygdrive/e/user/greg/data/zope3-dev/Zope3/lib/python/Zope/I18n/GettextMessageCatalog.py", l
ine 42, in _prepareTranslations
    self.__translation_object = GNUTranslations(file)
  File "/usr/lib/python2.2/gettext.py", line 106, in __init__
    self._parse(fp)
  File "/usr/lib/python2.2/gettext.py", line 172, in _parse
    raise IOError(0, 'File is corrupt', filename)
Zope.Configuration.xmlconfig.ZopeXMLConfigurationError: File "site.zcml", line 4, column 0

ZopeXMLConfigurationError:
  File "/cygdrive/e/user/greg/data/zope3-dev/Zope3/lib/python/Zope/App/configure.zcml", line 11, col
umn 2

ZopeXMLConfigurationError:
  File "/cygdrive/e/user/greg/data/zope3-dev/Zope3/lib/python/Zope/App/OFS/configure.zcml", line 5,
column 0

ZopeXMLConfigurationError:
  File "/cygdrive/e/user/greg/data/zope3-dev/Zope3/lib/python/Zope/App/OFS/Services/configure.zcml",
 line 8, column 0

ZopeXMLConfigurationError:
  File "/cygdrive/e/user/greg/data/zope3-dev/Zope3/lib/python/Zope/App/OFS/Services/TranslationServi
ce/configure.zcml", line 45, column 0

IOError:
  [Errno 0] File is corrupt: '/cygdrive/e/user/greg/data/zope3-dev/Zope3/lib/python/Zope/App/OFS/Ser
vices/TranslationService/locale/de/LC_MESSAGES/Zope-I18n.mo'


At 09:34 28.11.2002 +0100, Pascal Habegger wrote:
>Hi everybody,
>
>I managed to get a Zope3 sandbox up and running on Windows XP with
>gcc/cygwin. I am not sure whether this information will be of help to=
 anyone
>out there, but there you go:
>
>1. Using the setup-tool that comes with cygwin, install or update
>   the following packages (in brackets the version I was using):
>   - gcc       (3.2-3)
>   - python    (2.2.2-1)
>   - expat     (1.95.5-1)
>
>2. Check out the latest source as described on
>http://dev.zope.org/Wikis/DevSite/Projects/ComponentArchitecture/SettingUpA=
Zope3Sandbox
>
>3. Start a bash shell and run
>   /usr/bin/python stupid_build.py
>
>   The build script *should* run through without any problems :-)
>
>NB: I tried gcc 2.95.* which did not work. I also run into problems using
>the win32 distro from www.python.org with cygwin gcc. I haven't tried
>ActivePython 2.2.2 yet. Anyone?
>
>Regards,
>Pascal
>
>
>
>_______________________________________________
>Zope3-dev mailing list
>Zope3-dev@zope.org
>http://lists.zope.org/mailman/listinfo/zope3-dev 

_____________________________________
Grégoire Weber
Rigistr. 31
CH-8006 Zürich
Switzerland
phone:  +41-(0)1-361 66 11
mobile: +41-(0)79-44 11 457
mailto:gregoire.weber@switzerland.org