Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix documentation build for Python 3 #32

Open
mdickinson opened this issue Feb 18, 2019 · 0 comments
Open

Fix documentation build for Python 3 #32

mdickinson opened this issue Feb 18, 2019 · 0 comments

Comments

@mdickinson
Copy link
Member

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 <module>
    execfile(os.path.join('..', '..', 'codetools', '__init__.py'), d)
NameError: name 'execfile' is not defined

make: *** [html] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant