[Opendnssec-user] Python package detection can give misleading errors

Carsten Strotmann (Men & Mice) carsten at menandmice.com
Mon May 31 22:18:15 UTC 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I just solved an issue while compiling OpenDNSSEC 1.1.0 on Ubuntu 10.4
and thought I let you know in case you run across a similar issue:

when running the configure script for the OpenDNSSEC signer, I've got
the error message

Python module 'Ft.Xml.XPath' not found

however the 4suite XML module was installed.

I then removed the check for Ft.Xml.XPath from the configure script and
was able to compile OpenDNSSEC 1.1.0

When starting the system, I've got:

# ods-control start
Starting signer engine...
connecting to /var/run/opendnssec/engine.sock
Traceback (most recent call last):
  File "/usr/local/lib/opendnssec/signer/Engine.py", line 49, in <module>
    import Util
  File "/usr/local/lib/opendnssec/signer/Util.py", line 33, in <module>
    from Ft.Xml.XPath import Evaluate
  File "/usr/lib/python2.6/dist-packages/Ft/Xml/XPath/__init__.py", line
115, in <module>
    from Util import Evaluate, SimpleEvaluate, Compile
  File "/usr/lib/python2.6/dist-packages/Ft/Xml/XPath/Util.py", line 15,
in <module>
    from Ft.Xml.Domlette import GetAllNs
  File "/usr/lib/python2.6/dist-packages/Ft/Xml/Domlette.py", line 29,
in <module>
    from Ft.Xml import InputSource
  File "/usr/lib/python2.6/dist-packages/Ft/Xml/InputSource.py", line
355, in <module>
    DefaultFactory = InputSourceFactory(catalog=GetDefaultCatalog())
  File "/usr/lib/python2.6/dist-packages/Ft/Xml/Catalog.py", line 579,
in GetDefaultCatalog
    catalog = Catalog(uri, quiet)
  File "/usr/lib/python2.6/dist-packages/Ft/Xml/Catalog.py", line 95, in
__init__
    self._parseXmlCat(data)
  File "/usr/lib/python2.6/dist-packages/Ft/Xml/Catalog.py", line 377,
in _parseXmlCat
    p.parse(source)
  File "/usr/lib/python2.6/dist-packages/Ft/Xml/Catalog.py", line 476,
in startElementNS
    delegate = Catalog(catalog, self.quiet)
  File "/usr/lib/python2.6/dist-packages/Ft/Xml/Catalog.py", line 95, in
__init__
    self._parseXmlCat(data)
  File "/usr/lib/python2.6/dist-packages/Ft/Xml/Catalog.py", line 377,
in _parseXmlCat
    p.parse(source)
  File "/usr/lib/python2.6/dist-packages/Ft/Xml/Catalog.py", line 476,
in startElementNS
    delegate = Catalog(catalog, self.quiet)
  File "/usr/lib/python2.6/dist-packages/Ft/Xml/Catalog.py", line 95, in
__init__
    self._parseXmlCat(data)
  File "/usr/lib/python2.6/dist-packages/Ft/Xml/Catalog.py", line 377,
in _parseXmlCat
    p.parse(source)
xml.sax._exceptions.SAXParseException:
file:///usr/share/xml/gnustep/gsdoc-1_0_0.dtd:41:0: syntax error

The 4Suite XML package uses the global XML catalog in /etc/xml/catalog,
which referenced a DTD file from GNUStep which as not lean according to
the 4Suite XML package rules. That is completly unrelated to OpenDNSSEC.

The Python module tests in the configure scripts only check if a program
using the module can be executed or not. It looks like this is not a
bulletproof test for module existence.

This is of course not an issue of OpenDNSSEC, but of Python and the
autoconfig tests.

- -- Carsten Strotmann
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkwENacACgkQElgUYvSqn/RIVQCeIPaZu4fzOf0glYj74xttM00k
BzEAn18a0CWa1A8F4bXyMEWc+4MvPWl+
=3eWw
-----END PGP SIGNATURE-----



More information about the Opendnssec-user mailing list