nose-devs/nose — Issue #481: Generation of documentation fails with Python 3
Author: Arfrever
Created: 2011-12-19 05:19:43+00:00
State: open

Sphinx >=1.1 supports Python 3, but some Nose-specific Sphinx extensions are incompatible with Python 3.

```
$ make html
mkdir -p .build/html .build/doctrees
sphinx-build -b html -d .build/doctrees . .build/html
Running Sphinx v1.1.2

Exception occurred:
File "/tmp/nose-1.1.2/doc/../nose/__init__.py", line 1, in
from nose.core import collector, main, run, run_exit, runmodule
File "/tmp/nose-1.1.2/doc/../nose/core.py", line 143
print "%s version %s" % (os.path.basename(sys.argv[0]), __version__)
^
SyntaxError: invalid syntax
```

After fixing sys.path:

```
$ make html
mkdir -p .build/html .build/doctrees
sphinx-build -b html -d .build/doctrees . .build/html
Running Sphinx v1.1.2

Exception occurred:
File "/tmp/nose-1.1.2/doc/manbuilder.py", line 1, in
from manpage import Writer
File "/tmp/nose-1.1.2/doc/manpage.py", line 368
raise NotImplementedError, node.astext()
^
SyntaxError: invalid syntax
```