sphinx doesn't run with jython2.5.1
Running Sphinx v0.6.3 (via Ant)
[exec] Exception occurred:
[exec] File "C:\jython\jython2.5.1\Lib\site-packages\sphinx-0.6.3-py2.5.egg\sphinx\highlighting.py", line 15, in <module>
[exec] import parser
[exec] ImportError: No module named parser
[exec] The full traceback has been saved in ....\sphinx-err-o_qfvt.log, if you want to report the issue to the author.
I tryed to uncomment the parser import ...
to run sphinx on jython i had to do some changes:
in the highlighting.py file:
uncomment import parser [line 15?]
uncomment the use of parser in PygmentsBridge.try_parse (whole try / except ) [line 159 - 164?]
add an return True to PygmentsBridge.try_parse
(try_parse is now useless ?!)
in the util/init.py adding err.errno == 0 in ensuredir (win32 only)
if not err.errno == 17 and not err.errno == 0:
It worked for me!
Are there any unittests ?