Issue #265 resolved

sphinx doesn't run with jython2.5.1

created an issue

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\", 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 **** 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/** 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 ?

Comments (7)

  1. Log in to comment