[Python-apps-team] Bug#476885: Bug#476885: mercurial-common: failing import in server.py breaks python help facility even when not using hgext

Vincent Danjean vdanjean.ml at free.fr
Tue May 20 21:19:11 UTC 2008


Vincent Danjean wrote:
> Sami Liedes wrote:
>> Makes (relatively) related software break, but isn't big enough issue
>> to be critical/grave IMO, so filing as important. Please adjust
>> severity as you see fit.
> 
> Thanks for your report. I will forward this problem to upstream.
> I will keep the severity to important (it is important but this should
> not block the release I think)

mercurial is not the only python software with this bug.
On my system, I get :

vdanjean at cayuga:~$ python
Python 2.5.2 (r252:60911, May 15 2008, 17:59:19)
[GCC 4.3.1 20080501 (prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> help()

Welcome to Python 2.5!  This is the online help utility.

If this is your first time using Python, you should definitely check out
the tutorial on the Internet at http://www.python.org/doc/tut/.

Enter the name of any module, keyword, or topic to get help on writing
Python programs and using Python modules.  To quit this help utility and
return to the interpreter, just type "quit".

To get a list of available modules, keywords, or topics, type "modules",
"keywords", or "topics".  Each module also comes with a one-line summary
of what it does; to list the modules whose summaries contain a given word
such as "spam", type "modules spam".

help> modules

Please wait a moment while I gather a list of all available modules...

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.5/site.py", line 342, in __call__
    return pydoc.help(*args, **kwds)
  File "/usr/lib/python2.5/pydoc.py", line 1649, in __call__
    self.interact()
  File "/usr/lib/python2.5/pydoc.py", line 1667, in interact
    self.help(request)
  File "/usr/lib/python2.5/pydoc.py", line 1683, in help
    elif request == 'modules': self.listmodules()
  File "/usr/lib/python2.5/pydoc.py", line 1804, in listmodules
    ModuleScanner().run(callback)
  File "/usr/lib/python2.5/pydoc.py", line 1855, in run
    for importer, modname, ispkg in pkgutil.walk_packages():
  File "/usr/lib/python2.5/pkgutil.py", line 125, in walk_packages
    for item in walk_packages(path, name+'.', onerror):
  File "/usr/lib/python2.5/pkgutil.py", line 125, in walk_packages
    for item in walk_packages(path, name+'.', onerror):
  File "/usr/lib/python2.5/pkgutil.py", line 110, in walk_packages
    __import__(name)
  File "/usr/lib/python2.5/site-packages/Ft/Xml/XPath/__init__.py", line 115, in <module>
    from Util import Evaluate, SimpleEvaluate, Compile
  File "/usr/lib/python2.5/site-packages/Ft/Xml/XPath/Util.py", line 15, in <module>
    from Ft.Xml.Domlette import GetAllNs
  File "/usr/lib/python2.5/site-packages/Ft/Xml/Domlette.py", line 29, in <module>
    from Ft.Xml import InputSource
  File "/usr/lib/python2.5/site-packages/Ft/Xml/InputSource.py", line 355, in <module>
    DefaultFactory = InputSourceFactory(catalog=GetDefaultCatalog())
  File "/usr/lib/python2.5/site-packages/Ft/Xml/Catalog.py", line 579, in GetDefaultCatalog
    catalog = Catalog(uri, quiet)
  File "/usr/lib/python2.5/site-packages/Ft/Xml/Catalog.py", line 95, in __init__
    self._parseXmlCat(data)
  File "/usr/lib/python2.5/site-packages/Ft/Xml/Catalog.py", line 377, in _parseXmlCat
    p.parse(source)
  File "/usr/lib/python2.5/site-packages/Ft/Xml/Catalog.py", line 476, in startElementNS
    delegate = Catalog(catalog, self.quiet)
  File "/usr/lib/python2.5/site-packages/Ft/Xml/Catalog.py", line 95, in __init__
    self._parseXmlCat(data)
  File "/usr/lib/python2.5/site-packages/Ft/Xml/Catalog.py", line 377, in _parseXmlCat
    p.parse(source)
  File "/usr/lib/python2.5/site-packages/Ft/Xml/Catalog.py", line 476, in startElementNS
    delegate = Catalog(catalog, self.quiet)
  File "/usr/lib/python2.5/site-packages/Ft/Xml/Catalog.py", line 95, in __init__
    self._parseXmlCat(data)
  File "/usr/lib/python2.5/site-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
>>>


-- 
Vincent Danjean                 Adresse: Laboratoire d'Informatique de Grenoble
Téléphone:  +33 4 76 61 20 11            ENSIMAG - antenne de Montbonnot
Fax:        +33 4 76 61 20 99            ZIRST 51, avenue Jean Kuntzmann
Email: Vincent.Danjean at imag.fr           38330 Montbonnot Saint Martin





More information about the Python-apps-team mailing list