enthought / enthought/codetools

Fix documentation build for Python 3

Open
#32 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
54
Forks
10
PR merge metrics
No merged PRs in 30d

Description

The documentation doesn't currently build under Python 3. The immediate error is due to use of `execfile` in the Sphinx configuration, but there may be others.

```
mirzakhani:docs mdickinson$ make html
sphinx-build -b html -d build/doctrees source build/html
Running Sphinx v1.8.3

Configuration error:
There is a programmable error in your configuration file:

Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/sphinx/config.py", line 368, in eval_config_file
execfile_(filename, namespace)
File "/opt/local/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/sphinx/util/pycompat.py", line 150, in execfile_
exec_(code, _globals)
File "/Users/mdickinson/Enthought/ETS/codetools/docs/source/conf.py", line 44, in
execfile(os.path.join('..', '..', 'codetools', '__init__.py'), d)
NameError: name 'execfile' is not defined

make: *** [html] Error 2
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.