[Rest2web-develop] problem with rest2web 0.4.0-alpha
Brought to you by:
mjfoord
|
From: Stewart M. <mi...@ya...> - 2006-04-16 22:58:28
|
the latest alpha version of rest2web appears to have broken documents
that previously were parsed correctly. Specifically, macros.txt and
index.txt in Firedrop2
In macros.txt, the following bullet point causes rest2web to fail
with the following error about a bulleted point not having a blank
line after it (the exceptions also make reference to apparently at
least two different installations of MovPy, but I'm running this
under Linux so you can be certain I don't have a g:\ drive :-)
Here's the guilty bullet point:
* If a macro name isn't found, it is left alone.
In fact, this piece of documentation exists as it is because of
this rule. Text like ``{knarf}`` would be replaced… if it were a
macro.
Since we didn't define a macro by that name, it is left alone and
shows up in text with curly braces and all.
And here is the full text of the exception (sorry about the length):
macros.txt:93: (WARNING/2) Bullet list ends without a blank line;
unexpected unindent.
Traceback (most recent call last):
[err] File "rest2web.py", line 168, in ?
[err] count = main(config)
[err] File "rest2web.py", line 104, in main
[err] return processor.walk()
[err] File
"/home/stewart/data/dev/python/firedrop2/firedrop2/rest2web/restprocessor.py",
line 254, in walk
[err] subdir=subdir)
[err] File
"/home/stewart/data/dev/python/firedrop2/firedrop2/rest2web/restprocessor.py",
line 672, in process
[err] entry = html_parts(
[err] File
"/home/stewart/data/dev/python/firedrop2/firedrop2/rest2web/restutils.py",
line 181, in html_parts
[err] writer_name='html', settings_overrides=overrides)
[err] File "G:\MOVPY-~2.2\MOVPY-~1.2\movpy\lib\docutils\core.py",
line 431, in publish_parts
[err] File "G:\MOVPY-~2.2\MOVPY-~1.2\movpy\lib\docutils\core.py",
line 612, in publish_programmatically
[err] File "G:\MOVPY-~2.2\MOVPY-~1.2\movpy\lib\docutils\core.py",
line 204, in publish
[err] File
"G:\MOVPY-~2.2\MOVPY-~1.2\movpy\lib\docutils\readers\__init__.py",
line 71, in read
[err] File
"G:\MOVPY-~2.2\MOVPY-~1.2\movpy\lib\docutils\readers\__init__.py",
line 77, in parse
[err] File
"/usr/lib/python2.4/site-packages/docutils/parsers/rst/__init__.py",
line 155, in parse
[err] self.statemachine.run(inputlines, document,
inliner=self.inliner)
[err] File
"/Volumes/USB-1GB/movpy-1.0.1-py2.4.2/movpy/lib/firedrop2/../docutils/parsers/rst/states.py",
line 171, in run
[err] File
"/Volumes/USB-1GB/movpy-1.0.1-py2.4.2/movpy/lib/firedrop2/../docutils/statemachine.py",
line 233, in run
[err] File
"/Volumes/USB-1GB/movpy-1.0.1-py2.4.2/movpy/lib/firedrop2/../docutils/statemachine.py",
line 422, in check_line
[err] File
"/Volumes/USB-1GB/movpy-1.0.1-py2.4.2/movpy/lib/firedrop2/../docutils/parsers/rst/states.py",
line 2843, in text
[err] File
"/Volumes/USB-1GB/movpy-1.0.1-py2.4.2/movpy/lib/firedrop2/../docutils/parsers/rst/states.py",
line 309, in section
[err] File
"/Volumes/USB-1GB/movpy-1.0.1-py2.4.2/movpy/lib/firedrop2/../docutils/parsers/rst/states.py",
line 377, in new_subsection
[err] File
"/Volumes/USB-1GB/movpy-1.0.1-py2.4.2/movpy/lib/firedrop2/../docutils/parsers/rst/states.py",
line 267, in nested_parse
[err] File
"/Volumes/USB-1GB/movpy-1.0.1-py2.4.2/movpy/lib/firedrop2/../docutils/parsers/rst/states.py",
line 196, in run
[err] File
"/Volumes/USB-1GB/movpy-1.0.1-py2.4.2/movpy/lib/firedrop2/../docutils/statemachine.py",
line 233, in run
[err] File
"/Volumes/USB-1GB/movpy-1.0.1-py2.4.2/movpy/lib/firedrop2/../docutils/statemachine.py",
line 422, in check_line
[err] File
"/Volumes/USB-1GB/movpy-1.0.1-py2.4.2/movpy/lib/firedrop2/../docutils/parsers/rst/states.py",
line 2843, in text
[err] File
"/Volumes/USB-1GB/movpy-1.0.1-py2.4.2/movpy/lib/firedrop2/../docutils/parsers/rst/states.py",
line 309, in section
[err] File
"/Volumes/USB-1GB/movpy-1.0.1-py2.4.2/movpy/lib/firedrop2/../docutils/parsers/rst/states.py",
line 377, in new_subsection
[err] File
"/Volumes/USB-1GB/movpy-1.0.1-py2.4.2/movpy/lib/firedrop2/../docutils/parsers/rst/states.py",
line 267, in nested_parse
[err] File
"/Volumes/USB-1GB/movpy-1.0.1-py2.4.2/movpy/lib/firedrop2/../docutils/parsers/rst/states.py",
line 196, in run
[err] File
"/Volumes/USB-1GB/movpy-1.0.1-py2.4.2/movpy/lib/firedrop2/../docutils/statemachine.py",
line 233, in run
[err] File
"/Volumes/USB-1GB/movpy-1.0.1-py2.4.2/movpy/lib/firedrop2/../docutils/statemachine.py",
line 422, in check_line
[err] File
"/Volumes/USB-1GB/movpy-1.0.1-py2.4.2/movpy/lib/firedrop2/../docutils/parsers/rst/states.py",
line 2618, in underline
[err] File
"/Volumes/USB-1GB/movpy-1.0.1-py2.4.2/movpy/lib/firedrop2/../docutils/parsers/rst/states.py",
line 309, in section
[err] File
"/Volumes/USB-1GB/movpy-1.0.1-py2.4.2/movpy/lib/firedrop2/../docutils/parsers/rst/states.py",
line 377, in new_subsection
[err] File
"/Volumes/USB-1GB/movpy-1.0.1-py2.4.2/movpy/lib/firedrop2/../docutils/parsers/rst/states.py",
line 267, in nested_parse
[err] File
"/Volumes/USB-1GB/movpy-1.0.1-py2.4.2/movpy/lib/firedrop2/../docutils/parsers/rst/states.py",
line 196, in run
[err] File
"/Volumes/USB-1GB/movpy-1.0.1-py2.4.2/movpy/lib/firedrop2/../docutils/statemachine.py",
line 233, in run
[err] File
"/Volumes/USB-1GB/movpy-1.0.1-py2.4.2/movpy/lib/firedrop2/../docutils/statemachine.py",
line 422, in check_line
[err] File
"/Volumes/USB-1GB/movpy-1.0.1-py2.4.2/movpy/lib/firedrop2/../docutils/parsers/rst/states.py",
line 1169, in bullet
[err] File
"/Volumes/USB-1GB/movpy-1.0.1-py2.4.2/movpy/lib/firedrop2/../docutils/parsers/rst/states.py",
line 414, in unindent_warning
[err] File "G:\MOVPY-~2.2\MOVPY-~1.2\movpy\lib\docutils\utils.py",
line 202, in warning
[err] File "G:\MOVPY-~2.2\MOVPY-~1.2\movpy\lib\docutils\utils.py",
line 175, in system_message
[err] SystemMessage: macros.txt:93: (WARNING/2) Bullet list ends
without a blank line; unexpected unindent.
After I remove the offending bullet point from macros.txt, all of the
files are processed correctly up to index.txt, which causes an
exception:
Processing indexfile.
Guessing encoding. We guessed: ISO8859-1
/usr/lib/python2.4/site-packages/pythonutils/odict.py:456:
DeprecationWarning: use of sequence attribute is deprecated. Use keys
method instead.
[err] 'instead.', DeprecationWarning)
Traceback (most recent call last):
[err] File "rest2web.py", line 168, in ?
[err] count = main(config)
[err] File "rest2web.py", line 104, in main
[err] return processor.walk()
[err] File
"/home/stewart/data/dev/python/firedrop2/firedrop2/rest2web/restprocessor.py",
line 263, in walk
[err] self.buildsection()
[err] File
"/home/stewart/data/dev/python/firedrop2/firedrop2/rest2web/restprocessor.py",
line 1094, in buildsection
[err] namespace['sections'].sequence = (namespace['sectionlist']
or
[err] File "G:\MOVPY-~2.2\movpy\lib\pythonutils\odict.py", line
458, in __setattr__
[err] File "G:\MOVPY-~2.2\movpy\lib\pythonutils\odict.py", line
769, in setkeys
[err] KeyError: 'Keylist is not the same as current keylist.'
[err]
Can you shed any light on this?
I'll post all of updated Firedrop documentation .txt files to the svn
site where you can download them and inspect them at your leisure.
I'm also attaching the broken macros.txt. [err, no I'm not, because
Yahoo doesn't properly support Firefox!]
cheers
Stewart
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
|