Bug(?) report: building doc fails, tests fail
Nils-Hero Lindemann <nils <at> freiewelt.org>
2010-11-08 13:39:03 GMT
Hi,
! Not subscribed to this user list. Contact me via <nils <at> freiewelt.org> !
I run Python v3.1.2 under XP v5.1.2600
Dont know version of cmd, it is the one which was included with XP.
Downloaded this snapshot today (2010.11.08):
http://docutils.sourceforge.net/docutils-snapshot.tgz
Extracted it with 7-zip v4.65 to Desktop
Did "python setup.py install" from a cmd inside that extracted 'docutils'-folder.
Then i did two things, running the testsuite and building the docs:
1. Tried the converted testsuite for python 3 like described here ...
http://docutils.sourceforge.net/README.html#running-the-test-suite
... and got this output (complete cmd):
('Das System kann den angegebenen Pfad nicht finden' means 'windows cannot find
the given path')
--- snip ---
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\user\nilshero\Desktop\docutils\build\lib\test>python alltests.py
ERROR: Can't import test_readers.test_python.test_functions, skipping its tests:
Traceback (most recent call last):
File "C:\user\nilshero\Desktop\docutils\build\lib\test\package_unittest.py", l
ine 101, in loadTestModules
module = import_module(mod)
File "C:\user\nilshero\Desktop\docutils\build\lib\test\package_unittest.py", l
ine 132, in import_module
mod = __import__(name)
File "C:\user\nilshero\Desktop\docutils\build\lib\test\test_readers\test_pytho
n\test_functions.py", line 13, in <module>
from docutils.readers.python.moduleparser import trim_docstring
File "C:\user\nilshero\Desktop\docutils\build\lib\docutils\readers\python\__in
it__.py", line 14, in <module>
from docutils.readers.python import moduleparser
File "C:\user\nilshero\Desktop\docutils\build\lib\docutils\readers\python\modu
leparser.py", line 211, in <module>
import compiler
ImportError: No module named compiler
Testing Docutils 0.8 [snapshot 2010-09-01, r6395] with Python 3.1.2 on 2010-11-0
8 at 00:25:56
Working directory: C:\user\nilshero\Desktop\docutils\build\lib\test
Docutils package: C:\user\nilshero\Desktop\docutils\build\lib\docutils
...EEEEEEEEEEEEEEE..............................................................
................................................................................
................................................................................
................................................................................
..............................................Das System kann den angegebenen Pf
ad nicht finden.
.Das System kann den angegebenen Pfad nicht finden.
.Das System kann den angegebenen Pfad nicht finden.
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
............................
======================================================================
ERROR: test_functional.py: functional/tests/compact_lists.py
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\user\nilshero\Desktop\docutils\build\lib\test\test_functional.py", li
ne 176, in test
expected = '\n'.join(f.read().splitlines())
TypeError: sequence item 0: expected str instance, bytes found
======================================================================
ERROR: test_functional.py: functional/tests/dangerous.py
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\user\nilshero\Desktop\docutils\build\lib\test\test_functional.py", li
ne 176, in test
expected = '\n'.join(f.read().splitlines())
TypeError: sequence item 0: expected str instance, bytes found
======================================================================
ERROR: test_functional.py: functional/tests/field_name_limit.py
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\user\nilshero\Desktop\docutils\build\lib\test\test_functional.py", li
ne 176, in test
expected = '\n'.join(f.read().splitlines())
TypeError: sequence item 0: expected str instance, bytes found
======================================================================
ERROR: test_functional.py: functional/tests/latex_docinfo.py
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\user\nilshero\Desktop\docutils\build\lib\test\test_functional.py", li
ne 176, in test
expected = '\n'.join(f.read().splitlines())
TypeError: sequence item 0: expected str instance, bytes found
======================================================================
ERROR: test_functional.py: functional/tests/misc_rst_html4css1.py
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\user\nilshero\Desktop\docutils\build\lib\test\test_functional.py", li
ne 176, in test
expected = '\n'.join(f.read().splitlines())
TypeError: sequence item 0: expected str instance, bytes found
======================================================================
ERROR: test_functional.py: functional/tests/multistyle_path_embedd_rst_html4css1
.py
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\user\nilshero\Desktop\docutils\build\lib\test\test_functional.py", li
ne 176, in test
expected = '\n'.join(f.read().splitlines())
TypeError: sequence item 0: expected str instance, bytes found
======================================================================
ERROR: test_functional.py: functional/tests/multistyle_path_rst_html4css1.py
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\user\nilshero\Desktop\docutils\build\lib\test\test_functional.py", li
ne 176, in test
expected = '\n'.join(f.read().splitlines())
TypeError: sequence item 0: expected str instance, bytes found
======================================================================
ERROR: test_functional.py: functional/tests/multistyle_rst_html4css1.py
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\user\nilshero\Desktop\docutils\build\lib\test\test_functional.py", li
ne 176, in test
expected = '\n'.join(f.read().splitlines())
TypeError: sequence item 0: expected str instance, bytes found
======================================================================
ERROR: test_functional.py: functional/tests/pep_html.py
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\user\nilshero\Desktop\docutils\build\lib\test\test_functional.py", li
ne 176, in test
expected = '\n'.join(f.read().splitlines())
TypeError: sequence item 0: expected str instance, bytes found
======================================================================
ERROR: test_functional.py: functional/tests/standalone_rst_html4css1.py
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\user\nilshero\Desktop\docutils\build\lib\test\test_functional.py", li
ne 176, in test
expected = '\n'.join(f.read().splitlines())
TypeError: sequence item 0: expected str instance, bytes found
======================================================================
ERROR: test_functional.py: functional/tests/standalone_rst_latex.py
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\user\nilshero\Desktop\docutils\build\lib\test\test_functional.py", li
ne 176, in test
expected = '\n'.join(f.read().splitlines())
TypeError: sequence item 0: expected str instance, bytes found
======================================================================
ERROR: test_functional.py: functional/tests/standalone_rst_manpage.py
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\user\nilshero\Desktop\docutils\build\lib\test\test_functional.py", li
ne 176, in test
expected = '\n'.join(f.read().splitlines())
TypeError: sequence item 0: expected str instance, bytes found
======================================================================
ERROR: test_functional.py: functional/tests/standalone_rst_pseudoxml.py
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\user\nilshero\Desktop\docutils\build\lib\test\test_functional.py", li
ne 176, in test
expected = '\n'.join(f.read().splitlines())
TypeError: sequence item 0: expected str instance, bytes found
======================================================================
ERROR: test_functional.py: functional/tests/standalone_rst_s5_html_1.py
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\user\nilshero\Desktop\docutils\build\lib\test\test_functional.py", li
ne 176, in test
expected = '\n'.join(f.read().splitlines())
TypeError: sequence item 0: expected str instance, bytes found
======================================================================
ERROR: test_functional.py: functional/tests/standalone_rst_s5_html_2.py
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\user\nilshero\Desktop\docutils\build\lib\test\test_functional.py", li
ne 176, in test
expected = '\n'.join(f.read().splitlines())
TypeError: sequence item 0: expected str instance, bytes found
----------------------------------------------------------------------
Ran 1116 tests in 8.578s
FAILED (errors=15)
Elapsed time: 9.438 seconds
C:\user\nilshero\Desktop\docutils\build\lib\test>
--- snip ---
2. when building the docs (plus '--traceback') like described here ...
http://docutils.sourceforge.net/README.html#usage
... i get this (complete cmd):
the problem, as usual, occurs on line 23.
--- snip ---
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\user\nilshero\Desktop\docutils>python build\lib\tools\buildhtml.py --config=t
ools\docutils.conf --traceback
/// Processing directory: C:\user\nilshero\Desktop\docutils
::: Processing: BUGS.txt
::: Processing: COPYING.txt
::: Processing: FAQ.txt
::: Processing: HISTORY.txt
Traceback (most recent call last):
File "build\lib\tools\buildhtml.py", line 247, in <module>
Builder().run()
File "build\lib\tools\buildhtml.py", line 192, in run
self.visit(root, files)
File "build\lib\tools\buildhtml.py", line 215, in visit
prune = self.process_txt(directory, name)
File "build\lib\tools\buildhtml.py", line 240, in process_txt
settings=settings)
File "C:\p\python\3.1\lib\site-packages\docutils\core.py", line 357, in publis
h_file
enable_exit_status=enable_exit_status)
File "C:\p\python\3.1\lib\site-packages\docutils\core.py", line 641, in publis
h_programmatically
output = pub.publish(enable_exit_status=enable_exit_status)
File "C:\p\python\3.1\lib\site-packages\docutils\core.py", line 203, in publis
h
self.settings)
File "C:\p\python\3.1\lib\site-packages\docutils\readers\__init__.py", line 68
, in read
self.input = self.source.read()
File "C:\p\python\3.1\lib\site-packages\docutils\io.py", line 258, in read
data = self.source.read()
File "C:\p\python\3.1\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x90 in position 5406: cha
racter maps to <undefined>
C:\user\nilshero\Desktop\docutils>
--- snip ---
Greetings, Nils
--
--
Nils-Hero Lindemann <nils <at> freiewelt.org>
------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a
Billion" shares his insights and actions to help propel your
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev