On 2010-11-08, Nils-Hero Lindemann wrote:
Thanks for the bug report. As Python 3 support is still patchy, we
appreciate the feedback but cannot guarantee fast or simple solutions.
Documentation patches are welcome.
Also, testing under windows is impossible for me.
> ! Not subscribed to this user list. Contact me via <nils@...> !
I'll send you a copy of the post to the list. Could you consider
following the discussion there, e.g. via Gmane?
> 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.
...
> 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
Are you sure you tried the converted test suite? The mentioned document
points to the non-converted test suite (it was written in before 3000).
> C:\user\nilshero\Desktop\docutils\build\lib\test>python alltests.py
On my system, the converted test suite is under
... docutils/build/lib.linux-x86_64-3.1/test/
> 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
The compiler module is removed from the stdlib in Python 3.x. The
3.x-test-suite therefore disables tests of Docutils-parts requiring it.
Also messages like this suggest the wrong test version is used ...
...
> TypeError: sequence item 0: expected str instance, bytes found
...
> 2. when building the docs (plus '--traceback') like described here ...
> http://docutils.sourceforge.net/README.html#usage
> ... i get this (complete cmd):
The same question here:
> C:\user\nilshero\Desktop\docutils>python build\lib\tools\buildhtml.py --config=t
> ools\docutils.conf --traceback
is this the Python-3 version of the tools?
Günter
|