sphinx doesn't run with jython2.5.1

blauhase avatarblauhase 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 (6)

  1. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.