[issue1711] generating docs fails on win32

Cédric Duval mercurial-bugs at selenic.com
Fri Jun 26 06:41:03 UTC 2009


New submission from Cédric Duval <cedricduval at free.fr>:

[from sborho originally on issue1708, opening a new issue as this is a different
problem - attaching a patch that may possibly help, to be tested]

New symptom:  gendoc.py dies on Windows

python gendoc.py
[...]

USING ADDITIONAL FEATURES
-------------------------

Traceback (most recent call last):
  File "gendoc.py", line 110, in <module>
    show_doc(sys.stdout)
  File "gendoc.py", line 105, in show_doc
    doc = doc()
  File "..\mercurial\help.py", line 93, in extshelp
    doc += listexts(_('disabled extensions:'), exts, maxlength)
  File "..\mercurial\help.py", line 48, in listexts
    desc = util.wrap(desc, maxlength + 4)
  File "..\mercurial\demandimport.py", line 75, in __getattribute__
    self._load()
  File "..\mercurial\demandimport.py", line 47, in _load
    mod = _origimport(head, globals, locals)
  File "..\mercurial\util.py", line 542, in <module>
    from windows import *
  File "..\mercurial\demandimport.py", line 84, in _demandimport
    return _origimport(name, globals, locals, fromlist)
  File "..\mercurial\windows.py", line 22, in <module>
    posixfile.__doc__ = osutil.posixfile.__doc__
  File "..\mercurial\demandimport.py", line 75, in __getattribute__
    self._load()
  File "..\mercurial\demandimport.py", line 47, in _load
    mod = _origimport(head, globals, locals)
ImportError: No module named osutil

This can be resolved by running python doc/gendoc.py from the repository root,
but that is not what the Makefile does.

----------
files: fix_gendoc.diff
messages: 9777
nosy: cedric, sborho
priority: bug
status: in-progress
title: generating docs fails on win32
topic: windows

____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://mercurial.selenic.com/bts/issue1711>
____________________________________________________
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fix_gendoc.diff
Url: http://selenic.com/pipermail/mercurial-devel/attachments/20090626/53a43e05/attachment.txt 


More information about the Mercurial-devel mailing list