Issues

Issue #265 resolved

sphinx doesn't run with jython2.5.1

blauhase
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\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 ...

see http://stackoverflow.com/questions/1085791/does-sphinx-run-on-jython

to run sphinx on jython i had to do some changes:

1.

  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 ?!)

2.

  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 ?

Comments (7)

  1. Log in to comment